News for hackers. Stuff that matters.

chrka

Code.org's Excellent Beginner Programming Courses Get Lost in the AI Hype

I’m a computer science teacher. I recognize that AI can do useful programming. What worries me, however, is that all the hype surrounding AI is crowding out the learning of programming. "Prompting" is not programming.I’ve often recommended Code.org, with its memorable name. Their "Introduction to Computer Science" courses are among the best beginner programming courses I know. But since the...

( Read More... | no comments | 3 points | on HN )
Re:AI and the Destruction of the Creative Commons on Sunday September 20, 2026 @09:51AM (#49775897)
Something that came up a bit too briefly in the post: acknowledgement is a major motivation for making software open source. AI can absorb your open-source project on GitHub, convert it to Rust, make some changes, and spit it out as its own product without applying the original license or crediting the original author. My former open-source project is now no longer open source.
Re:Ask HN: What are you working on? (September 2026) on Monday September 14, 2026 @09:43AM (#49696771)
I'm currently working on the browser editor for my programming language, With the smart tab completion - which parses the entire program up to the cursor every time you press tab - you can avoid a bunch of typing and also potential errors.

You type: radius=10<enter>gc<tab><tab>50 50 r<tab><shift-enter> And right away, you have a circle on the screen.

https://easylang.online/ide/

Re:Google Search Is Dying. What Comes Next Is Worse on Tuesday August 11, 2026 @04:54AM (#49255125)
They say they don't do that. But maybe I should be more skeptical.
Re:Google Search Is Dying. What Comes Next Is Worse on Tuesday August 11, 2026 @04:36AM (#49255009)
That's exactly why my previous public GitHub repo is now private.
I've written something like this in C - including resulting assembler code for ARM and x86.

https://easylang.online/blog/branchless

Re:What happened to TheNumbers.com on Friday July 24, 2026 @04:06AM (#49032568)
Exactly. Just like using LibGen is prohibited.
Re:What happened to TheNumbers.com on Friday July 24, 2026 @02:32AM (#49031884)
I also recently made an open-source project with 200 GitHub stars private. I never had a problem with others using it as the basis for their own projects. In fact, that happened, and I received credit for it. But LLMs just hoover up everything, process it, and then spit it back out as if it were their own.
Re:Your code is fast – if you're lucky on Saturday July 11, 2026 @11:15AM (#48872769)
Therefore it is srand(1).
Re:Your code is fast – if you're lucky on Saturday July 11, 2026 @11:13AM (#48872747)
Both versions use the same input data. I also tried different random initial values and got essentially the same result. I didn't test hundreds of inputs, since that would have been mostly a waste of time in this case. The algorithm and the data distribution remain practically the same. What I'm measuring is the machine code that Clang generates for the hot loop.
Re:Your code is fast – if you're lucky on Saturday July 11, 2026 @10:57AM (#48872620)
You're talking about the complexity of the Quicksort algorithm, whereas the article is about code generation.

Both versions sort the same data using the same algorithm. Just a tiny change in the source code caused Clang to generate different machine code.

Using different seed values - (srand(1), srand(2), srand(time(NULL))) essentially leads to the same result. With a good choice of pivot, Quicksort is very close to O(n log n) in practice, so that’s not the key factor here.

The interesting thing is that the generated machine code changes significantly.

Re:Trust your compiler: Modern C++ on Sunday July 05, 2026 @12:02PM (#48795287)
Don't trust your compiler. Your code is only fast if you're lucky.

https://tiki.li/blog/lucky_code.html

As for your party trick: The performance drop in "blqs" occurred because heapsort was applied directly to a poorly partitioned input. Quicksort now gets a second chance in this case. With 10% random, 90% sorted, the performance drop no longer occurs. It is now faster than std::sort.
You will now see the directory listing. This website was actually created for my primary side project: a simplified programming language for beginners. I just added a blog folder there for other things as well.
Branchful only wins via ILP when data becomes good predictable. But since Quicksort partitioning aims for a 50/50 split, it operates in the worst possible zone for a branch predictor. That's why branchless wins here, as proven by the benchmarks.
Author here. No, it's also called from the non_trivially_copyable branch (as a fallback). I'll fix that.
Re:Tell HN: Merry Christmas on Thursday December 25, 2025 @02:34AM (#46382837)

Older »