MurphyA/hacker-news huggingface dataset:
by throwanem | 2025-05-11 20:11:30+00:00
If I want in the general case to append a child node to a parent (as here with the h1 as parent and the stringified interpolated value as child), I will in almost every case call parent.appendChild(child), where parent and child both implement Node, which is the parent class of Element. The result will correspond closely to the element tree which would be constructed by assigning a string like your example to some other element's innerHTML. (You are essentially using the browser DOM implementation as a templating engine. As sugar over a lot of createElement calls and piecewise tree construction, this isn't a terrible strategy! The JSX with which you're familiar is a more elaborate and more typesafe solution for essentially the same problem.)

Similarly, these references would be from the JS perspective a POJO with lots of seriously heavy implicit "render magic," so you can use them, as with any first-class Javascript value, as function arguments parallel to but a superset of what React does with its props. See the MDN documentation on Node.appendChild (and Node, Element, HTMLElement, etc) for more: https://developer.mozilla.org/en-US/docs/Web/API/Node

If I want to represent the state of a worker thread in the UI, a problem I first recall solving over a weekend in 2016, the way I do it will end up closely resembling the "MVC pattern," with the Worker instance as "model," the DOM element structure as "view," and a "controller" that takes a Worker and returns an element tree. Even if I'm using React to build the UI - which I have also been mostly doing for about as long - I am still going to handle this translation with a library function, even if my component actually does accept a Worker as a prop, which it actually very likely will since that will enable me to easily dispatch effects and update the UI on changes of worker state. I might define that "business logic" function alongside the component which uses it, in the same module. But React or vanilla, I won't put that logic in the UI rendering code, unless it is trivial property mapping and no more (unlikely in this case, since any interesting worker thread state updates will arrive via message events requiring the parent to keep track in some way.)

Does that help clear up what I'm getting at?
by mystraline | 2025-05-11 20:11:38+00:00
Go hack and read Marx and Engels, and also study Ned Ludd and Luddism/luddites.

There is NOTHING special about current technology in application of capitalism. Its always been exploitive, and grinds people into used and nearly dead objects.

The answer isn't reforming capitalism, either. FDR tried, and we're back to the Black Friday set of events... But in this case, we're even worse off with alienation of basically every country as some sort of oneupmanship.
by parineum | 2025-05-11 20:12:38+00:00
> standard climate denial logic

This stinks of circular reasoning. It's bad logic because climate deniers use it and climate deniers are wrong because they only ise bad logic.

The reason the other measurements you mentioned can't be included are often that the measurements are or equal or greater distance between eachother than this entire set. Including this data in one of those sets would demonstrate that there are plenty of times in history where the sea level changed the amount it has in the last 50 years.

If we know so much about why it's rising, what's with all the measurements? We don't "know" nearly as much as you're implying. The reason we don't go around measuring healthy humans body temperature is because we know what it is. The entire purpose of the measurements is to increase understanding.

Current forecasts of Y temperature rise would lead to X sea level rise rely in a static model of all other variables. It should be obvious that the climate is anything but static, considering the entire argument is about climate change.

It's perfectly reasonable to criticize this kind of extrapolatory thinking without denying the fundamentals of climate change.
by ZoneZealot | 2025-05-11 20:12:39+00:00
With public CAs, you can only apply for a wildcard at a single label. You can't have nested wildcards.

RFC6125 limits wildcards to a left-most label (6.4.3. paragraph 2): https://www.rfc-editor.org/rfc/rfc6125.html#section-6.4.3

I don't know of any CA that allows for wildcard characters within the label, other than when the whole label is a wildcard, but it is possible under that RFC.

The CA/Browser Forum's baseline requirements dictates how any publicly trusted CA should operate, and it defines a wildcard certificate in section 1.6.1 (page 26) here https://cabforum.org/working-groups/server/baseline-requirem...

