Better HN
topnewbestaskshowjobs
Log inSign up

typedef_struct

72 karma · joined Oct 22, 2014 (12y ago) · 74 submissions

https://umfer.us
Submissions

comment 3w ago · link · parent

SQL is the most perfect language

comment 1mo ago · link · parent

TLDR: "I didn't understand this proof and there is no one to explain it to me"

comment 5mo ago · link · parent

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 9mo ago · link · parent

You mean CO2 is not the same as CFCs?

comment 1y ago · link · parent

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 1y ago · link · parent

How about 'click-to-bill'. If I don't touch your service you can't charge me.

comment 1y ago · link · parent

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 1y ago · link · parent

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 1y ago · link · parent

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 2y ago · link · parent

This looks to use Web Sockets, not WebRTC, right? I don't see any RTCPeerConnection, and the peerServer variable is unused.

I ask because I've spent multiple days trying to get a viable non-local WebRTC connection going with no luck.

view-source:https://thelongestyard.link/q3a-demo/?server=Seveja

comment 2y ago · link · parent

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 2y ago · link · parent

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 2y ago · link · parent

Oh science. Peer review, the ultimate "LGTM", stands in for replication.

comment 2y ago · link · parent

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 2y ago · link · parent

So glad we poured 8.5 billion into this sinking ship. Thanks Joe. https://www.whitehouse.gov/briefing-room/statements-releases...

comment 2y ago · link · parent

I read this and learned nothing.

If your idea is to 'save' developers from becoming experts in devops best practices, I think you're going the wrong way.

comment 2y ago · link · parent

link to original source [pdf]: https://insideclimatenews.org/wp-content/uploads/2015/09/198...

18.

Ask HN: Am I being asked to discriminate on behalf of your company?

2 points · by typedef_struct · 2y ago · 1 comment

comment 2y ago · link · parent

I usually think actors, writers, athletes, doctors, lawyers.

comment 2y ago · link · parent

For comparison, MSSQL has been able to provide query results in XML for quite some time. I've found it useful in a couple of situations. See https://learn.microsoft.com/en-us/sql/relational-databases/x...

comment 3y ago · link · parent

If openssl and skia would switch [to cmake], we'd be on our way.

comment 3y ago · link · parent

Working as intended

comment 3y ago · link · parent

What is a mortgage banker? Is it a program?

comment 3y ago · link · parent

"The Federal government will not allow depositors at too-big-to-fail banks such as Bank of America, Citigroup, and JPMorgan to lose money."

Alternatively, the Federal government provides a free-of-charge insurance product to banks who then drop ship it to me for profit.

25.

Ask HN: What's the market value of FDIC insurance?

1 points · by typedef_struct · 3y ago · 2 comments

comment 3y ago · link · parent

War's easy to sell here. Say "these are the bad guys" and we'll say "oh thank God, I was starting to worry it was us."

comment 3y ago · link · parent

Most of them

comment 3y ago · link · parent

You're hired

comment 3y ago · link · parent

"Captain, they've escaped." "How?" "Drove into freshwater"
123