Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
eliben
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
34 ms
·
31.
▲
by
eliben
2y ago
This is very impressive, amazing work! One question: how do you manage large code bases in scratch? Is it easy to find a piece of code? Something like grepping for specific things seems difficult. I've recently been really warming up t
32.
▲
by
eliben
2y ago
It is authoritatively debunked in Sid Meier's (excellent) memoir - there was no such integer underflow bug in Civ I, it was all a rumor that went viral. The franchise did embrace the meme, though.
33.
▲
by
eliben
2y ago
Sorry, the intention was just to show a cool use of complex numbers, not claim this is the simplest method to generate 12 which is pretty simple, as you demonstrate.
34.
▲
by
eliben
2y ago
Really? But why? All of 2+2, 2*2 2^2 are trivially 4, and sqrt(4)=2 so why is the + more odd than others?
35.
▲
by
eliben
2y ago
JIT is something different people sometimes define in different ways. In this sample, when the function itself is called (not when it's decorated), analysis runs followed by LLVM codegen and execution. The examples in the blog post are
36.
▲
by
eliben
2y ago
Indeed, I have a plan to publish a follow-up using GoMLX - I already have the code working and just need to clean it all up and write a post
37.
▲
by
eliben
2y ago
I posit that computer programming is one of the least vulnerable among the creative professions, because how "meta" it is, and how we're all just abstracting on top of other abstractions. AI is yet another abstraction to buil
38.
▲
by
eliben
2y ago
Yes, all the time! The built-in net/http has great TLS support https://eli.thegreenplace.net/2021/go-https-servers-with-tls...
39.
▲
by
eliben
2y ago
Whenever one reads articles like this, it's a bit of a consolation to remember that the same factors are shaking up the journalists' world much more and much sooner. This article, like many of its kind, could've easily been w
40.
▲
by
eliben
2y ago
It's a series of unfortunate copy paste errors, thanks for noticing. I'll get it fixed
41.
▲
by
eliben
2y ago
I wonder if it's Zig or musl that's to blame; did you end up statically linking with musl using musl-gcc, or did you forego static linking entirely?
42.
▲
by
eliben
2y ago
Interesting, so this approach still works through an explicitly created service account? Do you think it's possible to make it work without a GCP Service Account at all?
43.
▲
by
eliben
2y ago
Thanks, in your instructions it's not clear where the `$ACCOUNT.json` file is coming from? I will mention the service enable.
44.
▲
by
eliben
2y ago
I loved my stint with Clojure, highly recommend it ( https://eli.thegreenplace.net/2017/clojure-the-perfect-langu... )
45.
▲
by
eliben
2y ago
In a way, that's what the PGO mode of the compiler is
46.
▲
by
eliben
3y ago
Adobe facing pressure as study finds $99 program can be made for $0
47.
▲
by
eliben
3y ago
Reminds me of the proof that every number is interesting; it's a fun one to discuss with the kids.
48.
▲
by
eliben
3y ago
Fantastic story, one of my favorites by Asimov! What's fun for HN is that his target profession is actually Computer Programmer. Interesting correlation to his eventual fate. I wrote a short post about this story w.r.t. job displacemen
49.
▲
by
eliben
3y ago
WAT is a fun format! I'm curating some readable samples here -- https://github.com/eliben/wasm-wat-samples/
50.
▲
by
eliben
3y ago
Really nice work! I'm happy you found my articles useful :)
51.
▲
by
eliben
3y ago
Yes, `llm` is a great tool. I believe it uses OpenAI by default but supports installing local models as plugins -- https://simonwillison.net/2023/Jul/12/llm/
52.
▲
by
eliben
3y ago
Neither of this really requires OpenAI. You can do it with locally-running models via something like https://github.com/mudler/LocalAI
53.
▲
by
eliben
3y ago
This code is enjoyable to look at - it's clean, well-documented, and clearly a work of love. I like all the small utilities that help the author accomplish a bunch of goals. I wonder if the code manages be so clean because it's on
54.
▲
by
eliben
3y ago
Ooh, I did this too a while ago: https://eliben.github.io/lsystem/ This has some pre-sets you can examine that draw well-known fractals
55.
▲
by
eliben
3y ago
Changes are sometimes added to the release notes doc (in the master branch) during the dev cycle, but your best bet is watching the commit stream. The release notes are much more shaped up by the time RC rolls around (see https:/&#x
56.
▲
by
eliben
3y ago
> conrete paths MUST TAKE PRECEDENCE over patterns. And indeed they do.
57.
▲
by
eliben
3y ago
This is done now, thanks for the suggestion
58.
▲
by
eliben
3y ago
Done now; thanks for the note!
59.
▲
by
eliben
3y ago
Indeed, the actual heavy lifting is done by the Go standard library; this line ( https://github.com/eliben/static-server/blob/main/internal/s... ) is where the real magic happens (ignoring the logging
60.
▲
by
eliben
3y ago
Thanks for the comment, Matt! I love Caddy. For some reason I thought it needs a configuration file. The simplest cmdline I found to run it as a local server on a non-priveledged port with listings is: $ caddy file-server --listen loc
More ›