HNHacker News
TopNewBestAskShowJobs

ivankra

294 karma · joined October 16, 2023

https://github.com/ivankra
submissionscomments
ivankra··on Opera: Rewind The Web to 1996 (Opera at 30)
Eh, marketing fluff. This is more like it: https://oldweb.today/ - browse old web (from archive.org) with old browsers (in Wasm)

A better way to celebrate 30 years of their browser would be to just open source it. Code's been leaked and irrelevant today anyway but still.

ivankra··on What Young Workers Are Doing to AI-Proof Themselves
Eh, it's been cheaper and better for a long time to just demolish and rebuild rather than deal with neverending issues at major fixer uppers. Robots probably would be able to do uncomplicated cookie-cutter builds in a decade or two, there's just too much money in the construction sector that AI companies looking for the next big thing to disrupt can't ignore.
ivankra··on A curated list of AI slops
Found this gem today: https://github.com/pmatos/jsse/ - "An agent-coded JS engine in Rust. I didn't touch a single line of code here... didn't even create this repo by hand -- my agent did that."

Passes 99.96% of test262 - that's more than V8 & co!

ivankra··on Ask HN: Are there any CS niches safe from AI?
Security / Finance. People aren't going to trust slop to make critical decisions for a long time.

Any niche areas - once you venture outside of topics/tasks well represented on the Internet and GitHub, even frontier LLMs still quickly take a nosedive.

ivankra··on Temporal: The 9-year journey to fix time in JavaScript
Try `node --harmony-temporal`
ivankra··on Traffic from Russia to Cloudflare is 60% down from last year
VPNs are widespread in Russia, so they probably misattribute a good chunk of the traffic.

"By 2025, about 41% of Russian internet users were relying on VPNs — one of the highest adoption rates in the world." [1]

[1] https://cepa.org/article/blocked-and-bypassed-russians-evade...

ivankra··on MacBook Pro with M5 Pro and M5 Max
But memory bandwidth (bottleneck for LLM inference) is only marginally improved, 614 GB/s vs 546 GB/s for M4/M5 Max - where is this 4x improvement coming from?

I think I'll pass on upgrading.

ivankra··on Why is Claude an Electron app?
Eh, didn't even Microsoft give up and just shipped a React-based start menu at one point? The range of "native" on Windows 11 is quite wide - starts with an ancient Windows 3.1 ODBC dialog box.
ivankra··on Why is Claude an Electron app?
> For now, Electron still makes sense

A few years ago maybe. Tauri makes better sense for this use case today - like Electron but with system webviews, so at least doesn't bloat your system with extra copies of Chrome. And strongly encourages Rust for the application core over JS/Node.

ivankra··on Caffeine content for coffee, tea, soda and more
Corn silk tea and chamomile, both have zero caffeine.
ivankra··on Ask HN: What's the best virtual Linux desktop experience on macOS for devs?
> on UTM (QEMU and Apple Virt Framework), but many of them don’t appear to support GPU acceleration

Uh, it does. OpenGL/virgl works great out of the box for me with UTM and Linux guests (I'm on stock Debian stable), perfectly usable and performant enough to drive an external 4K monitor - my daily driver. Ditched my beefy Intel workstation for it, no regrets.

There's now virtualized Vulkan support which just shipped in UTM 5.0.0 this month - really exciting news! But it is still kinda buggy, so maybe that's your problem. Try UTM 4.7.5 or disable Vulkan (in UTM > Settings > Display) for now.

ivankra··on Gas Town Decoded
Maybe helps the LLM, but at the cost of confusing humans. It would've been better left as an internal implementation detail. I've got better things to keep in my head that remembering wtf deacon is, etc.
ivankra··on Show HN: Yolobox – Run AI coding agents with full sudo without nuking home dir
You can bind-mount a single file read-only with docker.

While you're at it, bind mount .git read-only as well. Hasn't happened to me yet, but talked to people who had their local repo wiped out by desperate agents! No code - no broken tests, eh. It would also block one nasty container escape vector via git hooks.

ivankra··on I dumped Windows 11 for Linux, and you should too
Nonsense. I've been running Linux just fine as my daily driver on Macbook M4 for a year. Besides battery life (VM is kinda heavy on it) and some minor issues (fewer than you'd think, especially with Vulkan landing in UTM today) it's the best Linux laptop I've owned ever so far. I like macOS as much as the next Linux user here, but it's fairly decent as a hypervisor. If anything, at least it comes with UI unlike Intel ME.
ivankra··on JavaScript engines zoo – Compare every JavaScript engine
I captured max RSS size while running benchmarks as a rough approximation, but it's not exposed anywhere. If you go to the repo, you can run `./bench/compare -f rss_mb -lT bench/amd64/*.json` to see a table in the terminal. No big surprises there, Java engines (Rhino, Nashorn, GraalJS) are most memory-hungry.
ivankra··on JavaScript engines zoo – Compare every JavaScript engine
Put them in a container or VM? Security benefits from layering: engine/runtime is one layer, container/VM is another - an attacker would need two independent high-value exploits to breach both of them.

High budget is no guarantee for absence of critical bugs in an engine, maybe even somewhat opposite - on a big team the incentives are aligned with shipping more features (since nobody gets promoted for maintenance, especially at Google) -> increasing complexity -> increasing bug surface.

If speed is less important and you can live without JIT, that expands your options dramatically and eliminates a large class of bugs. You could take a lightweight engine and compile it to a memory-safe runtime, that'd give you yet another security layer for peace of mind. Several projects did such ports to Wasm/JS/Go - for example your browser likely runs QuickJS to interpret JavaScript inside .pdf (https://github.com/mozilla/pdf.js.quickjs)

