News for hackers. Stuff that matters.

typedef_struct

SQL is the most perfect language
Re:"I'm on a War Footing": Terry Tao and the Crisis in Math on Sunday October 18, 2026 @05:45PM (#50145802)
TLDR: "I didn't understand this proof and there is no one to explain it to me"
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.
Re:US repeals EPA endangerment finding for greenhouse gases on Friday February 13, 2026 @07:29AM (#47001950)
You mean CO2 is not the same as CFCs?
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.
How about 'click-to-bill'. If I don't touch your service you can't charge me.
Re:Plain Vanilla Web on Sunday May 11, 2025 @09:43PM (#43958887)
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)

Re:Seeking an Answer: Why can't HTML alone do includes? on Saturday May 03, 2025 @02:41PM (#43881128)
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()
        }
    })
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?
Re:Direct Sockets API in Chrome 131 on Saturday November 02, 2024 @10:26AM (#42026583)
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

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.
Re:Pipe Syntax in SQL on Saturday August 24, 2024 @07:07PM (#41342598)
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.
Oh science. Peer review, the ultimate "LGTM", stands in for replication.
Re:Photino: A Lighter Electron on Friday August 09, 2024 @05:42PM (#41205596)
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
So glad we poured 8.5 billion into this sinking ship. Thanks Joe. https://www.whitehouse.gov/briefing-room/statements-releases...
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.

Is there anything less useful that particle physics?

Its all fluids probably.

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

Voluntary Disclosures on US job applications are used to audit classes of hires. If 90% of your applicants are women, you'd expect 90% of your hires to be.When I select a classification, that race/ethnic/gender should be weighted more heavily in hiring decisions. Thereby I am expressing a preference, which the company then acts on.

( Read More... | 1 comment | 2 points | on HN )
Re:Google Cuts Jobs in Engineering and Other Divisions on Thursday January 11, 2024 @05:56AM (#38950546)
I usually think actors, writers, athletes, doctors, lawyers.
Re:PostgREST: Providing HTML Content Using Htmx on Monday December 18, 2023 @11:32PM (#38691834)
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...
If openssl and skia would switch [to cmake], we'd be on our way.
Re:Private Equity Is Devouring the U.S. Economy on Monday October 30, 2023 @12:51PM (#38072037)
Working as intended
What is a mortgage banker? Is it a program?
Re:Ask HN: What's the market value of FDIC insurance? on Monday September 11, 2023 @10:20AM (#37467687)
"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.

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

"handout"If you need to insure more money than the FDIC (Federal Deposit Insurance Corporation) allows banks to cover, you'll typically need to explore alternative options beyond traditional bank deposits. The FDIC insures bank deposits up to a certain limit (which was $250,000 per depositor per insured bank as of my last knowledge update in September 2021), so if you have more significant...

( Read More... | 2 comments | on HN )
Re:How to Sell a War to the American People [video] on Thursday September 07, 2023 @03:03PM (#37423970)
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."
Re:How Many People Have Ever Lived on Earth? on Thursday July 06, 2023 @10:15AM (#36616139)
Most of them
Re:A header-only C implementation of C++ <algorithm> on Tuesday July 04, 2023 @10:32AM (#36587250)
You're hired
"Captain, they've escaped." "How?" "Drove into freshwater"

Older »