frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

C++26 Reflections adventures and compile-time UML

https://www.reachablecode.com/2025/07/31/c26-reflections-adventures-compile-time-uml/
69•ibobev•4h ago•14 comments

Helsinki records zero traffic deaths for full year

https://www.helsinkitimes.fi/finland/finland-news/domestic/27539-helsinki-records-zero-traffic-deaths-for-full-year.html
550•DaveZale•3d ago•298 comments

Telo MT1

https://www.telotrucks.com/
466•turtleyacht•12h ago•434 comments

28th International Obfuscated C Code Contest

https://www.ioccc.org/2024/index.html
5•mdl_principle•29m ago•0 comments

Writing a basic service for GNU Guix

https://tannerhoelzel.com/gnu-shepherd-simple-service.html
6•hermitsings•1h ago•0 comments

Micron rolls out 276-layer SSD trio for speed, scale, and stability

https://blocksandfiles.com/2025/07/30/micron-three-276-layer-ssds/
12•rbanffy•3d ago•0 comments

6 weeks of Claude Code

https://blog.puzzmo.com/posts/2025/07/30/six-weeks-of-claude-code/
318•mike1o1•2d ago•334 comments

HTML-in-Canvas

https://github.com/WICG/html-in-canvas
105•dannyobrien•6h ago•51 comments

Lina Khan points to Figma IPO as vindication of M&A scrutiny

https://techcrunch.com/2025/08/02/lina-khan-points-to-figma-ipo-as-vindication-for-ma-scrutiny/
129•bingden•7h ago•121 comments

Remote hosting for your telescope

https://www.sierra-remote.com/
91•gregorvand•3d ago•29 comments

Anandtech.com now redirects to its forums

https://forums.anandtech.com/
181•kmfrk•15h ago•37 comments

The Crisis of Professional Skepticism

https://mitchhorowitz.substack.com/p/the-crisis-of-professional-skepticism
24•mathgenius•6h ago•9 comments

Ongoing Lean formalisation of the proof of Fermat's Last Theorem

https://github.com/ImperialCollegeLondon/FLT
55•anonyonoor•2d ago•26 comments

Super-resolution of Sentinel-2 images (10M –> 5M)

https://github.com/Topping1/L1BSR-GUI
14•mixtape2025-1•3d ago•1 comments

We may not like what we become if A.I. solves loneliness

https://www.newyorker.com/magazine/2025/07/21/ai-is-about-to-solve-loneliness-thats-a-problem
375•defo10•18h ago•759 comments

PixiEditor 2.0 – A FOSS universal 2D graphics editor

https://pixieditor.net/blog/2025/07/30/20-release/
185•ksymph•2d ago•20 comments

Online Collection of Keygen Music

https://keygenmusic.tk
232•mifydev•4d ago•58 comments

LangExtract: Python library for extracting structured data from language models

https://github.com/google/langextract
33•simonpure•3d ago•3 comments

Mezzano, an operating system written in Common Lisp

https://github.com/froggey/Mezzano
60•dargscisyhp•3d ago•2 comments

The Art of Multiprocessor Programming 2nd Edition Book Club

https://eatonphil.com/2025-art-of-multiprocessor-programming.html
240•eatonphil•15h ago•35 comments

At a Loss for Words: A flawed idea is teaching kids to be poor readers (2019)

https://www.apmreports.org/episode/2019/08/22/whats-wrong-how-schools-teach-reading
118•Akronymus•16h ago•108 comments

Browser extension and local backend that automatically archives YouTube videos

https://github.com/andrewarrow/starchive
147•fcpguru•13h ago•66 comments

Parsing without ASTs and Optimizing with Sea of Nodes [video]

https://www.youtube.com/watch?v=NxiKlnUtyio
7•surprisetalk•2h ago•0 comments

A.I. researchers are negotiating $250M pay packages

https://www.nytimes.com/2025/07/31/technology/ai-researchers-nba-stars.html
205•jrwan•17h ago•358 comments

Neural networks that learn non-linearity without activation functions [pdf]

https://www.tahabouhsine.com/nmn/assets/deep_learning_two_point_o_point_one.pdf
7•mlnomadpy•3d ago•4 comments

The /o in Ruby regex stands for "oh the humanity "

https://jpcamara.com/2025/08/02/the-o-in-ruby-regex.html
144•todsacerdoti•14h ago•34 comments

Compressing Icelandic name declension patterns into a 3.27 kB trie

https://alexharri.com/blog/icelandic-name-declension-trie
203•alexharri•17h ago•75 comments

The Big Oops in type systems: This problem extends to FP as well

https://danieltan.weblog.lol/2025/07/the-big-oops-in-type-systems-this-problem-extends-to-fp-as-well
85•ksymph•2d ago•53 comments

Great Question (YC W21) Is Hiring a VP of Engineering (Remote)

https://www.ycombinator.com/companies/great-question/jobs/ONBQUqe-vp-of-engineering
1•nedwin•12h ago

Show HN: NaturalCron – Human-Readable Scheduling for .NET (With Fluent Builder)

