frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

A Comprehensive Review of Human Error in Risk-Informed Decision Making

https://arxiv.org/abs/2507.01017
1•badmonster•1m ago•0 comments

How Do You Teach Computer Science in the A.I. Era?

https://www.nytimes.com/2025/06/30/technology/computer-science-education-ai.html
1•mitchbob•10m ago•1 comments

Ask HN: Is promoting a self-hosted event not ok by HN standards?

1•chbkall•11m ago•0 comments

Show HN: Data Engineering in the Age of AI: Opportunities and Challenges

https://community.nasscom.in/index.php/communities/data-science-ai-community/data-engineering-age-ai-opportunities-and-challenges
1•browsejobs5•16m ago•0 comments

Qantas discloses cyberattack amid Scattered Spider aviation breaches

https://www.bleepingcomputer.com/news/security/qantas-discloses-cyberattack-amid-scattered-spider-aviation-breaches/
2•Khaine•16m ago•1 comments

Hydrogen sulphide gas restricts SARS-CoV-2 replication in host cells

https://iisc.ac.in/hydrogen-sulphide-gas-restricts-sars-cov-2-replication-in-host-cells/
2•porridgeraisin•17m ago•1 comments

The Loneliness of Infinite Conversation

https://karanchawla.io/2025/05/16/infiniteconvo
1•karchaw•17m ago•0 comments

How you can wind up trying to allocate zero bytes in C

https://utcc.utoronto.ca/~cks/space/blog/programming/CHowZeroSizeMallocs
1•ingve•17m ago•0 comments

There's a Race to Power the Future. China Is Pulling Away

https://www.nytimes.com/interactive/2025/06/30/climate/china-clean-energy-power.html
1•doener•27m ago•0 comments

Mandelbrot in x86 Assembly by Claude

https://simonwillison.net/2025/Jul/2/mandelbrot-in-x86-assembly-by-claude/
1•gslin•28m ago•0 comments

Don't forget what Silicon Valley tried to do

https://www.bloodinthemachine.com/p/dont-forget-what-silicon-valley-tried
2•antfarm•28m ago•0 comments

Show HN: I built loremAPIs-generate mockAPIs directly from your database schema

https://loremapis.com/
1•Fayaz_K•29m ago•0 comments

Cartridges: Store long contexts in tiny caches with LLM self-study

https://hazyresearch.stanford.edu/blog/2025-06-08-cartridges
1•dvrp•37m ago•0 comments

The first American 'scientific refugees' arrive in France

https://www.politico.eu/article/meet-first-academic-refugees-fleeing-us-france-science-program/
11•doener•38m ago•0 comments

Are AI Bots Behaving?

https://goodaibots.com/
2•walterbell•39m ago•0 comments

Show HN: MemeGen.ai – Turn Any Photo into an AI Meme Video (No Prompts Needed)

https://meme-gen.ai
2•bread25•39m ago•0 comments

Cartridges: Storing long contexts in tiny caches with self-study

https://github.com/HazyResearch/cartridges
1•dvrp•39m ago•1 comments

Pixel 3 XL NetHunter C-deck

https://hackaday.io/project/203116-pixel-3-xl-nethunter-c-deck
2•wyclif•40m ago•0 comments

Safari Technology Preview 222

https://developer.apple.com/documentation/safari-technology-preview-release-notes/stp-release-222
1•tosh•41m ago•0 comments

Show HN: 10x the output of your coding agent

https://docs.trynia.ai/integrations/nia-mcp
1•jellyotsiro•43m ago•1 comments

Show HN: Learning Rust with Neovim, Rust-Analyzer and LLMs

https://lorentz.app/blog-item.html?id=rustlearn
2•baalimago•55m ago•0 comments

Test

https://leetcybersecurity.com/
1•rbajp•56m ago•0 comments

IBM Lays Off 8k Employees for AI, Only to Rehire Just as Many Soon After

https://dailygalaxy.com/2025/06/ibm-lays-off-8000-employees-for-ai-automation-only-to-rehire-just-as-many-soon-after-because-of/
5•taubek•58m ago•2 comments

A mostly allocation-free optional type

https://www.joachim-breitner.de/blog/787-A_mostly_allocation-free_optional_type
2•matt_d•1h ago•0 comments

