Better HN
topnewbestaskshowjobs
Log inSign up

phmx

113 karma · joined Sep 3, 2016 (10y ago) · 18 submissions

Submissions

comment 1mo ago · link · parent

``` void* mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset) { if (!real_mmap) real_mmap = dlsym(RTLD_NEXT, "mmap"); ```

hope it's not run by multiple threads and dlsym is not allocating.

comment 2mo ago · link · parent

Also, don’t be the one who fights sharp swords with Marvin Minsky’s useless boxes.

comment 2mo ago · link · parent

I guess GitHub is in a similar bunch of sources, it should be also more efficient to crawl by cloning. Anyway, isn’t it the whole sales pitch that it generates tailored solutions fast?

comment 4mo ago · link · parent

The Metals documentation includes instructions for setting it up with Emacs. I followed them, and everything works, including worksheets.

https://scalameta.org/metals/docs/editors/emacs

comment 4mo ago · link · parent

The code we've shipped throughout our careers certainly wasn't reviewed only by us. It was reviewed by programmers with more expertise in the relevant area. That's a healthy and efficient division of labor, expertise, and responsibility.

comment 4mo ago · link · parent

This reminds of a moisture farm from the Star Wars — https://starwars.fandom.com/wiki/Lars_homestead

comment 5mo ago · link · parent

On a tangential point, one thing that should definitely not be possible for apps these days is determining whether you enabled a VPN. AFAIK, it’s possible indirectly in iOS by enumerating network interfaces with specific/telling names.

comment 7mo ago · link · parent

Looks similar to the halting problem to me (https://en.wikipedia.org/wiki/Halting_problem)

comment 9mo ago · link · parent

> Polynomials are for people who think AGI is "decades away."

Je suis un polynôme

10.

Docker 4.58 CPU spiking to high values by running lsof(github.com ↗)

2 points · by phmx · 10mo ago · 1 comment

11.

Xmake: A cross-platform build utility based on Lua(xmake.io ↗)

87 points · by phmx · 10mo ago · 38 comments

12.

When your hash becomes a string: Hunting Ruby's million-to-one memory bug(mensfeld.pl ↗)

137 points · by phmx · 1y ago · 62 comments

13.

Tesseract Open Source OCR Engine(github.com ↗)

3 points · by phmx · 1y ago · discuss

comment 2y ago · link · parent

And https://en.wikipedia.org/wiki/Mottainai I guess

comment 2y ago · link · parent

There is also a way to import a table from the STDIN (see also https://duckdb.org/docs/data/json/overview)

cat my.json | duckdb -c "CREATE TABLE mytbl AS SELECT * FROM read_json_auto('/dev/stdin'); SELECT ... FROM mytbl"

comment 3y ago · link · parent

There's been a writeup on this topic by the Fly team -- https://fly.io/blog/docker-without-docker/

comment 4y ago · link · parent

English translation starting from page 7.

18.

Roskomvoboda's statement on disabling services for Russian citizens [pdf](roskomsvoboda.org ↗)

11 points · by phmx · 4y ago · 3 comments