> Wildcard Certificate: A Certificate containing at least one Wildcard Domain Name in the Subject Alternative Names in the Certificate.

> Wildcard Domain Name: A string starting with “*.” (U+002A ASTERISK, U+002E FULL STOP) immediately followed by a Fully‐Qualified Domain Name.

Now of course with your own internal CA, you have complete free reign to issue certificates - as long as they comply with the technical requirements of your software (i.e. webserver and client).

Also note that a cert issued as '..example.com.' would only match 'hi.com.example.com.', not an additional three labels.
by damnitbuilds | 2025-05-11 20:12:39+00:00
At [1] I see:

"So I think that the up and down arrows should not express agreement, but insightfullness or truth. Not opinion."

Which is exactly opposite to the statement you cite it in.

I am making fact-based arguments. I see no fact-based counter-arguments, mostly nonsense and/or abuse that break [2]

One can understand people's dislike of Trump. I share it. But that should surely not prevent us from being able to discuss the motivation for his actions, based on cited facts.

But if a mod thinks this place, like Reddit, is just not the place to quote facts to people who do not want to read them, discuss them, or even allow them to be shown, and I do not anyway know how a mod would stop them, beyond a lot of tracking down downvoters, I guess it is also beyond redemption. Tant pis.
by phire | 2025-05-11 20:12:46+00:00
> having to emulate that through heuristically guessing at instruction boundaries and backtrack when you make a mistake

Intel/AMD don't use heuristics-based decoding, or backtracking. They can decode 4 instructions in a single cycle. They implement this by starting a pre-decode at every single byte offset (within 16 bytes) and then resolving it to actual instructions at the end of the cycle.

The actual decode is then done the following cycle, but the pre-decoder has already moved upto 4 instructions forwards, so the whole pipelined decoder can maintain 4 instructions per cycle on some code.

This pre-decode approach does have limits. Due to propagation delays, 4 instructions over 16 bytes is probably the realistic limit that you can push it (while Apple can easily do 8 instructions over 32 bytes). Intel's Golden Cove did finally push it to 6 instructions over 32 bytes, but I'm not sure that's worth it.

Intel's Skymont shows the way forwards. It only uses 3-wide decoders, but it has three of them running in parallel, leapfrogging over each other. They use the branch predictor to start each decoder running at a future instruction boundaries (inserting dummy branches to break up large branchless blocks). Skymont can maintain 9 instructions per cycle, which is more than the 8-wide that Apple currently is using. And unlike the previous "parallel pre-decode in a single cycle", this approach is scalable. Nothing stopping Intel adding a fourth decoder for 12 instructions per cycle, or a fifth decoder for 15. AMD is showing signs of going down the same path, zen5 has two 4-wide decoders though they can't work on the same thread, yet.
by Dwedit | 2025-05-11 20:12:47+00:00
Example of setting DPI awareness: https://github.com/Dwedit/GameStretcher/blob/master/Stretche...

This code dynamically checks for and calls one of the following: user32:SetProcessDpiAwarenessContext, shcore:SetProcessDpiAwareness, then user32:SetProcessDPIAware. If the Windows version is extremely old and doesn't implement any of those (Windows XP or earlier), it won't call anything.
by MrJohz | 2025-05-11 20:12:48+00:00
In React, say, I might write

<MyComponent worker={worker} />

and expect the worker instance to be passed as an object to `MyComponent` as a prop. But with webcomponents, I can't do something like that.

this.innerHTML = `<my-component worker="${worker}">`

will just stringify the worker and pass that string to the `my-component`. To get the worker instance to be passed correctly, I'd need to do something like

this.innerHTML = `<my-component>` this.firstChild.worker = worker;
by em-bee | 2025-05-11 20:14:29+00:00
the point is to group articles by category. a single visit to a supermarket may contain important and vanity items mixed together. i want to break that out and then categorize accordingly. i do want to know how much i am spending on candy or sugar drinks, or, if you are so inclined, cigarettes or alcohol. toys, gifts, school supplies are all different categories that are worth tracking. if you go shopping at places like target or walmart you'll get all of that mixed up on a single receipt.