ivankra··on JavaScript engines zoo – Compare every JavaScript engine
You can use this docker image with all the pre-built binaries as a starting point: https://hub.docker.com/r/ivankra/javascript-zoo

Just keep benchmark code limited to standard ECMAScript, don't expect any browser or Node APIs besides console.log() or print().

ivankra··on JavaScript engines zoo – Compare every JavaScript engine
I actually captured max RSS size while running benchmarks as a rough approximation, but it's not exposed anywhere. If you go to the repo, you can run `./bench/compare -f rss_mb -lT bench/amd64/*.json` to see a table in the terminal. No big surprises there, Java engines (Rhino, Nashorn, GraalJS) are most memory-hungry.
ivankra··on JavaScript engines zoo – Compare every JavaScript engine
Pretty much. ES6+ scores are from running compat-table's test suite (https://compat-table.github.io/compat-table/es6/), along with their weighting. If you click on an engine's name to go to a page about it, there's a report at the bottom with failing tests.
ivankra··on Show HN: A Claude Code plugin that catch destructive Git and filesystem commands
"Someone" is a big assumption these days. What if it was an AI agent just poking in its own source code?
ivankra··on Show HN: A Claude Code plugin that catch destructive Git and filesystem commands
Ohh, good point about git hooks as a container escape vector! I probably should add `-v $PWD/.git:$PWD/.git:ro` for that (bind-mount .git as read-only).
ivankra··on Show HN: A Claude Code plugin that catch destructive Git and filesystem commands
Just put it in a container. I use bash aliases like this to start a throwaway container with bind mounted cwd, works like a charm with rootless podman. I also learned to run npm and other shady tools in this way and stopped worrying about supply chain attacks.

  alias dr='docker run --rm -it -v "$PWD:$PWD" -w "$PWD"'
  alias dr-claude='dr -v ~/.claude:/root/.claude -v ~/.claude.json:/root/.claude.json claude'
ivankra··on Netherlands – Capital Growth Tax and Capital Gains Tax for Box 3
They had essentially a wealth tax in Box 3 - your investments/savings are deemed to have a fixed fictional yield on which you pay income tax. Currently, 6.17% yield x 32% tax = 2% wealth tax. Hurts just a little bit, but it's a smooth, predictable cash flow.

They are replacing it with a much worse and untested economic policy - taxing unrealized capital gains every year. Not a big deal for relatively stable assets (real estate etc), but can explode in your face if you're into any risky volatile stuff (stocks, options, crypto) - they can crash next year, but your tax bill won't. Lack of liquidity can get you as well - you may have huge gains on paper, but for various reasons unable to sell in a reasonable timeframe and come up with equally huge amount of cash for the tax office - we're talking probably 30-50% tax here vs 2% under the old system. Double taxation if you have US passport - you're going to have to please both tax systems or pay double the tax.

The outcome I'd guess would be an exodus of the rich / upper middle class, and then they either scrap it or tighten further with exit taxes. Oh and they're also scrapping the coveted "30% ruling" for expats. Probably can forget about ever being able to FIRE in Netherlands.

ivankra··on Netherlands – Capital Growth Tax and Capital Gains Tax for Box 3
It is essentially a wealth tax system. But I wouldn't call it low: currently, 6.17% fictional yield x 32% tax rate = 2% wealth tax rate - it is at the high end among countries with a wealth tax (https://en.wikipedia.org/wiki/Wealth_tax)
ivankra··on Netherlands – Capital Growth Tax and Capital Gains Tax for Box 3
For real estate, yes, but it's a quite different type of asset with a stable value that (mostly) only goes up.

What about stocks or crypto (the assets this new law targets)? They can have wild value fluctuations in a year. If your crypto or startup's options have +1M paper gain this year and turn worthless the next year, is it fair to ask people to cough up some 300-500k of real cash in tax?

ivankra··on Netherlands – Capital Growth Tax and Capital Gains Tax for Box 3
Looks like they're coining a new legal term "Capital Growth Tax", under which they are going to tax unrealized capital gains. I'm not aware of any other country that taxes them like that (besides wealth/exit taxes), so maybe they're the world's first here!

Some countries have wealth taxes - but they are usually flat or scale with wealth, not the yearly increase in wealth. Note that currently NL does de facto have a wealth tax in Box 3 system - shares are presumed to have a fictional fixed yield of around 5-6% per year on which they charge you income tax, so it works out to about 2% wealth tax.

ivankra··on Netherlands – Capital Growth Tax and Capital Gains Tax for Box 3
Businessmen - it's for personal income taxes. I don't think it affects corporate taxes. Yet.
ivankra··on Is America's jobs market nearing a cliff?
Section 174's 15 years amortization rule on foreign R&D is kind of an indirect tax.
ivankra··on Brimstone: ES2025 JavaScript engine written in Rust
Escargot is more spec-compliant than Hermes though.

Sometimes you can't run V8 or any JIT engine because policy or politics, and it's nice to have options.

ivankra··on Brimstone: ES2025 JavaScript engine written in Rust
I have some benchmark results here: https://ivankra.github.io/javascript-zoo/?v8=true

It's impressively compliant, considering it's just a one man project! Almost as fully featured as Boa, plus or minus a few things. And generally faster too, almost double the speed of Boa on some benchmarks.

← PreviousPage 2 of 3Next →