frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Mini NASes marry NVMe to Intel's efficient chip

https://www.jeffgeerling.com/blog/2025/mini-nases-marry-nvme-intels-efficient-chip
205•ingve•5h ago•85 comments

Air Pollution May Contribute to Development of Lung Cancer in Never-Smokers

https://today.ucsd.edu/story/air-pollution-may-contribute-to-development-of-lung-cancer-in-never-smokers-new-study-finds
46•gmays•1h ago•15 comments

How to Incapacitate Google Tag Manager and Why You Should (2022)

https://backlit.neocities.org/incapacitate-google-tag-manager
44•fsflover•2h ago•22 comments

EverQuest

https://www.filfre.net/2025/07/everquest/
102•dmazin•4h ago•43 comments

The story behind Caesar salad

https://www.nationalgeographic.com/travel/article/story-behind-caesar-salad
13•Bluestein•41m ago•2 comments

Why I left my tech job to work on chronic pain

https://sailhealth.substack.com/p/why-i-left-my-tech-job-to-work-on
228•glasscannon•7h ago•146 comments

Show HN: AirBending – hand gesture based macOS app MIDI controller

https://www.nanassound.com/products/software/airbending
7•bepitulaz•46m ago•2 comments

Compression Dictionary Transport

https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Compression_dictionary_transport
57•todsacerdoti•5h ago•10 comments

Kepler.gl

https://kepler.gl/
98•9woc•6h ago•13 comments

Show HN: I AI-coded a tower defense game and documented the whole process

https://github.com/maciej-trebacz/tower-of-time-game
162•M4v3R•7h ago•97 comments

Larry (cat)

https://en.wikipedia.org/wiki/Larry_(cat)
208•dcminter•10h ago•50 comments

Writing a Game Boy Emulator in OCaml

https://linoscope.github.io/writing-a-game-boy-emulator-in-ocaml/
197•ibobev•10h ago•31 comments

UpCodes (YC S17) is hiring a Head of Ops to automate construction compliance

https://up.codes/careers?utm_source=HN
1•Old_Thrashbarg•3h ago

ChatGPT creates phisher's paradise by serving the wrong URLs for major companies

https://www.theregister.com/2025/07/03/ai_phishing_websites/
52•josephcsible•1h ago•0 comments

Eight dormant Satoshi-era Bitcoin wallets reactivated after 14 yrs

https://twitter.com/WatcherGuru/status/1941167512491864554
94•amrrs•1h ago•59 comments

Bcachefs may be headed out of the kernel

https://lwn.net/Articles/1027289/
66•ksec•6h ago•69 comments

The Novelty of the Arpanet

https://twobithistory.org/2021/02/07/arpanet.html
9•xk3•3d ago•1 comments

Gremllm

https://github.com/awwaiid/gremllm
31•andreabergia•3h ago•5 comments

Sleeping beauty Bitcoin wallets wake up after 14 years to the tune of $2B

https://www.marketwatch.com/story/sleeping-beauty-bitcoin-wallets-wake-up-after-14-years-to-the-tune-of-2-billion-79f1f11f
27•aorloff•1h ago•10 comments

In a milestone for Manhattan, a pair of coyotes has made Central Park their home

https://www.smithsonianmag.com/science-nature/in-a-milestone-for-manhattan-a-pair-of-coyotes-has-made-central-park-their-home-180986892/
98•sohkamyung•3d ago•85 comments

Is an Intel N100 or N150 a better value than a Raspberry Pi?

https://www.jeffgeerling.com/blog/2025/intel-n100-better-value-raspberry-pi
216•transpute•8h ago•182 comments

Lens: Lenses, Folds and Traversals

https://hackage.haskell.org/package/lens
58•hyperbrainer•3d ago•22 comments

OpenDrop – electro-wetting technology to control small droplets of liquids

https://gaudishop.ch/index.php/product-category/opendrop/
7•_V_•3d ago•2 comments

Wind Knitting Factory

https://www.merelkarhof.nl/work/wind-knitting-factory
201•bschne•23h ago•55 comments

Can Large Language Models Play Text Games Well?

https://arxiv.org/abs/2304.02868
46•willvarfar•9h ago•33 comments

