skysight-inc/HackerNews huggingface dataset:
> If you're doing manual VDOM building you're doing something very wrong.

Rendering a React or Vue component is building a VDOM, that's what I'm referring to. Your code is explicitly building a VDOM.

> The reconciliation makes sure only the parts are re-rendered which have changed.

Yes, and that makes development easier.

That reconciliation is only "faster" if your alternative non-VDOM code is poorly written, throwing away chunks of DOM and rebuilding from scratch.

I'm not advocating for not using VDOM frameworks, I use them, I'm advocating for understanding they are not faster than the DOM. that is a myth, and results in people misunderstanding the tools or how the DOM and browsers work.
House and food should be treated completely differently then other non-essential goods like entertainment and electronics.

Destroy housing -> destroy people's future and family creation.

Air b&b is cancer for people trying to start families as it destroys all local affordable housing.
I took this so many years ago I can't remember who taught it. Paul Hilfinger maybe? Microvax assembly language was a big part of the course, IIRC.
This fucks over both tourists and locals. The legit stuff is being killed and people come to see outer shell at best. And be ripped off.

What's the point of traveling when all you see around is other tourists and it's just a collective ripoff experience?

It's sort of like F1. Best experience is at home watching on TV. Or really really really expensive. Going cheap route is just cargo cult for the sake of a worthless picture. Going to a tiny local event is likely to be so much better on many fronts. Aside from bragging rights to other cargoculters.
Yes, I also agree that the author is wrong to dismiss immediate-mode toolkits. Immediate mode would be my first choice for a DAW application. I even would say it's almost a no-brainer as it makes so many things easier. You would need to be careful when rendering data-heavy widgets (ex: wavform) but the approach goes a long way with some careful planning even without necessarily implementing complex texture caching etc.
There are also quite convincing studies that show even worse declines for insect populations, again mostly due to industrialized farming techniques and the widespread use of chemical fertilizers and pesticides. The standard approach in the EU to work against this really worrying trend is to a) bring more and more land under some form of protection and remove it from agricultural production and b) increase the share of eco-farming, i.e. conventional farming without the chemistry. The problem: both approaches drastically reduce agricultural productivity. We really need a push towards regenerative agricultural practices (agroforestry, holistic grazing, etc.) that can deliver high yields while also improving CO2 sequestration and habitat creation.
Hong Kong is a tourist hotspot, but it hasn't had an effect on our rental market. It's already hell here!
It's definitely impacted Dublin, where I live, and the rest of Ireland. There's 10x more rooms on AirBnB than there are long-term rents in Dublin; in other parts of the country it's 100x.
And neither should focus on just „build more houses“ or „grow more tons of food“. Both must be high quality in terms of (mental) health as well as environment.
101 is a beginners course. What is 61B?
Think of the hours lost building code that becomes useless.
This is one of my greatest regrets in writing code.
I blame the likes of Microsoft that have consistently created bad frameworks that locked out other options and designed for their own buggy operating systems.
This is still happening, one of the reasons I do not use Microsoft.
Hang on I lie, I am using visual code on my Linux box at the moment.
Best AI vs. GeoGuessr Pro [video]
Living in a city heavily impacted by it, I couldn't agree more. People love it, because they feel entitled as tourists to live like locals, at the expense of the actual locals. It's literally all about entitlement, while forcing the negative externalities on the community you came to visit! Outta sight, outta mind.
The Strong Bad clip at the end just transported me back 15 years.
It's high time communities start regulating the so-called 'app economy'. Monetizing everything into a global marketplace is great when your income is orders of magnitude greater than the global average. This is exploitation pure and simple.
In the same time period Disney halved, the major indexes have retained value or increased. It's difficult to benchmark as competitors embraced the same ideologies. All we can say for sure is that against the market, they performed badly.
> a smartphone is just a tool, same as a laptop or a desktop computer is

