frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Show HN: Draw a fish and watch it swim with the others

https://drawafish.com
473•hallak•3d ago•153 comments

Corporation for Public Broadcasting Ceasing Operations

https://cpb.org/pressroom/Corporation-Public-Broadcasting-Addresses-Operations-Following-Loss-Federal-Funding
268•coloneltcb•1h ago•225 comments

Supporting the BEAM community with free CI/CD security audits

https://www.erlang-solutions.com/blog/supporting-the-beam-community-with-free-ci-cd-security-audits/
43•todsacerdoti•2h ago•5 comments

Gemini 2.5 Deep Think

https://blog.google/products/gemini/gemini-2-5-deep-think/
285•meetpateltech•7h ago•142 comments

Google Shifts goo.gl Policy: Inactive Links Deactivated, Active Links Preserved

https://blog.google/technology/developers/googl-link-shortening-update/
53•shuuji3•54m ago•37 comments

Ask HN: Who is hiring? (August 2025)

68•whoishiring•3h ago•100 comments

Fast (2019)

https://patrickcollison.com/fast
57•samuel246•3h ago•8 comments

At 17, Hannah Cairo solved a major math mystery

https://www.quantamagazine.org/at-17-hannah-cairo-solved-a-major-math-mystery-20250801/
77•baruchel•2h ago•32 comments

Coverage Cat (YC S22) Is Hiring a Senior, Staff, or Principal Engineer

https://www.coveragecat.com/careers/engineering/software-engineer
1•botacode•1h ago

Hyrum's Law

https://www.hyrumslaw.com
55•andsoitis•3h ago•20 comments

I couldn't submit a PR, so I got hired and fixed it myself

https://www.skeptrune.com/posts/doing-the-little-things/
22•skeptrune•1h ago•3 comments

Ask HN: Who wants to be hired? (August 2025)

28•whoishiring•3h ago•73 comments

Pseudo, a Common Lisp macro for pseudocode expressions

http://funcall.blogspot.com/2025/07/pseudo.html
27•reikonomusha•3d ago•0 comments

Show HN: An interactive dashboard to explore NYC rentals data

https://leaseswap.nyc/analytics
54•giulioco•2d ago•34 comments

Make Your Own Backup System – Part 2: Forging the FreeBSD Backup Stronghold

https://it-notes.dragas.net/2025/07/29/make-your-own-backup-system-part-2-forging-the-freebsd-backup-stronghold/
35•todsacerdoti•3d ago•0 comments

Launch HN: Societies.io (YC W25) – AI simulations of your target audience

41•p-sharpe•6h ago•31 comments

Show HN: Pontoon – Open-source customer data syncs

https://github.com/pontoon-data/Pontoon
26•alexdriedger•3h ago•6 comments

Ergonomic keyboarding with the Svalboard: a half-year retrospective

https://twey.io/hci/svalboard/
17•Twey•2h ago•3 comments

Yes in My Bamako Yard

https://asteriskmag.com/issues/11/yes-in-my-bamako-yard
50•surprisetalk•4d ago•6 comments

Every satellite orbiting earth and who owns them (2023)

https://dewesoft.com/blog/every-satellite-orbiting-earth-and-who-owns-them
233•jonbaer•13h ago•106 comments