``Free as Air, Free as Water, Free as Knowledge'' (1992)

http://bactra.org/Sterling/Free_as_the_Air_Free_as_Water_Free_as_Knowledge.html
13•whoopdedo•3d ago•3 comments

Show HN: BunkerWeb – the open-source and cloud-native WAF

https://docs.bunkerweb.io/latest/
72•bnkty•8h ago•27 comments

Zig breaking change – initial Writergate

https://github.com/ziglang/zig/pull/24329
173•Retro_Dev•16h ago•184 comments

LLM-assisted writing in biomedical publications through excess vocabulary

https://www.science.org/doi/10.1126/sciadv.adt3813
90•em3rgent0rdr•2h ago•78 comments

Rust and WASM for Form Validation

https://sebastian.lauwe.rs/blog/rust-wasm-form-validation/
38•slau•8h ago•16 comments
Open in hackernews

Rust and WASM for Form Validation

https://sebastian.lauwe.rs/blog/rust-wasm-form-validation/
38•slau•8h ago

Comments

reactordev•4h ago
Oh dear god no. Form Validation is what JavaScript was meant for. Do we really need to download >1MB wasm module so you can do a regex?

WASM should be left to things like IPC/Canvas/WebGPU stuff, not things easily done with document.querySelector

No offense, but this is using a bomb to kill a fly.

I know it says this is just a demo but people will find this and do this thinking it’s normal.

milliams•4h ago
I just compiled the code provided in the article and the compiled WASM module is 22kb. Not saying that it makes it the right solution, but a 45× difference is not insignificant.
remram•4h ago
But the example code doesn't do much validation. If you did want to use a regex, you would have to compile and bundle the regex crate...
littlestymaar•3h ago
And what kind of form validation are you going to do with a regular expression? E-mail addresses like every other fool? (This is a the best to reject perfectly valid addresses because you baked unjustified assumptions in you regex)
porridgeraisin•3h ago
For what it's worth, the inbuilt HTML5 validation that implementw input type=email does have a regex in the spec.

https://html.spec.whatwg.org/#email-state-(type=email)

  /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/

But it is true that you can implement it with a FSM(which is what firefox does). Webkit uses a regex as well I think.
drowsspa•2h ago
Yeah, for all intents and purposes that's the spec for emails now
zoechi•2h ago
The bigger and more complex the application, the less is the effect of this.
remram•2h ago
Me? None. I'm not the one proposing the use of Rust and WASM for form validation.

What kind of validation are you going to do without a regular expression?

01HNNWZ0MV43FF•1m ago
With `regex-lite` I got under 100,000 bytes on the email regex in the sibling comment.

Not great, not terrible.

qoez•3h ago
Once you compile it to wasm and dead code analysis is applied and notices that only a fraction of whatever libraries you're using is necessary for form validation the code tends to be a lot less than what you'd have if you used non dead code analyzed pure JS.
graypegg•3h ago
Well, if we were implementing the equivalent in JS, we'd also use https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputEl... just like this. I think it would maybe be a few lines of javascript at most to do exactly what this is doing. 400ish bytes?

Of course there's always the argument that you'd add more javascript to "framework-ize" this a bit more, but the rust code is just targeting the DOM with IDs, so I don't think it's fair to compare it to any "framework-y" solution.

madduci•3h ago
Same with some JavaScript frameworks. I need to download 700kb+ JS files just to perform some fancy stuff.
jpdenford•2h ago
The author said the following

> I’m using form validation as a placeholder. It shows all the crucial aspects to use WASM instead of JS, like wiring up DOM events to Rust functions, and then reacting to those events.

jedisct1•3h ago
Learn JavaScript.
neoneye2•2h ago
I have done the same, using same rust code for frontend/backend.

The UI is here https://loda-lang.org/edit/?oeis=2487

It can run from commandline for mining.

Implementation https://github.com/loda-lang/loda-rust

zoechi•2h ago
Dioxus 0.7 comes with a set of components that cover even most of interaction with the JS side. There are great times ahead. What seems to be missing is modularizing and lazy loading of the WASM moduls to reduce initial download size (I saw some experiments). I immensely enjoy being able to use a sane language+tools for backend and frontend.