frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Show HN: MyraOS – My 32-bit operating system in C and ASM (Hack Club project)

https://github.com/dvir-biton/MyraOS
37•dvirbt•1h ago•2 comments

NORAD’s Cheyenne Mountain Combat Center, c.1966

https://flashbak.com/norad-cheyenne-mountain-combat-center-478804/
56•zdw•5d ago•20 comments

System.LongBool

https://docwiki.embarcadero.com/Libraries/Sydney/en/System.LongBool
18•surprisetalk•4d ago•16 comments

A bug that taught me more about PyTorch than years of using it

https://elanapearl.github.io/blog/2025/the-bug-that-taught-me-pytorch/
289•bblcla•3d ago•60 comments

Advent of Code 2025: Number of puzzles reduce from 25 to 12 for the first time

https://adventofcode.com/2025/about#faq_num_days
379•vismit2000•14h ago•183 comments

Making the Electron Microscope

https://www.asimov.press/p/electron-microscope
43•mailyk•5h ago•5 comments

Alzheimer's disrupts circadian rhythms of plaque-clearing brain cells

https://medicine.washu.edu/news/alzheimers-disrupts-circadian-rhythms-of-plaque-clearing-brain-ce...
114•gmays•5h ago•16 comments

Nvidia DGX Spark: When benchmark numbers meet production reality

https://publish.obsidian.md/aixplore/Practical+Applications/dgx-lab-benchmarks-vs-reality-day-4
110•RyeCatcher•4h ago•59 comments

A worker fell into a nuclear reactor pool

https://www.nrc.gov/reading-rm/doc-collections/event-status/event/2025/20251022en?brid=vscAjql9kZ...
620•nvahalik•21h ago•438 comments

Eavesdropping on Internal Networks via Unencrypted Satellites

https://satcom.sysnet.ucsd.edu/
161•Bogdanp•6d ago•24 comments

Wren: A classy little scripting language

https://wren.io/
85•Lyngbakr•4d ago•20 comments

Downloadable movie posters from the 40s, 50s, 60s, and 70s

https://hrc.contentdm.oclc.org/digital/collection/p15878coll84/search
377•bookofjoe•1w ago•72 comments

Formal Reasoning [pdf]

https://cs.ru.nl/~freek/courses/fr-2025/public/fr.pdf
109•Thom2503•10h ago•24 comments

Ken Thompson recalls Unix's rowdy, lock-picking origins

https://thenewstack.io/ken-thompson-recalls-unixs-rowdy-lock-picking-origins/
18•dxs•5h ago•0 comments

Validating your ideas on strangers (2017)

https://jeremyaboyd.com/post/validating-your-ideas-on-strangers
52•tacon•2d ago•31 comments

Pico-Banana-400k

https://github.com/apple/pico-banana-400k
346•dvrp•20h ago•60 comments

The Linux Boot Process: From Power Button to Kernel

https://www.0xkato.xyz/linux-boot/
415•0xkato•23h ago•82 comments

Resource use matters, but material footprints are a poor way to measure it

https://ourworldindata.org/material-footprint-limitations
4•surprisetalk•8h ago•0 comments

Galaxy XR, the first Android XR headset

https://blog.google/products/android/samsung-galaxy-xr/
9•xnx•4d ago•5 comments

You already have a Git server

https://maurycyz.com/misc/easy_git/
350•chmaynard•11h ago•281 comments

Writing a RISC-V Emulator in Rust

https://book.rvemu.app/
93•signa11•15h ago•40 comments

Why your social.org files can have millions of lines without performance issues

https://en.andros.dev/blog/4e12225f/why-your-socialorg-files-can-have-millions-of-lines-without-a...
66•andros•1d ago•6 comments

Clojure Land – Discover open-source Clojure libraries and frameworks

https://clojure.land/
149•TheWiggles•14h ago•36 comments

Ask HN: How to boost Gemini transcription accuracy for company names?

26•bingwu1995•6d ago•19 comments

Myanmar military shuts down a major cybercrime center, detains over 2k people

https://apnews.com/article/scam-centers-cybercrime-myanmar-a2c9fda85187121e51bd0efdf29c81da
136•bikenaga•7h ago•43 comments

Connect to a 1980s Atari BBS through the web

https://www.southernamis.com/ataribbsconnect
62•JPolka•13h ago•5 comments

Smartphones manipulate our emotions and trigger our reflexes

https://theconversation.com/smartphones-manipulate-our-emotions-and-trigger-our-reflexes-no-wonde...
49•PaulHoule•3h ago•23 comments

D2: Diagram Scripting Language

https://d2lang.com/tour/intro/
256•benzguo•1d ago•63 comments

Bitmovin (YC S15) Is Hiring Engineering ICs and Managers in Europe

https://bitmovin.com/careers
1•slederer•15h ago

The Journey Before main()

https://amit.prasad.me/blog/before-main
297•amitprasad•1d ago•117 comments
Open in hackernews