fruits and vegetables don't need their own category. they could be grouped into food but candy bars or soda are not food.

i don't want the tool to suggest anything, but i want the numbers so i can draw my own conclusions.

entering data by article is easier than categorizing on the spot. i could just scan the receipt and let the tool work out the categories (once i assigned a category to an item, the tool can do it for any repeat appearance)
by lolinder | 2025-05-11 20:14:44+00:00
I think that this comment is a great example of the total disconnect these conversations always have.

On the one hand we have lots of people on here who are building full-featured web apps, not websites, on teams of 30+. These people look at frameworkless options and immediately have a dozen different questions about how your frameworkless design handles a dozen different features that their use case absolutely requires, and the answer is that it doesn't handle those features because it doesn't require them because it's a blog.

Meanwhile there are also a lot of people on here who have never worked on a large-scale web app and wonder why frameworks even exist when it's so obviously easy to build a blog without them.

It would be nice if we could just agree that the web hosts an enormous spectrum of different kinds of software and make it clear what kind of software we're talking about when we were opining about frameworks—whether for or against.

In this case: this is a WordPress blog.
by cycomanic | 2025-05-11 20:15:30+00:00
The difference between compensation in different countries is fascinating. In OZ/NZ tradespeople are the highest earners. For Australia I suspect this is explained at least partially by mining (I know people who earned $600+ per hour 10-15 years ago, and that included free flights in and out, free accommodation etc), and NZ needed to follow because of the ease of moving to Oz. Mining doesn't really explain why plumbers and carpenters earn like crazy as well though.

The quality of work though is extremely poor if I compare what one would expect in e.g. Germany. I guess that's the advantage of the German apprenticeship system where tradespeople get proper training and not take a couple month course at a tafe and then start their own business.
by stahtops | 2025-05-11 20:16:17+00:00
Not bad faith. In 2006, the AppStore didn’t exist. In 2008, it did. Many people decided that they could sell an app and make a profit.

A decade and a half later, the overhead is the same but somehow people think they’re being treated unfairly.

You can make the app, you can charge what you want, you can make the app for any and every platform. Where is the harm? Where is the anti-competitiveness?
by n_ary | 2025-05-11 20:16:31+00:00
I am curious, if everything is going to oAI, how are Anthropic, xAI and other unknown ones being funded? That being said, I suddenly realized that, I know only of things that are heavily on the media. Other than these few, I know Meta's LLama, Google's Gemini, DeepSeek, Mistral and Qwen.

Aside: I shed a few tears reading the article, since the death of n-gate.com, nothing like that existed until today I found pivot-to-ai.com.
by p0w3n3d | 2025-05-11 20:16:46+00:00
Great respect! I've tried many times, without final result. I'll try to use this for learning purposes!

Btw. I like how Inno Setup used some very old Delphi 2 compiler to create exe so small it would fit without breaking the zip compliancy. I read it somewhere 10+ years ago, so not sure if this is still the case, but still. And the initial dialog was done in pure winapi.h (of course it was winapi.pas which made everything more difficult for me to learn from)
by sorcerer-mar | 2025-05-11 20:17:13+00:00
Are you referring to the case that went all the way to SCOTUS who ruled that the government is in fact allowed to report things to social media companies (1st Amendment protected speech) and that social media companies, if they want to, are allowed to act on those reports (also 1st Amendment protected speech)?

I think the main missing element was that the social media companies didn't even claim to be coerced by the government whatsoever and have consistently stated they moderated content as they saw fit on their own platforms (which, again, is their 1st Amendment right)
by ta1243 | 2025-05-11 20:17:39+00:00
My car randomly braked today because it thought a car on a side road was pulling out. Not just sound the alarm but actually apply the brakes. Fortunately I didn't have a tailgater behind me.