Why Big Tech Turned Against Democrats – and Democracy

https://paulkrugman.substack.com/p/why-big-tech-turned-against-democrats
9•dotcoma•1h ago•3 comments

On the Feasibility of Deduplicating Compiler Bugs with Bisection

https://arxiv.org/abs/2506.23281
1•matt_d•1h ago•0 comments

Object Storage for KV cache offloading

https://www.acceleratedcloudstorage.com
2•obitoACS•1h ago•1 comments

The Hell of FFIX Tetra Master

https://xvw.lol/en/articles/tetra-master.html
3•Bogdanp•1h ago•0 comments

Using Playwright MCP with Claude Code

https://til.simonwillison.net/claude-code/playwright-mcp-claude-code
1•sbmthakur•1h ago•0 comments

BruhGrow Tools

https://bruhgrow.com/
1•M0HD197•1h ago•0 comments
Open in hackernews

Irony and PathOS

https://github.com/jeffshrager/csminicourse/tree/main/from_code_to_machine
2•abrax3141•7h ago

Comments

abrax3141•7h ago
To "pre-teach" my son CS, I created a (highly) simplified code-to-bytecode-to-machine stack for a language called "irony", and (extremely simple) OS, called "pathos". (Hacker ethos: Hundreds of lines of code just to cache out a bad pun! :-)

The files "compiler.py" and "virtual_hardware.py" are the primary irony modules. Irony supports recursion, including mutual recursion, but nothing fancy. There's no lexer, so you need to put spaces between tokens. (Being a native Lisper, I hate lexers!)

compiler.py takes Irony source to byte code, and has a byte-code interpreter. virtual_hardware.py take the same byte code, but emulates actual hardware.

These are designed to go with an exercise where the student add FOR LOOP capability. Given the well-designed base, this is extremely simple, but requires understanding each step of the stack. ("compiler_for" and "virtual_hardware_for" are the solutions; The idea, of course, is not to give these to the student!)

(You'd think that it ought be the other way round: Start with for loops and then ask the student to add recursion, but it's much harder to add recursion than loops, so I put recursion into the base, and then ask the student to add for loops.)

The files "pathos.py" (which imports "irony.py") is a simple OS whose goal is to create, edit, compile, and run programs written in Irony. ("irony.py" is a combined version of compiler.py and virtual_hardware.py, but leaves out the byte code interpreter.) The "comp" and "exec" commands in pathos compile (to byte code) and then execute the reuslting byte code (basically assembly) on the emulated hardware. (See "pathos_demo.log".)

Everything here was written in about 5 total hours using a combination of chatbots. This wasn't as easy as I'd hoped. As many folks who use LLMs to assist in coding discover, they are bad at keeping track of even marginally complex or large projects, and don't deal well with conceptually twisty programming concepts. They were basically incapable of implementing recursion correctly, or generalizing to the desired level, and they kept losing their place in the series of steps. Eventually they would just seemingly lose track entirely and be unable to fix what turned out to be trivial errors, at which point I had to clear the decks entirely, reload the latest versions of the code base we were working on, and then re-explain the project and what to do next. In the end I had to give them nearly step-by-step guidance to get it right, and the way I wanted it to be, to be understandable and teachable. That said, to their credit, once I had the compiler and hardware emulator the understandable and teachable way I wanted it, I could feed those to the LLM and it was able to understand the code and make reasonable changes. For example, the entire FOR LOOP extension was done completely by Claude. I get that "pros" don't do it this way, but it's slightly fun trying to talk a chatbot into doing one's bidding, and being emacs-based, I don't have a magical code assistant built into my code editor. (I haven't even looked -- has someone already done that?)

Operating systems being conceptually simpler than programming languages, PATHOS was easier for the LLMs, and was almost entirely written by Claude, although based on several paragraph of detailed spec. And Claude was able to plug Irony into PATHOS (that is, create comp and exec commands) first try!

However, I then asked it to create a help command that simply listed all the other commands, which was nearly a trivial task, and it failed over and over, until I did one of those resets described above, and then it worked. (The attention model is just the wrong model of working and short term memory! Mark my words! [Yes, I do get my own meta-joke.])

I also asked the LLMs to make presentations. Those are here essentially "as is" and you'll see that although these are a reasonable start, they definitely aren't complete teaching materials.