Rollercoaster Tycoon (Or, MicroProse's Last Hurrah)

https://www.filfre.net/2025/08/rollercoaster-tycoon-or-microproses-last-hurrah/
70•cybersoyuz•2h ago•20 comments

Replacing tmux in my dev workflow

https://bower.sh/you-might-not-need-tmux
194•elashri•9h ago•216 comments

Our Farewell from Google Play

https://secuso.aifb.kit.edu/english/2809.php
150•shakna•9h ago•54 comments

Slow

https://michaelnotebook.com/slow/index.html
903•calvinfo•23h ago•214 comments

OpenAI Leaks 120B Open Model on Hugging Face

https://twitter.com/main_horse/status/1951201925778776530
78•skadamat•2h ago•33 comments

The untold impact of cancellation

https://pretty.direct/impact
245•cbeach•6h ago•256 comments

Fakes, Nazis, and Fake Nazis

https://airmail.news/issues/2025-7-26/fakes-nazis-and-fake-nazis
14•prismatic•3d ago•0 comments

Live coding interviews measure stress, not coding skills

https://hadid.dev/posts/living-coding/
397•mustaphah•5h ago•406 comments

Long Term Support

https://www.sqlite.org/lts.html
133•rishikeshs•4h ago•42 comments

The anti-abundance critique on housing is wrong

https://www.derekthompson.org/p/the-anti-abundance-critique-on-housing
468•rbanffy•21h ago•716 comments
Open in hackernews

Benchmarking MicroPython

https://blog.miguelgrinberg.com/post/benchmarking-micropython
21•ibobev•20h ago

Comments

drewcoo•20h ago
Somehow, I don't mind that the code blew the stack because it was recursion without memoization. Blowing the stack should be a pretty clear sign to figure out why and fix it.
mbirth•19h ago
I'm missing testing the different emitters as demonstrated here: https://www.kickstarter.com/projects/214379695/micro-python-...

Not sure whether they're supported on all the architectures, though.

jononor•10h ago
I have added this now, as a reply to one of the other posts :) 100x speedup.
snvzz•18h ago
>pico 2w

ARM or RISC-V?

mrheosuper•16h ago
Generate 2000 random numbers and sorting them using bubble sort on 160Mhz 32bit mcu takes 80 seconds ? This is exactly why micropython is a toy.
jononor•10h ago
The same can be done in 0.02 seconds with MicroPython. I posted optimized code here, https://github.com/jonnor/embeddedml/tree/master/handson/mic...
zem•14h ago
would have been nice to see benchmarks against the equivalent c code running on the same microprocessor, not against micropython code running on different hardware. the post just told me that microprocessors are slow, not how well micropython performs.
wewewedxfgdf•13h ago
As the author points out, performance is pretty much irrelevant - it is a rewrite of python prioritizing memory usage.
jononor•11h ago
This should not be used to conclude on the viability of using MicroPython for numeric type tasks. For that one should at least take into account the following:

Integers are much faster than floats (floats involve a pointer and a heap allocation, integers are stored in a single word/object).

array.array is preferred over list for something like sort. Continuous memory representation of numbers versus general purpose list of objects.

MicroPython has on-board "JIT" (native/viper emitters), have to explicitly annotate the function. Should give 4-10x improvements for this case.

MicroPython has an on-board assembler, so one can write ARM assembly and get that to a function.

MicroPython also has support for C modules, which expose a Python API. Including dynamic native modules which can be installed at runtime with the package manager.

Bubblesort is O(n*2), which hurts for even a few thousand numbers. Actual sorting on a microcontroller should be done with an O(n log n) algorithm.

jononor•10h ago
Ok, you guys have successfully nerd sniped me this morning... Here some experiments showing the use of code emitter to speed this code up massively. Link to code: https://github.com/jonnor/embeddedml/tree/master/handson/mic... The results on ESP32S3 (M5Stick AtomS3U), running MicroPython 1.24.1. All times in seconds, for the 2000 number sort.

bubble.py 19.119

bubble_native.py 9.482

bubble_viper.py 0.904

heapsort_viper.py 0.02

So one can do 100x better without changing the algorithm, and 1000x by changing it :)

Microcontrollers are a constrained platform. They can be plenty fast - but it is much more important to use the tools available, compared to on PC. MicroPython has excellent tools available for this.

jononor•2h ago
EDIT: 20x better with same algorithm, not 100x. Do not post before the coffee starts kicking in...
jononor•9h ago
If anyone is interested in fast dynamic native C modules for MicroPython, you can check out emlearn-micropython - a machine learning and digital signal processing library. https://github.com/emlearn/emlearn-micropython Disclaimer: I am the maintainer
Archit3ch•5h ago
You can drop down to C and call it from MicroPython if you want to count cycles.

Of course, you have to recompile your C every time it changes, which is annoying when you're used to the REPL workflow.