frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

LPython: Novel, Fast, Retargetable Python Compiler (2023)

https://lpython.org/blog/2023/07/lpython-novel-fast-retargetable-python-compiler/
57•luismedel•10mo ago

Comments

brudgers•10mo ago
The repository appears to be active, https://github.com/lcompilers/lpython
nathan_compton•10mo ago
Very neat but what an Albatross Python is, especially in the AI era. It is clearly the best language to choose for many applications given the network effects and the fact that AI can program it so effectively, but I really wish we weren't locked into it. So many better, more fun, more tight, languages out there.

And all this effort to eek out performance. Get off my lawn etc.

throwaway7783•10mo ago
What's your personal favorite better, fun, tight language?
sgammon•10mo ago
Kotlin
nathan_compton•10mo ago
I love programming in Scheme. I played with Nim recently and appreciated the type system. I also enjoy Common Lisp. Heck, I ever prefer Java! Haskell, Ocaml, Julia! I'd rather program in any of them.
raffraffraff•10mo ago
Most of the time, Python's biggest issue isn't performance, it's the nightmare of trying to distribute it. If you want to merely run a python program you need to be educated in "python DevOps", or you'll get people gasping and saying "FFS, why don't you just create an env and activate it and pip install to it then make your own flipping shortcut to a script that activates that env and runs your code, you moron, Jeeeeeesus."
dumah•10mo ago
PEP-723 solves this nicely.

https://peps.python.org/pep-0723/

https://news.ycombinator.com/item?id=43500124

sam_bristow•10mo ago
Uv and PEP-723 style inline dependency declarations has been great at $DAYJOB. It's made a bunch of our standalone scripts trivial to distribute to non-software engineers.

I'm also bullish on using them with Marimo notebooks as a replacement for Jupyter notebooks.

gjvc•10mo ago
that the "activate it" part gets any airtime really pisses me off. that has all to do with bash and zero to do with python. the "activate" script should never have seen the light of day.

include a bin/run-python wrapper script in your project, and have that set environment variables and call the .venv/bin/python binary. done.

yes, i realise in replying to this comment i'm admitting that i'm part of the problem exactly described, but the "activate" script has caused more confusion in the long run than is worthwhile and the "running from a .venv/" directory could have been a much smaller problem instead of the wind-tunnel it has become.

terlisimo•10mo ago
why not solve it with bash then, just put

#!/path/to/your/venv/bin/python

as first the line of your script, done/done

gjvc•10mo ago
That is obviously not what I meant by "solving it with bash" and well you know it.

First, one often needs to set PYTHONPATH etc, and this is best done near the point of execution, in a wrapper script and not wangling around in ~/.bash_profile where it gets forgotten, and is not project-specific.

Secondly, and more importantly, your suggestion assumes the venv lives in a fixed location. This is unlikely to be the case.[1] What is preferable is something which is independent of filesystem location. The bin/run-python script is able to find its location on the filesystem, and the location of the venv relative to it.

[1] You might have a custom python distribution with a bunch of modules installed into a well-known location and therefore using that for the python in your application is a reasonable solution, but that is not what we are talking about here.

raffraffraff•9mo ago
Yes, it should have been something like a flatpak, snap, Appimage or some other horrible thing. But I can see why a developer would just want to set a few vars, because you need to do that in a shell anyway to pip install some other requirement or debug on the command line. There is no polish, no user story.

From the perspective of a user who just wants to install and use something, it doesn't matter why python is atrocious, it just is. Ideally, something like pipx would be far far better than it is, and bundled by default with the system python. Every venv should get added to a launcher that gives access to a shell, an IDE or any python program in the venv. In fact if the python venv module was just a teensy bit better it could (optionally, but by default) do this for you.

theanonymousone•10mo ago
Hopefully PEP-723 and uv will alleviate this.
tough•10mo ago
Docker took that job
lesser23•10mo ago
Having been around for a long time I liken it to PERL. Post-PERL it also looks a lot like Ruby. I remember everything being re-written in Ruby. Yet PERL still stands!

Anyway, Python is a nice language for small-ish (< 1000 lines or so) projects. It starts to get very unruly after that and without a type system of any kind your brain becomes the type system... and the compiler. MyPy tries it's best but it really isn't sufficient and requires developer buy-in...hard to get in a language so well designed for throw-away code.

Python 3's syntax is actually quite nice and you can write some very expressive code in it. My opinion, of course, but I also find it to be one of the "lowest common denominator" languages like Go. Python doesn't require much to get started and it's syntax and semantics are relatively easy for even a mediocre programmer to understand. Of course it has a terrible (mostly non-existent ABI) that relies on "consenting adults" as the contract and an awful package system. Yet another reason it's really only practical for (relatively) small projects.

Rarely is anything in Python about raw performance - imo. Of the things that are (NumPy, Pandas, various ML libraries) they call down to C handle most of it. For things that require true parallelism it's not uncommon to see `exec` calls to binaries. That being said in a lot of places (FastAPI based applications, etc) you can get quite a lot of perf out of Python before it becomes a problem.

However, what makes it super nice is how easy it is to hack something together in it. As it turns out most of ML is just hacking things together in a few files or a Jupyter notebook. What a perfect language for such purpose. This is not unlike PERL. I still remember all the random PERL scripts I hacked together for various tasks because it was so simple. It is no wonder it is as popular as it is.

nathan_compton•10mo ago
It may be the case that most software engineering is just hacking pieces of software together, but Python still does a pretty bad job of it. Python libraries tend to be weird/poorly designed and pretty hard to actually use. R is a much nicer/more expressive language for ML stuff. Again, the only real advantage python has here is that everyone else is using it.
lesser23•10mo ago
Maybe I’m just suffering from Stockholm syndrome but I haven’t really had trouble using most libraries in Python. I do agree however that Python makes it harder to write reusable code.

To quote Bjarne Stroustrup there are only two kinds of languages: the ones people complain about and the ones nobody uses :).

nathan_compton•10mo ago
I'm sure some Python libraries are good, but I use pandas all the time and I hate it all the time.
mdaniel•10mo ago
Adjacent: I don't like NumPy - https://news.ycombinator.com/item?id=43996431 - May, 2025 (210 comments)
sgammon•10mo ago
How does this compare to GraalPy? Why create something new when GraalPy can already build native programs?
actionfromafar•10mo ago
LPython seems more like Shedskin. (Shedskin compiles Python to C++.)

You could say that LPython and Shedskin are to Python what Crystal is to Ruby.

zem•10mo ago
imo that misrepresents crystal, which is not a compiler from ruby to c++/native but a separate language that takes a lot of inspiration from ruby and tries to maintain a similar syntax, but does not consider itself a ruby dialect or implementation.
actionfromafar•9mo ago
I think you are right, it wasn't a great comparison.
theanonymousone•10mo ago
I'm following them since their first mention in HN in 2023, particularly for Wasm support in compilation. Still not much output, unfortunately.
gsf_emergency•10mo ago
Might this be a subtler than one might think response to RPython?

About its sponsor GSI:

>As a leader in SRAM technology, we leverage our extensive expertise to develop radiation-hardened memory products for space and military use

Canada's bill C-22 mandates mass metadata surveillance of Canadians

https://www.michaelgeist.ca/2026/03/a-tale-of-two-bills-lawful-access-returns-with-changes-to-war...
193•opengrass•3h ago•59 comments

Chrome DevTools MCP

https://developer.chrome.com/blog/chrome-devtools-mcp-debug-your-browser-session
284•xnx•5h ago•130 comments

The 49MB web page

https://thatshubham.com/blog/news-audit
245•kermatt•4h ago•143 comments

LLMs can be exhausting

https://tomjohnell.com/llms-can-be-absolutely-exhausting/
38•tjohnell•3h ago•24 comments

//go:fix inline and the source-level inliner

https://go.dev/blog/inliner
103•commotionfever•4d ago•32 comments

LLM Architecture Gallery

https://sebastianraschka.com/llm-architecture-gallery/
200•tzury•8h ago•14 comments