https://github.com/hugoj0s3/NaturalCron
34•hugoj0s3•15h ago•7 comments
Open in hackernews

HTML-in-Canvas

https://github.com/WICG/html-in-canvas
105•dannyobrien•6h ago

Comments

tantalor•6h ago
https://html2canvas.hertzen.com/
Waterluvian•5h ago
45kb gzipped is pretty beefy but incredibly small when you consider just what it takes to make this work today. If I understand correctly, it’s basically a DOM and CSS renderer.
kizer•5h ago
There's a bunch of CSS, etc. not supported by that. It would be great to have access to a native API to get bitmaps of the DOM.
masswerk•5h ago
Well, a fingerprinting dream…

Meaning, no way, just for the security aspect.

ttoinou•6h ago
Soon we’re gonna need Canvas rendering inside of HTML-in-Canvas
bastawhiz•5h ago
It should already work if the nested canvas uses the same approach. It's not cyclic, though. To make cyclic canvases work, you need to manually draw the parent canvas to a nested canvas.
hyperhello•6h ago
I see reliable rich text editing as more of a priority.
SeanAnderson•5h ago
I read the title and said "shut the fuck up, don't do that." but then I read the rationale and it's fair. It's true there is no layout engine inside canvas, and that is a pain, but I'm not sure it's such a pain as to invite this recursive hell.
teaearlgraycold•5h ago
You could disallow recursion.
nine_k•5h ago
One of the more senior engineers I worked with told me: "Every real-life data structure I encountered was tree-like".

It would be easiest to just ask the browser to render a fragment of HTML onto a canvas, or onto some invisible bitmap, like you can with most other UI toolkits.

monster_truck•5h ago
They would never do this because of fingerprinting, which is already the cause of most of the reasons we cannot 'just' do a lot of things, unfortunately.

E: And the infamous other half: malware. A bit over a decade ago malware devs started using canvas to do things like hide fragments inside of bitmap data in seemingly harmless ads and then a second script would extract and assemble it to evade detection.

mook•5h ago
Yeah, that's already available in Firefox for chrome/extensions, but not allowed for the web due to fingerprinting and other security risks. For example, rendering an iframe of your bank account…

https://searchfox.org/mozilla-central/rev/f691af5143ebd97034...

bongodongobob•4h ago
> Every real-life data structure I encountered was tree-like

I don't understand what the takeaway is here. Is that surprising? Is it not? What does "real-life" mean?

do_not_redeem•4h ago
> Every real-life data structure I encountered was tree-like

What does this even mean? Is a hash map "tree-like" somehow? Or is a hash map just a toy data structure with no real-life use cases?

UltraSane•3h ago
Nested hash maps are trees
mmastrac•5h ago
https://github.com/WICG/html-in-canvas/blob/main/security-pr...

> TODO: Expand on fingerprinting risks

codelikeawolf•5h ago
I immediately got "Pimp My Ride" vibes. Yo dawg, I heard you like HTML so I put HTML inside the canvas inside the HTML.
BobbyTables2•5h ago
I suppose all we need to do now is to compile a browser into WASM and run that browser inside a canvas element of the main browser…
sangeeth96•4h ago
How about an entire OS with IE? https://copy.sh/v86/?profile=windows2000
socalgal2•4h ago
https://www.chromium.org/blink/blink-in-js/
deadbabe•4h ago
true horror is finding every element of the HTML page your on has been rendered in a Canvas
turnsout•4h ago
Sad to say, but the first thing I thought was "oh good, a new fingerprinting target."
charcircuit•4h ago
This sounds really useful for being able to use standard web technology with webxr.
socalgal2•4h ago
I've never understood why they couldn't have just used the existing 3D CSS for WebXR. All the data is there, all they need to do is render the DOM from 2 POVs, one for each eye. They could even have had some standard to let it auto composite with WebGL.
ha1zum•4h ago
This could have a great utility, but for me HTML in canvas in HTML feels so cursed.

To make it make sense in my opinion canvas should already be a first class format for web browsers, so it doesn't have to be inside a HTML.

Then we would have a choice of HTML-first page with canvas elements in it, or a canvas-first page with HTML elements in it.

But what do I know.

Liron•4h ago
What if you want an HTML-first page with a canvas in it, but then you realize you want some layout/styling for the text within the canvas? Seems unnecessary to propagate that situation up to the type of top-level page.
thrance•3h ago
And then what if you realize you need a canvas-in-the-html-in-the-canvas? It's endless. Canvas-first makes sense, it's basically how it works everywhere outside of the web. Start with the smallest abstractions and build on them (html on canvas) rather than leave escape hatches to your big abstractions because they fail to cover every use cases (canvas in html).
sitkack•3h ago
If you support the DOM and hitscan, then it doesn't matter. You can red pill Ouroboros yourself all day and not care. Every element a canvas, every raindrop an ocean.
socalgal2•4h ago
canvas first sites suck. They can't use any system services as it would all be a privacy issue. They can't use the system dictionary for correction since to do so they'd need the contents of the dictionary or at least a way to query user customized corrections. Similarly they can't offer the system level accessibility but end up having to roll their own in which case, every app that uses canvas has a completely different UI.
nemomarx•3h ago
That's basically how flash sites worked, and those were pretty common?
desiderantes•3h ago
They said that those kind of sites sucked. Common or not.
jonplackett•2h ago
I think you invented Flash, though saying that embedding flash in harm as also a pain!
bapak•1h ago
I don't see a problem with what you're saying at all. For reference, you can already have HTML in SVG in HTML in SVG.

