Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sieve
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
181.
▲
by
sieve
2y ago
> If all you do is construct an AST and interpret it it's not really a compiler is it. What if I dumped the AST to disk, called it "bytecode" and updated the "interpreter" to run this "bytecode"? Would
182.
▲
by
sieve
2y ago
> The hardest part (IMHO) about getting a simple language running, particularly for beginners, is the “expression” This is why teaching material should be tailored towards teaching rather than implementing demented stuff from the real wo
183.
▲
by
sieve
2y ago
Problem with these tools is, you have to spend time wrangling them instead of learning to write a lexer/parser yourself. A recursive-descent parser is a beautiful thing and can be implemented very quickly.
184.
▲
by
sieve
2y ago
If you know basic programming (js/python), a day is more than enough to get the concept across using a tiny language. Could probably be done in an hour. The problem, always, is people are given terrible reading recommendations which ma
185.
▲
by
sieve
2y ago
Compilers are some of the simplest "complicated" programs out there if you start by throwing yacc/bison/antlr/parser generators in the garbage. Production compilers are complicated because of the feature set of lang
186.
▲
by
sieve
2y ago
This is why I don't use the c std library for my compiler/vm projects. For the few functions you need, you build your own library that wraps the syscalls. And then you can distribute a binary that will run on Linux kernels going b
187.
▲
by
sieve
2y ago
Was submitted yesterday: https://news.ycombinator.com/item?id=43108216
188.
▲
by
sieve
2y ago
> For tooling shipped to client environments, I now tend to steer clear of it. A guy on r/WritingWithAI is building a new writing assistant tool using python and pyQt. He is not a SE by trade. Even so, the installation instructions
189.
▲
by
sieve
2y ago
> If your only metric for a language is speed then nothing really beats hand crafted assembly Only if you know the micro-architecture of the processor you are running on at great depth and can schedule the instructions accordingly. Moder
190.
▲
by
sieve
2y ago
Karpathy's recent video[1] is quite good. 1. Deep Dive into LLMs like ChatGPT ( https://youtube.com/watch?v=7xTGNNLPyMI )
191.
▲
by
sieve
2y ago
When the topic of backups came up last year, I talked about my current solution: https://news.ycombinator.com/item?id=41042790 . Someone suggested a workaround in the form of zfsbootmenu but I decided to stick to the simple
192.
▲
by
sieve
2y ago
Very different way of doing things compared to the JVM which is what I have most experience with. Was some kind of FFI using dlopen and sharing memory across the vm boundary ever considered in the past, instead of having to compile extensio
193.
▲
by
sieve
2y ago
I am only criticizing python because I am actively using it. The node ecosystem and the rust one seem to have their own issues. I have zero interest in either of them so I haven't looked into them in detail. However, I have to deal wi
194.
▲
by
sieve
2y ago
Have been using ZFS for the past thirteen years and all my workflows including backup are based on it. It just works.
195.
▲
by
sieve
2y ago
> if you want native extensions written in C The SQLite project I linked to is a JDBC driver that makes use of the C version of the library appropriate to each OS. LWJGL ( https://repo1.maven.org/maven2/org/lwjg
196.
▲
by
sieve
2y ago
> people don't need to work out which version of cuda/which gpu settings/libraries/etc. to use This is not true in my case. The regular pytorch does not work on my system. I had to download a version specific to my sy
197.
▲
by
sieve
2y ago
A bit baffling, IMO, the focus on GIL over actual python performance, particularly when you had so many examples of language virtual machines improving performance in that era. So many lost opportunities.
198.
▲
by
sieve
2y ago
Thanks! Hearing about this for the first time. Never felt the need before.
199.
▲
by
sieve
2y ago
> Neither Java nor JS encourages the use of native extensions to the same degree that Python does. You already had billions of lines of Java and JS code that HAD to be sped up. So they had no alternative. If python had gone down the same
200.
▲
by
sieve
2y ago
> There are efforts to speed it up Well, the extensions are going to complicate this a lot. A fast JIT interpreter cannot reach into a library and do its magic there the way HotSpot/V8 can with native Java/JS code.
201.
▲
by
sieve
2y ago
Not sure. The simplest solution is to store all files under a hashed name and sym/hardlink on a case to case basis. But some applications tend to behave weirdly with such files. Windows has its own implementation of symlinks and hardli
202.
▲
by
sieve
2y ago
My use of python is somewhat recent. But the two languages that I have used a lot of - Java and JS - have interpreters that were heavily optimized over time. I wonder why that never happened with python and, instead, everyone continues to w
203.
▲
by
sieve
2y ago
I use ZFS everywhere EXCEPT on this drive. Not willing to have ZFS on the primary drive till native support lands in the kernel (so, never).
204.
▲
by
sieve
2y ago
> Different Python versions each need their own separate Torch binaries as well Found this the hard way. Something to do with breakage in ABI perhaps. Was looking at the way python implements extensions the other day. Very weird.
205.
▲
by
sieve
2y ago
ROCm. About 40%. But there is duplication there as well. Two 16GB folders containing the exact same version.
206.
▲
by
sieve
2y ago
I use uv pip to install dependencies for any LLM software I run. I am not sure if uv re-implements the pip logic or hands over resolution to pip. But it does not change the fact that I have multiple versions of torch + multiple installation
207.
▲
by
sieve
2y ago
Well, big fan of uv. But... the 86GB python dependency download cache on my primary SSD, most of which can be attributed to the 50 different versions of torch, is testament to the fact that even uv cannot salvage the mess that is pip. Never
208.
▲
by
sieve
2y ago
The only place where the phone number really matters in India is when dealing with banks, AADHAR and the phone company. Phone/Gas/Electricity/Internet/Cable etc bills can be paid through any of the hundred-odd mobile wal
209.
▲
by
sieve
2y ago
> Narayan Murthy (founder of InfoSys) saying that Indian AI entrepreneurs should come clean and admit that there isn't enough data to train AIs for Indian language translation. What does he know about this, exactly? I managed to tra
210.
▲
by
sieve
2y ago
There is a place on the long line between max-performance and max-convenience that a lot of projects can build their house on but simply do not because they do not care. Some of my projects are heavily dependant on parsing strings when the
More ›