Readit News logoReadit News
ptspts commented on Areal, Are.na's new typeface   are.na/editorial/introduc... · Posted by u/g0xA52A2A
ptspts · 3 days ago
How is Areal different from Arial? Neither the article nor https://are.al.are.na/ seem to be informative and focused on this.
ptspts commented on Agent-C: a 4KB AI agent   github.com/bravenewxyz/ag... · Posted by u/liszper
memming · 6 days ago
qwen coder with a simple funky prompt?!

`strcpy(agent.messages[0].content, "You are an AI assistant with Napoleon Dynamite's personality. Say things like 'Gosh!', 'Sweet!', 'Idiot!', and be awkwardly enthusiastic. For multi-step tasks, chain commands with && (e.g., 'echo content > file.py && python3 file.py'). Use execute_command for shell tasks. Answer questions in Napoleon's quirky style.");`

ptspts · 5 days ago
I find this style overy verbose, disrepectful, offensive and dumb. (See example dialogue in the screenshot on the project page.) Fortunately, it's possible to change the prompt above.

Dead Comment

ptspts commented on Without the futex, it's futile   h4x0r.org/futex/... · Posted by u/eatonphil
ptspts · 12 days ago
Half of the source code is colored very-light-on-white, which is impossible to read. I'm using Chrome on Android.
ptspts commented on Don't animate height   granola.ai/blog/dont-anim... · Posted by u/birdculture
bobthepanda · a month ago
The problem is that everyone (browsers + developers) need to agree on a replacement, which is notoriously hard to do. Chrome got laughed out of the room with Dart/Flutter.
ptspts · a month ago
Supporting arbitrary image formats and compression methods in the browser is easy: just ship the decoder as a WebAssembly function.

(This is not any better solution than GIF or aPNG though for the problem in the article.)

ptspts commented on Parsing Protobuf like never before   mcyoung.xyz/2025/07/16/hy... · Posted by u/ibobev
ptspts · a month ago
Where are the benchmarks comparing hyperpb to other proto parsers?
ptspts commented on How I lost my backpack with passports and laptop   psychotechnology.substack... · Posted by u/eatitraw
ptspts · a month ago
The title of the post is misleading, because it is not revealed in the story how the backpack was actually lost. The short summary: ``I don't remember how I lost my backpack, because I was heavily intoxicated during those hours when I lost it.''
ptspts commented on Strategies for Fast Lexers   xnacly.me/posts/2025/fast... · Posted by u/xnacly
ptspts · 2 months ago
The Str_to_double code in the article produces inaccurate results in the last few bits. (What is the use of parsing a double inaccurately?) Accurate parsing of a double is really tricky (and memory-hungry and slow). The strtod(3) function provided by a decent libc (such as glibc and musl, and also the FreeBSD libc) can do it correctly.
ptspts commented on Why is the Rust compiler so slow?   sharnoff.io/blog/why-rust... · Posted by u/Bogdanp
kenoath69 · 2 months ago
Where is Cranelift mentioned

My 2c on this is nearly ditching rust for game development due to the compile times, in digging it turned out that LLVM is very slow regardless of opt level. Indeed it's what the Jai devs have been saying.

So Cranelift might be relevant for OP, I will shill it endlessly, took my game from 16 seconds to 4 seconds. Incredible work Cranelift team.

ptspts · 2 months ago
Isn't `gcc -O0` (for both C and C++) even slower than `clang -O0`?
ptspts commented on Parsing JSON in Forty Lines of Awk   akr.am/blog/posts/parsing... · Posted by u/thefilmore
jcynix · 2 months ago
>awk really shoots itself so much with its lack of features that it so desperately needs!

That's why I use Perl instead (besides some short one liners in awk, which in some cases are even shorter than the Perl version) and do my JSON parsing in Perl.

This

diff -rs a/ b/ | ask '/identical/ {print $4}' | xargs rm

is one of my often used awk one liners. Unless some filenames contain e.g. whitespace, then it's Perl again

ptspts · 2 months ago
This is much safer: xargs -d '\n' rm -f --

u/ptspts

KarmaCake day331October 2, 2014
About
[ my public key: https://keybase.io/pts; my proof: https://keybase.io/pts/sigs/C34Y9N0h_-KIkEDMgG6Jf5TicT20del-Z3zqVJh1afY ]
View Original