Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ngnk
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
1.
▲
by
ngnk
6y ago
https://i.imgur.com/sJJWBtq.png
2.
▲
by
ngnk
7y ago
ktye says it compiles with msys2/mingw (msys2.org). i haven't tried it as i don't use windows at all.
3.
▲
by
ngnk
7y ago
regarding windows - see https://news.ycombinator.com/item?id=22010059
4.
▲
by
ngnk
7y ago
ianal. to the best of my knowledge the project is clean from a legal perspective. ofc, you don't have to be doing something wrong to become a target of copyright trolling.
5.
▲
by
ngnk
7y ago
1:x uses mmap, so it would return instantly no matter how large a file you give it 0:x uses 1:x and then it splits the content into lines. unfortunately splitting requires copying, so you'd be limited by the amount of ram (let's i
6.
▲
by
ngnk
7y ago
reading is done with mmap. it returns instantly and then loads memory pages from disk only when you use them.
7.
▲
by
ngnk
7y ago
0:"path" /read lines "path"0:("line1";"line2") /write lines 1:"path" /read bytes "path"1:"content"
8.
▲
by
ngnk
7y ago
i can confirm, geocar's understanding of the code is correct
9.
▲
by
ngnk
7y ago
the agpl is not so much about making concise code pleasant for the masses, as it is about making its freedom viral
10.
▲
by
ngnk
7y ago
that's a good read, thanks. afaik zeroing %rbp here plays no role other than to assist debuggers. i'm not sure if alignment makes any measurable difference. if it does, it'll be worth doing. i jmp to main() because i wrote it
11.
▲
by
ngnk
7y ago
i'd encourage people to compile from source. the binary in "downloads" was compiled without the "-march=native" flag, in order to support older cpus, so it's a bit slower. also, i don't intend to update it
12.
▲
by
ngnk
7y ago
i changed it to "telemetry". i'm not really sure what to call it. they are upfront about it in the clickwrap eula but the data is not anonymized (see section 1.5a - in k ".z.u" means username) and you are not allowe
13.
▲
by
ngnk
7y ago
across architectures: you're right, as of now it's x86_64 only across operating systems: it works on linux and freebsd as-is (thanks bakul), and with a few changes on windows+libc (thanks ktye) - https://github.com/
14.
▲
by
ngnk
7y ago
any ideas for a more compact and efficient way to get argc and argv on both linux and freebsd without bringing in libc?