frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Can an email go 500 miles in 2025?

https://flak.tedunangst.com/post/can-an-email-go-500-miles-in-2025
45•zdw•3d ago•2 comments

Reflections on 2 years of CPython's JIT Compiler: The good, the bad, the ugly

https://fidget-spinner.github.io/posts/jit-reflections.html
25•bratao•2d ago•15 comments

Show HN: OffChess – Offline chess puzzles app

https://offchess.com
183•avadhesh18•5h ago•63 comments

New sphere-packing record stems from an unexpected source

https://www.quantamagazine.org/new-sphere-packing-record-stems-from-an-unexpected-source-20250707/
360•pseudolus•19h ago•178 comments

Berry Script: lightweight embedded scripting language for microcontrollers

https://berry-lang.github.io/
57•hasheddan•3d ago•19 comments

Epanet-JS

https://macwright.com/2025/07/03/epanet-placemark
155•surprisetalk•4d ago•17 comments

Attimet (YC F24) – Quant Trading Research Lab – Is Hiring Founding Researcher

https://www.ycombinator.com/companies/attimet/jobs/6LaQIc5-founding-researcher-quant
1•kbanothu•2h ago

Mercury: Ultra-fast language models based on diffusion

https://arxiv.org/abs/2506.17298
493•PaulHoule•1d ago•212 comments

I used o3 to profile myself from my saved Pocket links

https://noperator.dev/posts/o3-pocket-profile/
432•noperator•1d ago•163 comments

What Microchip doesn't (officially) tell you about the VSC8512

https://serd.es/2025/07/04/Switch-project-pt3.html
138•ahlCVA•3d ago•50 comments

Launch HN: Morph (YC S23) – Apply AI code edits at 4,500 tokens/sec

208•bhaktatejas922•23h ago•157 comments

LookingGlass: Generative Anamorphoses via Laplacian Pyramid Warping

https://studios.disneyresearch.com/2025/06/09/lookingglass-generative-anamorphoses-via-laplacian-pyramid-warping/
105•jw1224•16h ago•21 comments

Exploring Coroutines in PHP

https://doeken.org/blog/coroutines-in-php
70•doekenorg•3d ago•30 comments

The Miyawaki Method of micro-forestry

https://www.futureecologies.net/listen/fe-6-5-the-method
190•zeristor•3d ago•37 comments

WebAssembly: Yes, but for What?

https://queue.acm.org/detail.cfm?id=3746171
45•todsacerdoti•5h ago•48 comments

Adding a feature because ChatGPT incorrectly thinks it exists

https://www.holovaty.com/writing/chatgpt-fake-feature/
1030•adrianh•23h ago•370 comments

SIMD.info – Reference tool for C intrinsics of all major SIMD engines

https://simd.info/
46•pabs3•12h ago•10 comments

The chemical secrets that help keep honey fresh for so long

https://www.bbc.com/future/article/20250701-the-chemical-secrets-that-help-keep-honey-fresh-for-so-long
185•bookofjoe•4d ago•130 comments

When Figma starts designing us

https://designsystems.international/ideas/when-figma-starts-designing-us/
262•bravomartin•2d ago•117 comments

Why are there no good dinosaur films?

https://briannazigler.substack.com/p/why-are-there-no-good-dinosaur-films
128•fremden•3d ago•312 comments

François Chollet: The Arc Prize and How We Get to AGI [video]

https://www.youtube.com/watch?v=5QcCeSsNRks
204•sandslash•5d ago•177 comments

# [derive(Clone)] Is Broken

https://rgbcu.be/blog/derive-broken/
118•RGBCube•3d ago•86 comments

What is going on in Unix with errno's limited nature

https://utcc.utoronto.ca/~cks/space/blog/unix/ErrnoWhySoLimited
58•ingve•4d ago•33 comments

Apple just released a weirdly interesting coding language model

https://9to5mac.com/2025/07/04/apple-just-released-a-weirdly-interesting-coding-language-model/
102•ksec•3d ago•37 comments

CU Randomness Beacon

https://random.colorado.edu/
41•wello•3d ago•13 comments

Show HN: I built a tool to solve window management once and for all

https://aboveaverageuser.com/smartswitcher
3•atommachinist•11m ago•2 comments

Lightfastness Testing of Colored Pencils

https://sarahrenaeclark.com/lightfast-testing-pencils/
172•picture•3d ago•43 comments

Show HN: NYC Subway Simulator and Route Designer

https://buildmytransit.nyc
174•HeavenFox•23h ago•27 comments

Solving Wordle with uv's dependency resolver

https://mildbyte.xyz/blog/solving-wordle-with-uv-dependency-resolver/
185•mildbyte•2d ago•15 comments

My first verified imperative program