I disable the "land assist" every time (which often tries to steer me into wildlife or other cars and was clearly not built for use on a single track country roads with hedges and random verges), but this was the first time in 3 years that the "front assist" caused problems.

If that's "high quality", I dread to think what low quality would be.
by Hobadee | 2025-05-11 20:18:06+00:00
I've long wondered why no car manufacturer has gone for an open source model. Certain things should absolutely be locked down (for example, the airbags and other critical safety features) but there is absolutely no reason the HVAC and Infotainment system need to be closed source. Open it up and let hackers go crazy, then just "borrow" the best options out there for next year's model and everyone wins!
by tejohnso | 2025-05-11 20:18:32+00:00
> wages - however high - are not a path to wealth and security.

High wages provide the discretionary income required to invest though. So I'd say, they're not the goal, but if the word path is to be used, I'd say they are part of the path. As far as owning things...investments specifically (not two motorcycles and a hummer), the usual advice is a well balanced portfolio. Could be equities, maybe some real estate, maybe even some crypto, all at different ratios depending on your risk profile.

My concern is that we are in a unique time period where all of that is coming to an end and there will be no wealth appreciation even for disciplined investors.
by squeakywhite | 2025-05-11 20:18:46+00:00
Interesting idea, however I think more focus needs to be put on ensuring that the photos still represent reality (as much an AI edited photo can). E.g. in the first example under Stage Empty Rooms, the type of window changes between the original and edited photo. I think focusing on more subtle edits to improve the consistency and appearance of photos, maybe with the odd object removal, would be a safer bet.
by MrJohz | 2025-05-11 20:19:26+00:00
That's not web components, though that's lit-html. That's an additional library you need to pull in to manage your web components. Which kind of ruins a lot of the stated benefits of web components. If I need a framework to write my web components, why not just pull in a different framework that skips the web component level completely and just outputs HTML/CSS directly? What is this intermediate step actually bringing me?
by n_ary | 2025-05-11 20:20:03+00:00
If you can find nothing else, you can add a little irritating floating chatbot icon on your product(I am making huge assumptions that it has somekind of UI whether native or web or touch screen or something), which you can converse with to may be RAG stuff from some panel/tab and respond to questions.

I have seen way too many products suddenly becoming ProductX to now ProductX-AI by simply adding a RAG powered document conversation popup.
by hammyhavoc | 2025-05-11 20:20:15+00:00
If these are bidets that are plumbed into the mains supply, then yes, water pressure is too low in many places. I'm fortunate to live in an area of England where it's like pressure washing your patio—that jet of water can most definitely cut your paper-thin arse tissue if you crank it and aren't careful (been there, done that—still love it six years on).
by eviks | 2025-05-11 20:20:22+00:00
> The FAA's equipment now fails approximately 700 times weekly. Controllers work 10-hour shifts, six days straight. There's a backlog of replacement parts for components nobody manufactures anymore. When systems that were designed for resilience are optimized instead for efficiency

The wiki definition of efficiency is "the often measurable ability to avoid making mistakes or wasting materials, energy, efforts, money, and time while performing a task. In a more general sense, it is the ability to do things well, successfully, and without waste", so having a lot of breakage is by definition not efficient, and the system isn't optimized for it

Similarly the frictionless digital paradise is imaginary

> Amazon's one-click ordering creates a seamless customer experience by offloading friction onto warehouse workers and delivery drivers.

Wait, that one-click order could be of a counterfeit 5-fake-starred product, does the fail to match your basic need not count as friction in author's digital physics book?

> Meta builds frictionless social interfaces

How is the impossibility to get algorithms matching your needs a frictionless interface?
by harmmonica | 2025-05-11 20:20:26+00:00
Not to diminish the fact that this is happening, nor that humans are at least a principal cause of it, but does anyone think, at least in the US, that the costs to mitigate sea-level rise would not be shared across the US, at least in those places with significant population? The contradiction is not lost on me, but most of the time when people are asked "should the government bail me out?" the answer seems to be yes regardless of where one sits on the political spectrum.