If you have a canvas-first page, where do you store the title? Right, in <title>, so

    <!doctype html>
    <title>My canvas site</title>
    <canvas style="fill all">

In reality they should really just allow content in the canvas element and call it a day:

    <canvas type="html">
        <h1>Canvassing</h1>
    </canvas>
chii•25m ago
but then what's the point of the canvas here? Unless if it was possible to mix and match canvas painting operations seamlessly with the declared elements...
tinalovely101•4h ago
It seems to be impossible with html version.
ivanjermakov•4h ago
RIP accessibility
progers7•2h ago
Accessibility is a key reason for this proposal. Today, canvas accessibility is quite limited. This proposal enables the browser to know how accessible dom elements map to canvas pixels.
c-smile•4h ago
From the very beginning in Sciter an Image can be constructed in two ways at runtime ( other than just getting loaded image reference):

1. By painting on it using Canvas/Graphics API:

    new Graphics.Image(width, height, painter(graphics) [,initColor]);  
Where _painter_ is a function used for paining on the image surface using Canvas/Graphics reference.

2. By making snapshot of the existing DOM element:

    new Graphics.Image(width, height, element [,initColor])
Such images can be used in DOM, rendered by other Canvas/Graphics as also in WebGL as textures.

See: https://docs.sciter.com/docs/Graphics/Image#constructor

donatj•4h ago
I feel like this is bound to get kneecapped for the same reason as other canvas features, fingerprinting.
cheeaun•4h ago
Kinda reminds me of Flipboard https://engineering.flipboard.com/2015/02/mobile-web (2015)
talkingtab•4h ago
There is a real problem using canvas to replace HTML.

Not all but most HTML. I have not found a good solution for the issue of doing something like MDX in canvas. I have tried SDF, looked at 2D canvas Text, Troika, MSDF. You can get text, it is just that laying it out is very difficult. React three drei has the ability to put HTML into the threejs ecosystem, but there are issues about CSS and text that make that impractical.

For me the use case is very simple. I would like to take an MDX file and show it in a mesh. Laid out. Maybe I am missing something because I am new to the whole threejs thing, but I really tried.

A good article about text https://css-tricks.com/techniques-for-rendering-text-with-we...

And an example from the above article: https://codesandbox.io/p/sandbox/css-tricks-msdf-text-fks8w

This shows it can be done, I gave up trying to reproduce it in React-three-fiber.

Why? Personally, I think the use of 3D graphics produces an interface for users that is an order or magnitude better for users. The real question (and an interesting one to consider) is why are we still building HTML first websites?

nikeee•3h ago
Is that being made to make Flutter not being like Flash on the web?
sampton•3h ago
Servo + wasm.
reactordev•3h ago
I support this, as odd as it is. There’s times when you’re needing something drawn but can easily reuse an html element from elsewhere. Previously you’d have to render that to a bitmap offscreen and then copy that to a full screen quad or draw it on the canvas. Up until recently, even if you tried to z-index elements with position absolute it would be visually overwritten by the canvas (I think this is mostly fixed though).

I don’t know if this is the best solution but it’s better than previous hacks. IF you need to go that route. Basically html2canvas.

tombh•3h ago
Where does SVG's `foreignObject` fit into this? It seems that SVG supports all of thelproposal already? As is evidenced by projects like https://github.com/zumerlab/snapdom that can take "screenshots" of the webpage by copying the DOM with inlined styles into a `foreignObject` tag in an SVG. Then of course that SVG can be rendered to a canvas.
progers7•2h ago
This proposal is a lot like an easier way to draw foreign object into canvas. This proposal supports new features too, such as updating the canvas when the content changes, and interactivity.
russellbeattie•3h ago
How about a flag on the body element like:

    <body canvas="true"></body> 
This would make the entire visible page into a canvas-like drawing surface which also renders DOM elements as per usual. At some level there's a process which rasterizes the DOM - opening drawing APIs into that might be a better solution.

It's sort of the same thing as HTML in canvas conceptually, but architecturally it makes DOM rendering and canvas rendering overlapping equals with awareness going both ways. E.g., a line drawn on the page will cause the DOM elements to reflow unless told to ignore it.

pyrolistical•1h ago
Screen readers all cried in unison
erichocean•3h ago
My Blossom library has a layout engine for Canvas [0]

[0] https://github.com/erichocean/blossom

jonplackett•2h ago
Can it just be CSS on canvas - so you can do styling and layout nicely but not weirdness of an html sandwich?
tones411•2h ago
Next someone will want to render a canvas in the html in the canvas.