I can no longer believe any modern technology is just a neutral tool. They are neutral if you think about them in isolation, but not when they're used commonly. See https://archive.org/download/tk-Technological-Slavery/tk-Tec...
My apologies if I hit a nerve. I'm just trying to have fun chatting about the foibles of contemporary software development with fellow nerds on HN. I expected something like urthor's post, where they seemed to appreciate the levity of my comment, and responded with some interesting insights. I also appreciated the follow up comment raising a serious concern about the prevalence of cloning and resulting confusion in realistic codebases.
And understandably so. Du pixel rendering only works on some kinds of displays (many modern displays don't have 3 vertical subpixels per pixel), makes the text look kinda bad due to the wonky colors, really doesn't mesh well with any sort of transparency or even coloured text, it requires that you keep 3 images of each glyph in memory to account for the 3 different sub pixel offsets. It also deeply entangles detailed knowledge of the monitor into your font rendering. You need to re-render everything and update all text any time orientation changes or the window is dragged between monitors. And how the hell do you handle a window stretching across 2 different monitors?

That's not to dismiss subpixel rendering, there is arguably a legibility improvement to trading off color accuracy for horizontal resolution, but it's really no wonder that new frameworks don't bother and that old frameworks are losing the ability to do subpixel rendering. Apple, for example, ripped out subpixel rendering from their frameworks a long time ago (before Retina displays, IIRC).
> it involves patching the underlying C runtime

Can you please clarify how this "patches the underlying C runtime"? What this crate is doing is not particularly out of the ordinary. You will find similar code in quite a few self updating windows executables.

> or do the "cooperative rename" trick[1]

I'm not entirely sure how this is much different? This is pretty much what this is doing. It spawns a copy of itself (with the exe being marked for self deletion) and then deletes the other executable.
Doesn't matter, the market still drives towards the brand names, even if they're a shell of their former selves. Lamenting the lost authentic past is for DFW wannabees. The Nouveau Riche masses will flock to the neolib Meccas to christen their legitimacy.
> enshrines private ownership of guns in its constitution.

Czechia, Guatemala, Mexico, Phillipines, Ukraine, Yemen.
> it can crank out something that's probably broken, and the person using the LLM needs to be able to know how to code to see where it's broken.

Same with my junior devs
I had similar thoughts on my way. I tried to compensate by visiting not-so-wellknown locations such as Ostia Antica, the ancient port of Rome, which is most of the time reasonably empty.

And yet, there is something magical about walking around the ruins in Forum Romanum or seeing the Dome of Florence towering over you, all the people notwithstanding. The touch of ancient marble, the smell in the air, the heat of the early May Italian sun, the reverbation of ambient sounds in an ancient amphitheatre, all this cannot really be "tasted" in the virtual space.

I am personally torn on this, seeing both the good and the bad things.
Of course - actual medical conditions must be treated.

In case my original post was not clear, I wonder if the _idea_ of being affected by ailment X or Y has become fashionable. That's all.
I learned Java Applets in school in 2009 and it was clear to me then that they were sort of… awkward. Java itself is fine and I still do a little Java work from time time and it’s a breath of fresh air from the daily python work.
Unlike a safe, a hardware wallet doesn't store money, it stores private keys. These keys are derived from a seed phrase you are supposed to back up offline.
Your employer will get rid of you in a blink if needed, as current layoffs show, getting too attached to your work is not healthy - no matter how passionate you are about it.
Yes, bosses, in the end, don't really care. They'll "appreciate" it in their minds (in the manner of a process being completed) but then not do anything with it, because that's not their job. They exist to create confusion and order from it and anyone honest enough to be a Good boss is quickly dethroned.

Thanks for the book recommendation!
I've got to say the thread which leads here confirms my original comment, your remarks aside.
There's always a chance it has downsides, but worst case you block the canal and it turns back into a dead sea.

I would say we are excellent at modelling outcomes, just bad at listening to models that tell us what we don't want to hear. For example, we knew about global warming before computers existed. The model and the tech wasn't the problem, human avoidance of bad news was (and is).

We can't just avoid doing everything because our models might be wrong. I find that reasoning repulsive. If humanity took that approach we would have died long ago.
While I agree with the sentiment, I think herd mentality fits better then cargo cult.
I tried plenty of approaches on windows, this was the one that seems the most reliable and least problematic. It's also the approach other systems already use.
I see nothing but a light blue screen in Android Firefox.

Can someone describe what this is supposed to do?
At Berkeley, course numbers >100 are upper-division, and those <100 are lower-division, introductory classes. Especially in the CS department, the upper-division courses are far from introductory. 61B is the the second in the 61A-B-C series, which is required for all CS majors. (A fourth lower-division class, CS 70 ("Discrete Mathematics and Probability"), is also required, but is independent of the 61 series.)
> But each software doing that has to run with the privileges to update itself. Which is in my book a big security downside.

But it does not have to run with those privileges under normal circumstances. It's easy enough to elevate privileges just for the update step.
This movie has been my go-to reference recently when I see stupid AGI conversations.

Of course the sequel books go a bit bonkers and have some stuff that has not aged well, but the general premise of handing control over humanity to a machine - as old as the trope is, it's a good take on it.
One of main reasons somebody may want to use such a library is to constrain the output of a LLM. The language is designed to make this easy and abstract this part of the querying away. There are trivial cases when some value is coming from multiple choice, but one can also easily constrain one word to depend on a previously generated word.
I'm from a small ski resort in Norway. How this has been "solved" here is that it's always been "boplikt", aka "duty to live", in the residential zones. And then there are separate zones for cabins and rental apartments. So the normal houses, someone has to live in, or you will get fined. You can't just buy a normal house and use it as a cabin or for short time rental.

This creates two markets with different prices. A similar sized "cabin property" is probably 3-4x as expensive as the same house on a boplikt-property. But this has kept locals from being prized out.

(I write "solved", as it's not easy to just move to the small city and find somewhere to live, but that's not really because of airbnb like situations. It's more that no one dares to build housing hoping someone will move here, and possibly have it unsold for ages)
is there a chance that someday unwrap will be visible to the typesystem and we can safely proclaim that "neither this library not its dependencies contain an unwrap"?
Thank you for the suggestion -

but the submission title is really far from the title of the linked page (editorialization). I suspect «Cs231n is still one of the best courses for ML» was actually meant to be a post from pythops.

--

Edit: and in fact, look at your (submission) neighbour: "OpenAI readies new open-source AI model" - https://news.ycombinator.com/item?id=35958789
That's the free market pressure. The free market only cares about your present performance, not about your past. And it is by many believed to be a good thing, because it's very meritocratic.

But it has downsides, too. People are human, not machines, and sometimes need to rest too. That's why we shouldn't leave everything up to the free market (not even the one that works in liberal theory and is perfectly meritocratic).

It was also one of the justifications behind copyright, to give artists more stability.
> A variety of forces have conspired to suffocate it. Two decades of increased regulatory interference, technological innovation, societal disruption, and an evolving political culture on the right have made that kind of radio into an unprofitable proposition. Carmakers are dropping AM radio from their dashboards, rendering this once ubiquitous and complimentary feature into a pricy upgrade.

Carmakers are droping it mainly for profit reasons. AM antennas are big and expensive.
There is also a lot of propaganda regarding digital radio which tries to replace analog radio.

Every type of radio has its place but today world is sick about profits. It is the same situation like in streaming vs. TV.

Quality is left as an exercise for the listener.
It's hard to reliably binary patch something unknown ahead of time.

All Trezor would need to do is change the compilation options on a fairly regular basis, and any patching will fail.

Combine with the fact there is a reward to send in devices means they can analyze any evil devices and make sure their instructions to users will reliably detect all evil devices they're aware of.

Still doesn't stop supply chain attacks, but makes them far harder.
Thanks I was curious about the concentration in the middle!
> That link says that after the FDA authorized the shots,

Yes, important steps were skipped or shortened for the unprecedented approval of these vaccines.

> Not giving these people the shots would have been immoral, it was already clear that they were effective and safe.

How can it be clear that they were safe if you haven't done any type of longer term followup?
Really? I don't notice difference
> concerning

...And in fact some at Google are already projecting a future of Open Source dominance in the subfield.

(Edit: the system must have missed a post update: )

...Coincidentally, in fact, a neighbouring post is: OpenAI readies new open-source AI model - https://news.ycombinator.com/item?id=35958789
Obligatory link share: https://www.tomscott.com/infinite-adam-curtis/
All those people problems are enabled by smartphones. Now which of those two can you do: Ban smartphones (or most of their functionality) or tell people to please not be <everything above>?
Exactly this. I too find this to be the best intuition for LLMs right now: they're not comparable to an entire combined human mind - they're comparable to subconscious, or inner voice (as in, the part of your subconscious that interfaces with your conscious using language - aka. "the voice in your head", if you have one).

So, as you say, if we had as much training as those LLMs, we'd be similarly good at coding by gut feel, with barely a conscious thought - and that's across pretty much any domain and technology that existed today. Compare with generic LLMs: a typical adult will be quite adept at saying somewhat coherent things on autopilot when prompted (!), which is reasonable given nearly two decades of constant exposure to natural language as written and spoken - but that same adult will be nowhere as good at this as GPT-4, and definitely not across so many different domains.
What speed should we expect from the model on consumer hardware? I tried a 8 bit quantized version on 4090 and got it to generate 100 tokens for 13 second, which seems a bit slow to me.
HN, where everyone uses fallacy arguments to sound smart, prop up their delicate egos and feel like they contribute value

... without actually adding any!
> Governments should focus on ensuring that business environments are ripe for competition.

Apple, Google, Facebook, Microsoft, Shell, etc.
SharedWorker (the thing needed for a "singleton worker") only just made it into Safari the end of last year...

plus you now have to handle multiplexing and demultiplexing for different tabs on both server and client.

By the time that arrived and HTTP/2 had wide enough adoption, everyone's already used to building atop Websocket...

Also the EventSource in the browser is heavily gimped. GET only, No custom headers, and last I checked you can forget about configuring any CORS stuff for credential passing.
It really feels like a new Victorian age is upon us. Not only are you allowed to show an ankle under your skirt, even talking about female legs is frowned upon.

The similarities go deeper than that. A mostly-uncontested empire (then, British, now, American) produced a leisure class that does not really have anything better to do than play zero-sum Moral Olympic Games.

Which also means that the only way out is in increased competition from non-Western nations. No one can afford too much verbal fluff in a Cold War 2.0.
The more they force the model into politically-fashionable responses, the further they get away from rational thought process. CodeT5+ looks promising though
Tools tend to manifest certain use cases when they encounter that thing called human nature.
Is that "10x more rooms on AirBnB then there are open rental ads in Dublin"? Surely there aren't literally 10x more rooms on AirBnB then there are renters in Dublin?

I am also very frustrated at rental markets in many place, though I'm still unsure how much of this is merely displacing hotels/hostels relative to actually sucking up long-term rental slots.

I am very prepared to lay a lot of blame on Airbnb for high prices, just haven't seen anything conclusive (US-centric stuff I've seen, the fact that building has crawled to a halt feels way more relevant)
And on top of that there's nothing in renting an AirBnB that provides a "local" experience. It's an ego-based illusion of experiencing the local life at best.
I can't see anything that would remotely justify that. Looks like excellent advice all round. HN cynicism again I guess.
This is actually consistent with Freddie de Boer's attempt to define wokeism [0]:

It is an abstract academic ideology where symbols and words matter a lot, while real-world activity does not.

[0] https://freddiedeboer.substack.com/p/of-course-you-know-what...
Cuts ? I thought he was made redundant. /s
>If there’s a software equivalent of a Cathedral then I still haven’t found it.

That one old file dialog window that still somehow shows up in windows 11 from time to time?

Or the Linux kernel.
Apparently it shows Cornish on the map for each "<language> in <place>" to me (FF 102.10.0esr, JS allowed on that page), and nothing otherwise.
They have not yet implemented this process, so it can't be the source of current issues.

You never paint everything at once anyway, so paint matching is a problem always.

You need a highly consistent process either way. Seems to me a smaller paintshop would be easier to quality control. However more parts going individually threw the process also could increase variance.

I would think they care more about saving lots of money then potential paint variance issues. If they happen they will try to fix it otherwise.
For the relative mouse movements, can't you just move the (hidden) mouse pointer to the centre of the screen every time you get a movement event? It will be very hard to hit the edge that way.
I think the breakthrough development from GPT to a general-purpose AI will be the introduction of at least some form of self-awareness.

Basically, at the moment, GPT models don't have the concept of "knowledge", or at least not in a way accessible from the inside of the model. Ask a human something they don't know and they'll tell you they don't know - GPT models will pull something out of thin air as they aren't aware they don't "know" the answer or that the input is insufficient.
Every developer deals with a compiler in some way, therefore "Compilers: Principles, Techniques, and Tools" is the most valuable book you can read for your career :-p
If even battery fire risk bothers you, you should really reconsider burying bombs in your backyard.

Compressed gas cylinders are _terrifying_, a larger one with an inert gas could level your entire house, and a hydrogen one could level the entire block.
could somebody explain how to recreate his coding environment in sublime text? looks very nice for learning and following along.
Depends on the equipment. Either it is physically dismantled by then, or people find ways to keep it running. No joke, I worked at sites than ran production equipment from the interwar period and, in one case, the early 1900s. If it is profitable, and you are allowed to run it fornenvironmental reasons, it will run forna long, long time indeed regardless of tech (controlers, chips, software) used in running.

By the way, those pre-pre-war stuff ran in the southern part of Germany. So funds and avaiaibility for newequipment was not a big issue in the literal century+ since it was built.
Operational security best practices for Mastodon users
After decades of development the GUI space feels more chaotic than ever. There are several dimensions that can become critical bottleneck in advanced use cases (performance, platform independence, ease of development, library/tool availability and maturity etc) and - as this post highlights quite clearly - it is non-trivial to chart a path.

Some of the difficulty is definitely intrinsic to the problem space. Nobody said that arbitrary complex interfaces have a license to run at lightning speeds with minimal coding on arbitrary and/or minimal hardware.

But I do have the feeling that in part the difficulty is because the different approaches (both historical and current) have been effectively islands, self-contained with no standardization or separation of concerns. E.g. I would at least hope that we would by now have an accepted universal way to describe GUI's (declarative). I think this might be one reason for the popularity of web based approaches: while html/css was made for documents not GUI's, it is at least something everybody agrees on.
> And most devs hating on Java are using an IDE written mainly in Java (all the JetBrains ones): the irony of that one gives me the giggles.

Reminds me of so many devs hating on Ruby and the number of times I heard that Ruby isn't used for anything relevant, while the huge majority of them either use GitHub or Gitlab for their work.
You don't want to clear it after only a second. It should persist much longer since people pause and think between words.

It's common that someone starts typing but immediately change their mind and clears the input after only a couple of characters. So if the timeout is longer you need an "ended" event.
It's also German ("Moskau") which I assume is where the American pronunciation comes from.
It works with good bosses. You will know pretty quickly if they're good by how they act. I've told good bosses what they need to hear and it's gone down well. Mind, the good ones are not common; the bad do predominate.
I didn't realise the bar latency had to get over was a comparison to a terminal!

I best throw every ide or tool I've ever used in the bin!