https://markushimmel.de/blog/my-first-verified-imperative-program/
162•TwoFx•20h ago•74 comments
Open in hackernews

Berry Script: lightweight embedded scripting language for microcontrollers

https://berry-lang.github.io/
57•hasheddan•3d ago

Comments

sagacity•5h ago
Doesn't seem to have received any updates in the last 2 years. I'm wondering what the use cases are for this type of scripting in embedded systems, though?
elitepleb•5h ago
Running arbitrary user code in IOT systems safely like https://tasmota.github.io/docs/Berry/#rules

It's still receiving maintenance from contributors, but these sort projects reach a stable maturity and stay there for years fulfilling their use case.

sagacity•7m ago
Ah, yes. That makes sense.
middayc•4h ago
One benefit can be more interactive development, or interaction with the embedded device. I think various forths were used on embedded systems also because of that.

And some projects just don't require much speed and benefit from a higher level lanuage. Reading a couple of sensors over I2C every few seconds, doing some "business logic" and serving data via a http server over wifi can be simpler to achieve in higher level language and the device will be idle for the most of the time anyway.

Micropython is a nice solution in that niche.

But for some projects you do want a lower level language if not for else maybe for lower battery consumption.

iainmerrick•4h ago
Interpreted languages can be great for small code size too. Forth is especially good as it doesn't need a big runtime and the language lends itself really well to code reuse.
aa-jv•3h ago
I don't use Berry (although its quite interesting), but I do use Lua in this context, and I find that putting a lot of embedded-application logic into a script is very productive - especially in the case where the VM is running and is passed a validated bytecode stream. This is quite an effective way of building sophisticated applications with embedded targets.
ethan_smith•2h ago
The repo has active development with commits from March 2025, and scripting languages like Berry enable rapid prototyping, runtime configuration changes, and user customization without reflashing firmware.
imtringued•2h ago
If you have an embedded system with a screen, say a 3d printer, it's probably nicer to write the UI in JavaScript than C.

However, now that I look at the syntax, Berry Script doesn't really look like a well designed language to me. It's like a weird mix of Lua, Python and Javascript. It's a very backwards looking (as in, it is emulating the past rather than innovating) language, where a lot of the differences only exist for the sake of being different and the more I read through the docs the more I think it looks like a bastardized Python and that I'd rather use MicroPython instead.

Alifatisk•3h ago
Reminds me a lot of Ruby! Gorgeous.
floitsch•3h ago
A similar project: https://toitlang.org (or https://toit.io).

Currently it's only targeting the ESP32 family, but the code is pretty portable. By default, it probably also needs more resources due to OS-like abstractions, allowing for multiple containers to run on parallel, etc. Obviously that also brings some nice advantages. For example, installing or updating, a new container is just a few lines of code.

We have been working on it for more than 5 years now, and it's definitely at a stage where lots of projects would benefit from it.

z3ugma•9m ago
Let me say that Florian and co are super helpful and responsive with code examples, fixing bugs, and have built a very dependable language in Toit.
abdellah123•2h ago
why not use Moddable's [1] xs engine [2]? it's JavaScript ...

[1] https://www.moddable.com/ [2] https://github.com/Moddable-OpenSource/moddable/tree/public/...

abdellah123•2h ago
and it's the most conformant implementation to the latest specs of ECMAScript + of the ECMA-419 spec for js in iot

https://embedded.js.org/

ost-ing•1h ago
Embedded Rust alternative: https://github.com/rhaiscript/rhai
90s_dev•56m ago
This seems to have almost the exact same feature set and use-case as Lua. How does it compare in performance? I doubt it can be faster than Lua 5.5
90s_dev•53m ago
Oh, they say it was inspired by Lua. So it's more like Wren I guess, but probably less performant than Wren too[1]. And less powerful than Lua since Lua metatables are half magic half genius. Still, I'd like to see a benchmark like this.

[1] https://wren.io/performance.html

sampullman•50m ago
It advertises interpreter size and RAM requirements front and center on the homepage, so I assume that's the main draw.

I'm not super familiar with embedded Lua but I believe it to require at least an order of magnitude more RAM and codespace than this, even without float support.

For my money, Berry is still a bit heavy. On a cheap M0 I'd rather have something with about half the required memory.

thebruce87m•27m ago
> Ideal for use in microprocessors.

Seems to be targeted at microprocessors not microcontrollers per the title.

the__alchemist•15m ago
Could you clarify? I'm kind of fuzzy on those terms. From the top of the article: Cortex-M is the example, and those are what I associate as microcontrollers. Maybe naming conventions? Maybe the former is the CPU, and the latter is the CPU + the periphs, flash, ram?

It also mentions heap, which is not something I associate with microcontrollers by default, but I notice a lot of RTOS and allocators lately when I look beyond my own stuff!