typedef_struct

Joined 12 years ago

Karma
72
Submissions
74
Member since
Oct 22
https://umfer.us
View on Hacker News

Recent submissions

Comment · 5 days ago
SQL is the most perfect language
Comment · 17 days ago
TLDR: "I didn't understand this proof and there is no one to explain it to me"
Comment · 5 months ago
In 1997, the Justice Department decided that Operating Systems and Web Browsers must remain separate. Since then, the Web Browser has been becoming an Operating System.
Comment · 8 months ago
You mean CO2 is not the same as CFCs?
Comment · 1 year ago
Confirms Rust is about where I thought it was. In a strange niche where you don’t need 100% the performance of C, but the 90% you get from a managed language isn’t enough. And you can’t run on the GPU.
Comment · 1 year ago
How about 'click-to-bill'. If I don't touch your service you can't charge me.
Comment · 1 year ago
Some good patterns here. An Event with a callback (what you're calling [context protocol](https://github.com/webcomponents-cg/community-protocols/blob...)) I think will prove useful.

My main gripe with web components is that while they expose the first half of the tree traversal (from the outside in, via connectedCallback), they don't provide access to the second half, after child elements have been created. (akin to Initialize and Load events from ye olde .NET)

Comment · 1 year ago
You could start with something like this:

    customElements.define('html-import', class extends HTMLElement {
        connectedCallback() {
            const href = this.getAttribute('href')
            const fetch = new XMLHttpRequest()
            fetch.responseType = 'document'
            fetch.addEventListener('readystatechange', (function onfetch(e) {
                if (fetch.readyState !== XMLHttpRequest.DONE) return
                const document = fetch.response.querySelector('body') ?? fetch.response
                this.replaceWith(document)
            }).bind(this))
            fetch.open('GET', href)
            fetch.send()
        }
    })
Comment · 1 year ago
Amazon does not have this information, nor would a competitive seller wish to provider it. Who my suppliers are and what they charge? So what, Amazon can better decide whether to enter my market?
Comment · 2 years ago
Comment · 2 years ago
My test is to take a sized chunk of memory containing a TrueType/OpenType font and output a map of glyphs to curves. Bot is nowhere close.
Comment · 2 years ago
You can tell the authors realized this was a bad idea when they had to add the 'OVER' keyword, which isn't documented and hardly mentioned in the paper.
Comment · 2 years ago
Oh science. Peer review, the ultimate "LGTM", stands in for replication.
Comment · 2 years ago
You can't build a "for-real native desktop app" without building half of a browser anyway. Can't use a font without FreeType or HarfBuzz, can't use a secure socket without OpenSSL. Can't afford to redraw the entire screen each frame, so you need a DOM of some kind to cache rendered boxes. The OS doesn't do anything it didn't do 20 years ago. Stack's a mess rn. imo
Comment · 2 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton