frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Self-healing electronic material uses graphene and polymer blend to mimic skin

https://techxplore.com/news/2025-06-electronic-material-graphene-polymer-blend.html
1•PaulHoule•18s ago•0 comments

A supposedly worthwhile contract I'll never do again

https://ahelwer.ca/post/2025-07-04-tla-contracts/
2•Bogdanp•51s ago•0 comments

Hiring US-based software devs just got 20% cheaper (due to Section 174A changes)

https://gregkedzierski.com/essays/hiring-us-developer-got-20-percent-cheaper-section-174a/
1•gkedzierski•1m ago•0 comments

Who to be on next UK banknotes?

https://www.theguardian.com/money/2025/jul/04/bank-of-england-new-banknotes-guardian-readers-ideas
1•zabzonk•6m ago•0 comments

First human genome from ancient Egypt sequenced from 4,800-year-old teeth

https://www.nature.com/articles/d41586-025-02102-y
2•rntn•7m ago•0 comments

Charles Babbage and deciphering codes (1864)

https://mathshistory.st-andrews.ac.uk/Extras/Babbage_deciphering/
1•pncnmnp•8m ago•0 comments

Show HN: ClassroomFeed – Weekly AI Summaries of Your Google Classroom

https://www.classroomfeed.com/
1•xvpdev•11m ago•0 comments

Gel: Replacing SQL and Improving on the Relational Database Model [video]

https://www.youtube.com/watch?v=RzLo-pdUJ7I
1•sbdchd•12m ago•0 comments

Cellist turned away from Air Canada flight after instrument wasn't allowed

https://nationalpost.com/news/canada/cellist-turned-away-from-air-canada-flight-after-his-instrument-wasnt-allowed-to-board
1•andy99•13m ago•0 comments

GPT-2.gif

https://storage.googleapis.com/miguelsolano_com_public/images/gpt-2.gif
1•gone35•13m ago•2 comments

Systematic profiling reveals betaine as an exercise mimetic for geroprotection

https://www.cell.com/cell/abstract/S0092-8674(25)00635-X
1•Anon84•14m ago•0 comments

How Much of Kojima's Games Are Cutscenes? We Did the Maths

https://www.ign.com/articles/how-much-of-kojimas-games-are-actually-cutscenes-we-did-the-maths
1•amichail•17m ago•0 comments

600% memory footprint reduction on Vector Embeddings Quantization

https://github.com/JaneaSystems/jecq
1•betto•19m ago•0 comments

Can an email go 500 miles in 2025?

https://flak.tedunangst.com/post/can-an-email-go-500-miles-in-2025
2•zdw•23m ago•0 comments

Man of Glass: Boccaccio: A Biography

https://literaryreview.co.uk/man-of-glass
1•Thevet•23m ago•0 comments

Writing a Window Manager completely in Go

https://github.com/BobdaProgrammer/doWM
1•BobdaProgrammer•24m ago•1 comments

Bug Hunt: Zero-Knowledge, Full-Paranoia, and the AI That Stares Back

https://blog.zksecurity.xyz/posts/snarksentinel/
1•oddhash•25m ago•0 comments

Some oil patch execs say "drill baby drill" isn't happening

https://www.axios.com/2025/07/03/dallas-fed-oil-drilling-decline
1•littlexsparkee•26m ago•0 comments

1945 TV Console Showed Two Programs at Once

https://spectrum.ieee.org/dumont-duoscopic-tv-set
2•Brajeshwar•27m ago•0 comments

The foolproof way to win any lottery, according to maths

https://www.newscientist.com/article/2486621-the-foolproof-way-to-win-any-lottery-according-to-maths/
1•Brajeshwar•27m ago•0 comments

Show HN: ZenCall – Make phone calls directly from the browser, no app needed

https://www.zencall.so
1•BananaKick•27m ago•0 comments

Japan requires name change after marriage – big effects on female scientists

https://www.nature.com/articles/d41586-025-02081-0
3•Brajeshwar•27m ago•0 comments

Gremllm

https://github.com/awwaiid/gremllm
2•andreabergia•29m ago•2 comments

The Politics of Rural Hospital Closures

https://link.springer.com/article/10.1007/s11109-024-10000-8
2•tzs•30m ago•0 comments

One-Character Commit Saves 15,000 Servers at Meta

2•8611m•30m ago•0 comments

The environmental impact of AI is only half the story

https://theearthly.substack.com/p/the-environmental-impact-of-ai-is
1•pier25•33m ago•0 comments

ChatGPT's Mental Health Costs Are Adding Up

https://www.bloomberg.com/opinion/articles/2025-07-04/chatgpt-s-mental-health-costs-are-adding-up
1•petethomas•33m ago•0 comments

Run parallel Claude Code sessions with Git worktrees

https://docs.anthropic.com/en/docs/claude-code/common-workflows
2•CharlesW•34m ago•0 comments

Mott Problem

https://en.wikipedia.org/wiki/Mott_problem
2•niklasbuschmann•37m ago•0 comments

Guides for learning game development with Bevy

https://taintedcoders.com/
1•GenericCanadian•40m ago•0 comments
Open in hackernews

Rust and WASM for Form Validation

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

Comments

reactordev•1h 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•59m 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•55m 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•1m 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)
qoez•38m 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•33m 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•22m ago
Same with some JavaScript frameworks. I need to download 700kb+ JS files just to perform some fancy stuff.
jedisct1•39m ago
Learn JavaScript.