Better HN
topnewbestaskshowjobs
Log inSign up

d33

2,389 karma · joined Dec 9, 2015 (10y ago) · 825 submissions

Submissions

comment 2d ago · link · parent

Awesome! I'd love to see userspace work in wasm too though. Someone once did a PoC, but scheduling processes was a pain - AFAIK noone knows how to force preemption?

https://joelseverin.github.io/linux-wasm/

comment 2w ago · link · parent

I know it's boring at this point, but seeing Claudish headers like "The merge box, distilled" and "Keep your place. Focus your attention" just screams SLOP at me.

I can't read it. It's not really text.

comment 1mo ago · link · parent

Thank you! Never researched it before. It's a pretty wholesome story that he ended up with two friends.

comment 2mo ago · link · parent

Can you please elaborate? I hadn't found any sources and Google points to this post as the #1 use of "Neuralisee".

comment 3mo ago · link · parent

Are there improvements in how memory_limit works? I often had DuckDB get OOM killed because it went beyond its limit. It's definitely one of the reasons why I usually have an AI tune the environment for my datasets.

comment 1y ago · link · parent

Thank you! It seems to be what I'm looking for.

comment 1y ago · link · parent

I just tried building and running it. Surprisingly many websites already load fine, though Youtube doesn't and Vimeo/Reddit comment section crashed it. Still, the results are quite encouraging! It takes ~6GB of HDD to build it.

comment 1y ago · link · parent

I've recently been wondering: could you re-compress gzip to a better compression format, while keeping all instructions that would let you recover a byte-exact copy of the original file? I often work with huge gzip files and they're a pain to work with, because decompression is slow even with zlib-ng.

comment 1y ago · link · parent

Thanks! Any ideas why it didn't get merged? Clearly 7-Zip has some development activity going on and so does this fork...

comment 1y ago · link · parent

I worry that 7-Zip is going to lose relevance because lack of zstd support. zlib's performance is intolerable for large files and zlib-ng's SIMD implementation only helps here a bit. Which is a shame, because 7-Zip is a pretty amazing container format, especially with its encryption and file splitting capabilities.

11.

China suspended exports of rare earth minerals(nytimes.com ↗)

32 points · by d33 · 1y ago · 5 comments

comment 2y ago · link · parent

I don't want this to sound cynical, but do we have any examples where the US government successfully got the corporations to actually increase security, as opposed to just gaming the regulations to make more money instead?

13.

Astonishing Anti Repair Practices by Apple in the Last 15 Years [video](youtube.com ↗)

3 points · by d33 · 2y ago · discuss

comment 2y ago · link · parent

I'm surprised by the performance. Doesn't qemu have dynamic recompilation capabilities?

comment 2y ago · link · parent

Related: https://security.stackexchange.com/questions/56069/what-secu...

comment 2y ago · link · parent

While reading Amazon reviews, I learned that they missed the contributions by Hedy Lamarr, a very interesting and impressive figure:

https://en.wikipedia.org/wiki/Hedy_Lamarr

comment 2y ago · link · parent

This inspired me to do this experiment:

dd if=/dev/zero bs=1K count=$(( 256 * 3 )) of=a.ext4

mfks.ext4 a.ext4

mkdir a

sudo mount a.ext4 a

cd a

sudo chown 1000:1000 .

python3 -c 'open("a", "wb").write(b"\xff\x00\x00" * 2000)'

python3 -c 'open("b", "wb").write(b"\xff\xff\x00" * 2000)'

python3 -c 'open("c", "wb").write(b"\xff\x00\xff" * 2000)'

cd ..

sudo umount a

(echo -n 'P6\n512 512\n255\n' ; cat a.ext4 ) > a.ppm

convert a.ppm a.png

The resulting a.png is reversible - you can convert it back to .ppm file, skip first 15 bytes and you should get a valid .ext4 back.

comment 3y ago · link · parent

Previously mentioned Depthboot from Eupnea Project (https://news.ycombinator.com/item?id=36888598), while allows you to install Linux distributions on Chromebooks, requires user to generate modified images with custom kernels, which is harder to maintain than mainline/original distribution kernels. Meanwhile Chrultrabook project is actively contributing to upstream projects, allowing for installation of Linux distributions from original images thanks to proper UEFI support with Coreboot - this makes it more future proof, despite more steps required for Coreboot installation.

https://chrultrabook.github.io/docs/

comment 3y ago · link · parent

Timely! I just deployed it on our company server. There's a hidden gem that's not enabled by default and really helps when pair programming in Jupyter:

https://jupyterlab.readthedocs.io/en/stable/user/rtc.html

Here's a Dockerfile that enables it:

    FROM jupyter/scipy-notebook:2023-07-25
    RUN pip install jupyter-collaboration
    ENV DOCKER_STACKS_JUPYTER_CMD="lab --collaborative"
Usage:

    docker build . -t jupyter-collaboration && docker run -p 10000:8888 jupyter-collaboration
The only missing would be having more than one cursor and some convenient way to start and attach remote servers, e.g. over AWS...

comment 3y ago · link · parent

Is "zstd" a typo? Couldn't find any sources on it (unless we mean the compression standard), including Wikipedia.

comment 3y ago · link · parent

In case anyone else is wondering:

> The Scream Test is simple – remove it and wait for the screams. If someone screams, put it back. The Scream Test can be applied to any product, service or capability – particularly when there is poor ownership or understanding of it’s importance.

https://www.v-wiki.net/scream-test-meaning/

comment 3y ago · link · parent

As always, Web Archive comes to rescue: https://web.archive.org/web/20230701142059/https://jollyroge...

comment 3y ago · link · parent

For that to work you have to trust the firmware. Overwriting with something random, saving what was fed and then cross-referencing that against the storage could work better, but there's still some non-zero chance that something you're looking for is in a buffer, unreachable part of the disk or the like.

Encrypting the hard drive and then removing the key has a better chance of rendering the data unusable.

comment 3y ago · link · parent

Do we have a proof that this means that they're ready for the late game, as opposed to just investors being desperate?

comment 3y ago · link · parent

Here's what I tried and recommend:

https://www.youtube.com/c/DANLIAOFreeToLearn - "Free To Learn Chinese", teacher uses a "natural method" where all of the content is in Chinese and most difficult words are paraphrased (HSK1-6)

https://www.youtube.com/@ShuoshuoChinese - similar but HSK1-4 and parts of the contents are in Chinese

comment 3y ago · link · parent

They still can't beat the laws of physics. It's just the kind of density that doesn't seem feasible to put in a smartphone.

comment 3y ago · link · parent

One thing that I wonder about is: could we write extra code that makes those reversible? I understand that there are no stack frames other than the topmost one, but maybe if we recorded the first and last one as well as a copy of the arguments, it could be enough to reconstruct the flow?

comment 3y ago · link · parent

Why do you see it as more frustrating?

comment 3y ago · link · parent

It's intriguing which battles they choose.

It wasn't long since there was a discussion where some people were arguing that they can't make moral judgements because disobeying the law would put them in a very difficult situation:

https://news.ycombinator.com/item?id=35028107&

comment 3y ago · link · parent

I'd say that pretty much everything about SQL is bad. Apart from composability, the syntax is super annoying (the ordering of keywords), many databases have pretty much no error reporting if you get it wrong and the linters suck. You can't unit test it. It's not very well standardized and it's actually more than one language (DML vs DDL). Plus, it's not very readable. And the declarative nature of the language is eventually going to back-stab you when you discover yet another edge case of your query planner that flips a reasonable plan to one that's literally going to take ages.
12345
28