News for hackers. Stuff that matters.

fuzztester

Re:How close can pure functional programming get to C? on Saturday October 24, 2026 @05:43PM (#50225666)
three pounds of stacks!
Re:Teal – A statically-typed dialect of Lua on Thursday October 22, 2026 @04:30AM (#50192750)
I just had a thought. I wonder if the idea of dynamically linked libraries in Unix and later of DLLs in Windows came somehow from the concept of overlays. And whether the overlay concept preceded (MS)-DOS.
Re:Free Pascal compiler now supports dynamic packages on Tuesday October 20, 2026 @04:45AM (#50163086)
Thanks, will check it out.
Re:Celebrating 70 Years of Fortran on Tuesday October 20, 2026 @04:45AM (#50163082)
>He said some of his programs took a week to run on that beast (i.e. beast for that period) and then spat out one or just a few numbers as the result. :)

Running some kind of simulation or solving some hairy equations, probably.

Re:Free Pascal compiler now supports dynamic packages on Monday October 19, 2026 @12:31PM (#50154435)
Which books?
Re:Teal – A statically-typed dialect of Lua on Sunday October 18, 2026 @10:07PM (#50147529)
Turbo Pascal 3.x had it.
Re:Teal – A statically-typed dialect of Lua on Sunday October 18, 2026 @09:52PM (#50147441)
Question your premises.

1. What is the need to keep up with all of them (sheer volume - your own words)?

2. If you haven't kept up with them (as in, investigated them), how do you know they are cool and noteworthy. Just based on what others say?

Re:Parser Combinators on Sunday October 18, 2026 @09:35PM (#50147356)
Are the first use of 'scanner' and the second use of 'scanner' the same variable, or are they in different scopes. If they are in different scopes , would it be better to use a different variable, for the code to be more readable?
Re:Celebrating 70 Years of Fortran on Friday October 16, 2026 @09:30PM (#50126955)
A good foo programmer can write foo in any language.
Re:Celebrating 70 Years of Fortran on Friday October 16, 2026 @09:28PM (#50126945)
I am the creator of fortran-j, in which god is imaginary.
Re:Celebrating 70 Years of Fortran on Friday October 16, 2026 @09:26PM (#50126926)
Probably means i for index.
Re:Celebrating 70 Years of Fortran on Friday October 16, 2026 @07:30PM (#50126181)
I once visited the office of a scientist at the National Chemical Laboratory in Pune, India, where they had an Unix SMP RISC (2 MIPS CPUs) computer, IIRC, supplied by the company where I worked. He said some of his programs took a week to run on that beast (i.e. beast for that period) and then spat out one or just a few numbers as the result. :) I think the programs were in Fortran or C. That fairly expensive computer was used by only him. I was a bit in awe of that. It was a central government laboratory, huge campus, only one of its kind in the country, so I guess they had a good amount of funding.

Sometimes I think I should have gone into scientific computing. It seems pretty interesting.

Re:Celebrating 70 Years of Fortran on Friday October 16, 2026 @07:16PM (#50126048)
Yes, if it is still extant by then, and not extinct.

But it likely will still be extant, along with COBOL. And Lisp.

Re:Celebrating 70 Years of Fortran on Friday October 16, 2026 @06:58PM (#50125902)
I read somewhere that it was one of the first high level languages. There probably were a few others, which are less well known.

I had Fortran in college as one course. But we didn't have access to any computers to run our programs, because this was in India a few decades ago, in the just post-mainframe age, so we had to write all our programs on paper and submit them to the teacher for evaluation and scoring, ha ha.

Re:Celebrating 70 Years of Fortran on Friday October 16, 2026 @06:52PM (#50125845)
>Inelegant code will still run reasonably fast

What do you mean by inelegant code in this context?

Non-idiomatic? Like non-Pythonic in the case of Python?

Re:How Tabasco Became the World's Hot Sauce on Wednesday October 14, 2026 @09:37PM (#50098061)
You guys haven't lived (and nearly died) until you've tried indian lasoon chutney, aka garlic chutney (with chilli), accompanied by aloo paratha or other paratha.

Yes, that way around, because it's the star of the show, not the paratha.

a time bomb.

Re:The Tao of Backup on Friday October 09, 2026 @09:51PM (#50028716)
niiice ... $?

To be enlightened, bhikkus append the suffix

  >/dev/null 
to the end of any command, thereby ensuring that they descend into nothingness.

alias nirvana=nothingness

ISOs of what, music or video?
Re:The Tao of Backup on Monday October 05, 2026 @10:31AM (#49965409)
You have to write them first.

Now trying to think of a Unix joke involving write, read and tee that also makes sense for the backup topic ...

Re:Barcodes are about to go extinct on Saturday October 03, 2026 @07:21AM (#49943242)
ha!

I'll be glad to see a better Claude than Claude.

Re:Needed 1+1, Built a Functional Programming Language on Friday October 02, 2026 @10:21AM (#49933858)
Thanks.
Re:Needed 1+1, Built a Functional Programming Language on Thursday October 01, 2026 @10:53AM (#49922461)
>It depends on what you mean by 'anything doable'. Eg Haskell compilers can in principle do lots of crazy optimisations that a C compiler would not be able to safely do, just because they don't have enough information. Even more so for Lean compilers, which can _know_ which of your loops are terminating, instead of making crude assumptions like C compilers.

Interesting. What are some of those optimisations that Haskell and Lean can do, that a C compiler would not be able to safely do?

Re:Needed 1+1, Built a Functional Programming Language on Thursday October 01, 2026 @10:50AM (#49922413)
>In CPython they are written in C (at the moment). Other Python implementations are written in other languages.

True. E.g.:

1. PyPy:

https://en.wikipedia.org/wiki/PyPy

>The PyPy interpreter itself is written in a restricted subset of Python called RPython (Restricted Python).

2. Jython:

https://en.wikipedia.org/wiki/Jython

>Implementation language: Python, Java

The article says the last release of Jython was 2 years ago. I wonder how much it is used these days. It did seem like a good idea when it was first released. I had only tried it out a little at that time.

Re:Needed 1+1, Built a Functional Programming Language on Wednesday September 30, 2026 @03:16PM (#49913084)
If hash tables were impossible to make in C, then it would be impossible to make them in Python, because it is a higher level language than C.

(Almost by definition, anything doable in a higher level language is doable in a lower level language, but not necessarily vice versa. In fact, many higher level languages are themselves written in lower level languages, e.g. Python is written in C.)

But Python has got dicts built into it, which are nothing but hash tables, and they are almost certainly written in C.

Google for some videos by Raymond Hettinger about Python dictionaries.

Or look at the source code of the Python interpreter.

Re:Needed 1+1, Built a Functional Programming Language on Wednesday September 30, 2026 @03:07PM (#49912992)
IIRC, the first edition of the book "The C Programming Language" (aka K&R), by Kernighan and Ritchie, had a simple example of how to create a hash table in C, including with buckets to handle collisions. It was a simple algorithm. It simply added up the ASCII values of all the characters in the key, modulo some number.
Re:Neuroergonomics (2011) on Friday September 25, 2026 @05:43PM (#49850380)
Dr. Raja Parasuraman
Re:Italian parliament votes for return to nuclear energy on Thursday September 24, 2026 @11:24PM (#49839851)
some dumbkopf hners can't even handle historical stories and simple straightforward comments on them, so they downvote.

and yet they aspire to run or work in startups. ... hee hee.

Older »