A new Bigfoot documentary helps explain our conspiracy-minded era

https://www.msn.com/en-us/news/us/a-new-bigfoot-documentary-helps-explain-our-conspiracy-minded-e...
24•zdw•2h ago•4 comments

Separating the Wayland compositor and window manager

https://isaacfreund.com/blog/river-window-management/
205•dpassens•9h ago•86 comments

What makes Intel Optane stand out (2023)

https://blog.zuthof.nl/2023/06/02/what-makes-intel-optane-stand-out/
171•walterbell•9h ago•113 comments

Bandit: A 32bit baremetal computer that runs Color Forth [video]

https://www.youtube.com/watch?v=HK0uAKkt0AE
5•surprisetalk•3d ago•0 comments

Glassworm Is Back: A New Wave of Invisible Unicode Attacks Hits Repositories

https://www.aikido.dev/blog/glassworm-returns-unicode-attack-github-npm-vscode
211•robinhouston•11h ago•123 comments

C++26: The Oxford Variadic Comma

https://www.sandordargo.com/blog/2026/03/11/cpp26-oxford-variadic-comma
106•ingve•4d ago•60 comments

Nasdaq's Shame

https://keubiko.substack.com/p/nasdaqs-shame
82•imichael•2h ago•19 comments

Learning athletic humanoid tennis skills from imperfect human motion data

https://zzk273.github.io/LATENT/
116•danielmorozoff•9h ago•22 comments

Stop Sloppypasta

https://stopsloppypasta.ai/
76•namnnumbr•7h ago•36 comments

Type systems are leaky abstractions: the case of Map.take!/2

https://dashbit.co/blog/type-systems-are-leaky-abstractions-map-take
15•tosh•4d ago•5 comments

In Memoriam: John W. Addison, my PhD advisor

https://billwadge.com/2026/03/15/in-memoriam-john-w-addison-jr-my-phd-advisor/
83•herodotus•8h ago•4 comments

A Visual Introduction to Machine Learning (2015)

https://r2d3.us/visual-intro-to-machine-learning-part-1/
309•vismit2000•13h ago•29 comments

Bus travel from Lima to Rio de Janeiro

https://kenschutte.com/lima-to-rio-by-bus/
110•ks2048•4d ago•42 comments

Kangina

https://en.wikipedia.org/wiki/Kangina
51•thunderbong•2h ago•3 comments

Show HN: Open-source playground to red-team AI agents with exploits published

https://github.com/fabraix/playground
12•zachdotai•1h ago•0 comments

Excel incorrectly assumes that the year 1900 is a leap year

https://learn.microsoft.com/en-us/troubleshoot/microsoft-365-apps/excel/wrongly-assumes-1900-is-l...
18•susam•50m ago•5 comments

Show HN: Free OpenAI API Access with ChatGPT Account

https://github.com/EvanZhouDev/openai-oauth
11•EvanZhouDev•2h ago•8 comments

Show HN: GDSL – 800 line kernel: Lisp subset in 500, C subset in 1300

https://firthemouse.github.io/
54•FirTheMouse•8h ago•13 comments

Ask HN: How is AI-assisted coding going for you professionally?

215•svara•8h ago•362 comments

Show HN: Signet – Autonomous wildfire tracking from satellite and weather data

https://signet.watch
103•mapldx•12h ago•30 comments

Animated 'Firefly' Reboot in Development from Nathan Fillion, 20th TV

https://www.hollywoodreporter.com/tv/tv-news/animated-firefly-reboot-in-development-nathan-fillio...
153•Amorymeltzer•6h ago•36 comments

Hollywood Enters Oscars Weekend in Existential Crisis

https://www.theculturenewspaper.com/hollywood-enters-oscars-weekend-in-existential-crisis/
118•RickJWagner•11h ago•379 comments

Show HN: What if your synthesizer was powered by APL (or a dumb K clone)?

https://octetta.github.io/k-synth/
74•octetta•11h ago•28 comments

Autoresearch Hub

http://autoresearchhub.com/
31•EvgeniyZh•1d ago•16 comments