I bring this up because the same people who would deny that this is a problem will also be amongst the people who will take a "check" from the federal and/or state government to mitigate any issues that arise from it. And it's, at least partially, that reality that keeps people from actually trying to mitigate it with their own actions. I'm not saying people consciously are sitting there saying that, but I do think it's an underlying belief.

For instance, is this guy or gal (https://www.realtor.com/news/unique-homes/florida-most-expen...) going to pay for the levy or whatever solution keeps the water from inundating their property without first lobbying the government to take care of it for them?
by Zigurd | 2025-05-11 20:20:38+00:00
One of these things is not like the others. Tesla, for good or ill, needed to write a full stack for their EV. Not only did they need to do it, but they did in fact do it and ship it and develop it over several years. Recruiting a Tesla software guy is probably the best choice between these three. And he'll cost you less.

Both Google and Apple have car software, and who knows if Apple actually developed a full stack of the way Tesla did. But anyone can download and play with android automotive. It's unclear what getting one of the android automotive developers would do for you.

Whoever convinced the people writing requirements documents for car user interfaces that they needed to use Unreal Engine to show you what your own car looks like and spin it around in. 3-D deserves some kind of salesmanship Nobel prize. That is the most pervasive useless thing I've seen in a long time.
by djoldman | 2025-05-11 20:21:33+00:00
Somewhere in the last decade I became a curmudgeon who yells at clouds.

I'd like a car with zero screens, no internet connectivity possible, and maybe one audio input and a radio.

Also I drive a manual, which here in the US seems to be almost unheard of.

As an aside, what's next? You can't buy a chef's knife without wifi?
by fires10 | 2025-05-11 20:22:13+00:00
I have worked in the trades as an electrician and then became an estimator/Project Manager. Most are small businesses that are barely hanging on. It is often not a path to wealth. Many of the smaller businesses are being bought up by private equity now to drive up prices. The tradesmen are not getting wealthy and typically will not become wealthy. Licensing a business is different than the license a tradesman gets. Rules vary by state and are often require the approval of your would be competitors, regardless of demonstrated skill and time in the trade.
by hanlonsrazor | 2025-05-11 20:22:37+00:00
Seems like this is more for the hobbyists - building webpages for the love of the act. Frameworks are built to be standardized, enforce best practices via their design, and allow developers to 'hit the ground running', so to speak.

No web site is intrinsically valuable - the information and functionality it wraps is what holds its value. Developing the access to that information and function, enforcing correctness, and the timeliness of that development is what frameworks empower orgs to deliver at much lower cost in the present and future, vs. vanilla web dev.
by cryptonector | 2025-05-11 20:22:55+00:00
I see! Thanks for that answer. I'm sure I'll have lots of questions, like these:

You say you don't have to instrument malloc(), but somehow you must learn of the allocation size. How?

Are aliasing bugs detected?

I assume that Fil-C is a whole-program-only option. That is, that you can't mix libraries not compiled with Fil-C and ones compiled with Fil-C. Is that right?

So one might want a whole distro built with Fil-C.

How much are you living with Fil-C? How painful is it, performance-wise?

BTW, I think your approach is remarkable and remarkably interesting. Of course, to some degree this just highlights how bad C (and C++) is (are) at being memory-safe.
by lolinder | 2025-05-11 20:23:45+00:00
And if you can point me to an example of that I will happily lampoon them.

If we're talking about Medium, then yes, Medium is a complete disaster zone that should not be emulated anywhere. Their reader-facing use case does not require JavaScript at all except as a light optional seasoning on top.

All I'm saying is that we need to actually talk about use cases whenever we're talking about frameworks, which we almost never do. Failing to specify the use cases turns the conversation incoherent because we end up having two different conversations without even realizing it.