Wren: A classy little scripting language

https://wren.io/
85•Lyngbakr•4d ago

Comments

gnabgib•4d ago
Popular in 2022 (301 points, 130 comments) https://news.ycombinator.com/item?id=32631553

2020 (122 points, 54 comments) https://news.ycombinator.com/item?id=23660464

apitman•2h ago
I was working on a custom runtime for minimal wasm apps recently. I didn't want to have to write all apps in C or Rust, so I went looking for tiny scripting languages. Lua is pretty small, but I wasn't able to get it to compile to wasm IIRC due to POSIX dependencies. This turned out to be quite easy with Wren[0].

[0]: https://github.com/wren-lang/wren/issues/1199

MattJ100•1h ago
That's unusual that you struggled to build Lua. Lua is primarily C89, and used on non-POSIX microcontrollers for example. There are some optional bits of the standard library you would have to leave out - module loading uses dlopen(). This is done simply by defining the right feature macros for your target environment: https://www.lua.org/source/5.4/luaconf.h.html

You may also be interested in this project: https://github.com/fengari-lua/fengari

sandbags•2h ago
I would love to replace JS as the scripting language in one of my native macOS apps and I wonder if Wren would be suitable.

The two biggest questions I’d have are:

1) how easy it would be to bridge Obj-C objects to Wren-space and vice versa (a big win of using JavascriptCore) 2) how easy would it be to implement script debugging? This is not exactly a strength of Javascript core but it is at least possible by connecting the Safari web inspector.

There’s lots I don’t like about JS and JSCore but i’ve yet to find a better alternative.

reactordev•2h ago
This looks super cool up until I got to the point where it says inherited classes don’t share the same metatable. Meaning if you want to provide the same method on your inherited classes, you have to write the same thing and do a super.method() which means a lot of work if you’re into OO design so I’m not sure if classes is the right construct here. Am I wrong or did I miss something from the documentation? Other than that it looks like fun to use as an embedded scripting engine.
nick__m•1h ago
you probably meant metaclass and according to the doc classes inheritance don't have surprising behaviors. And about the metaclass not being inherited here are the implication:

  ...In more prosaic terms, this means that static methods are not inherited.
plainOldText•2h ago
Reminder the creator of Wren wrote the awesome Crafting Interpreters book [0].

[0] https://craftinginterpreters.com/

l9o•1h ago
This is awesome. Thank you for sharing. I have been working on a small interpreted language for shell scripts with lots of help from Claude Code. The main idea is to automatically generate the cli interface for the scripts based on function definitions. However, I'm far from a programming languages expert, so I've been a bit hesitant to share my work. Going to give this book a read this week to see how far I am. Thank you!
manveru•45m ago
Take a look at how Nushell does this, it's quite neat: https://www.nushell.sh/book/custom_commands.html#documenting...
l9o•42m ago
That's excellent. Somewhat similar to the syntax I went with, but most likely much better implemented. I'm going to give it a go. Thank you!
mhaberl•1h ago
and he wrote Game Programming Patterns [0]

[0] https://gameprogrammingpatterns.com/

ronbenton•1h ago
Knowing this is the author makes me 1000% more interested in Wren. What a great book!
thw_9a83c•57m ago
It is an excellent book and one of the canonical texts on the subject. My only suggestion for the "Lox" language would be to include an implementation of arrays, and preferably also hash/dict arrays. Other than that, the book contains everything you need to know about implementing a programming language.
smnplk•6m ago
I wish he would have used C for everything. You need to buyin into Java's whole OOP thing, which I am not a fan of.
alberth•56m ago
Is Bob still involved (in Wren)?

I thought his focus was Dart these days given being employed by Google.

bragr•1h ago
This seems like a nice alternative to Lua. I've always liked embedding Lua in other software, but I confess I have never really liked Lua as a language.
versteegen•54m ago
I really like the sound of Wren, but you may also want to look into Squirrel, it's basically Lua re-imagined/reimplemented but without all the Lua quirks and with C-style syntax (but it still has optional lua-style prototypes, which means it ends up very similar to Javascript). Its embedding API is largely a copy of Lua's. There is also an active fork called Quirrel that makes the language more like Python.

There are loads of scripting languages but very few of them have an embedding API as powerful as Lua or Squirrel's. (My benchmarks: what's the overhead of a userdata pointer? Is there a proper debug API? Can you suspend a co-routine from inside a called C function? Very few languages even have coroutines.) Last I looked at it years ago, Wren was one of the best. Of course, the most featureful embedding API of all belongs to LuaJIT.

tromp•1h ago
Wren ties with Phix for most tasks done on Rosetta Code [1].

[1] https://rosettacode.org/wiki/Rosetta_Code/Rank_languages_by_...

davidw•1h ago
Looks very nice! Erlang's concurrency isn't 'cooperative' though - it has a scheduler, so even a runaway process won't bog down the whole system.
gabrielsroka•59m ago
2016