skysight-inc/HackerNews huggingface dataset:
Once you call super, you invoke the base constructor. This can cause issues beca not all fields in the sub class has been set yet. Setting the fields before calling super prevents this issue.

Trivial method calls such as „toString“ can already cause issues and it’s worse once you want to guarantee certain value types properties.
You only need a couple technically competent members to keep things going .. its not that hard .. and in any community there is always a certain percentage of folks who want to learn these things, anyway ..

The point is it can be done, easily enough. We don't need these walled gardens.
A giant space rock demolished an ancient Middle Eastern city and everyon (2021)
I think the people calling sex education "grooming" are the same preventing the legal system to evolve in the way you described. You're very lucky that you could home-school your kids and teach them all this.

It's all very alien to me how teaching safe practice of something that has a huge probability of happening can still be seen as encouraging it, "grooming". Education should be a bare minimum here: here's how your body works, here's your risk of becoming/making your partner pregnant (and what that entails for you), of catching a life-long disease, cancer, or a nasty painful thing, here's what medical science and the FDA says you can both use as contraceptive and their failure rate and side effects, no means fricking no, and all of this compounds if you drink or do drugs...

Not teaching this amounts to not preparing your kid for the actual world and reduces body autonomy and responsible behaviour... They will experiment, and they will do stupid things.

It's as if teaching civics was a gateway to anarchist bombing or teaching chemistry a gateway to Breaking Bad... American puritanism and the whole "teaching is grooming" is such a weird thing.
It's easy to point fingers at "totalitarian regimes".

Oceania is always at wars for a reason.
Sure you're right, but the conversation that heroin is more likely to kill you than alcohol is (or should be) obvious. However people don't seem to realise 3x more Americans die per year from alcohol overdoses than opioid overdoes or that it is the cause of 5.3% of deaths globally per year. Parents rarely buy their developing kids heroin to take to a party, and you rarely go out after work with your boss to see who can do the more lines of cocaine.

You're more likely to know someone who dies from alcohol than any other drug, if you don't already. And I say that as someone who lost a friend to heroin! So I get how bad it can be, and I get how fun alcohol can be, and how culturally accepted one is over the other, but damn alcohol is a deadly drug. Like I said in another comment, alcohol is one of two drugs you can die from withdrawals from too (the other being benzos, ironically what you get to help deal with alcohol withdrawal).

And I say this knowing I still fancy a beer after work! Because that's how ingrained this stuff is in our lives.
NetBSD 10: Proper old-school Unix, not like those lazy, decadent Linux types
Two text boxes, a submit button and a generated diagram. What part makes it similar to Google Maps?
Or, if you don't want to participate in a 20th century trepanning ritual that barely works, you can get a real treatment, The Sinclair Method, and actually cure your alcoholism. It works in clinical studies, and I can say it worked for me. Nothing else did, certainly not group therapy where a room full of judgy strangers tell you you just haven't hit rock bottom yet so keep trying!
For me the craziness already starts with equating nudity and pornography...
Participating in the Spring Lisp Game jam, why and how
This is very very sound advice. How many _actual_ data structures are there in our day to day? Trees, graphs, buffers, arrays, hashmaps, state machines... Yet we tend to overspecify operations as if they are special (see: many applications of OO), when they really aren't.

Another angle to look at this is moving complexity and specificity into data and away from functions. It's a recipe for success: HTTP/REST, SQL, CLI utilities etc.
We just ported our ~500gb data warehouse from an 8 core postgres rds instance to bigquery. Rebuilds went from 5 hours to 11 minutes and costs are about the same or lower. and that’s with caching of some very big tables in postgres and rebuilding from scratch in bq.

I much prefer postgres as a tool I can run myself but the order of magnitude performance benefits are hard to argue with.
I'd just make a new law targeting schemes to enable/encourage tax evasion.

It would hit airlines who sell $$$$ worth of tickets each year, but then hand out discount vouchers/points/miles to customers (many of whom bought the original tickets on business expenses, but take the vouchers/points/miles personally, thereby evading tax). The tax authority would be able to estimate the 'value' in vouchers handed out (not the book cost or stated face value, but what customers value them at), the percentage of those vouchers that represent tax evasion, and then fine the airline 3x the lost taxes.

Same for starbucks loyalty cards etc.
My weather app of choice is Today Weather. Its UI strikes a good balance between being informative and clean looking (and it can be customized a bit too)

https://todayweather.co/
Mostly through either self-inflicted pain of languages that got its concurrency primitives wrong or ended up having it too complex to be useful before we arrived upon better ways.

Naturally, this is not to say the language designers were bad at it, far from it! It just took the benefit of the hindsight and time due to non-uniform knowledge propagation throughout the industry to nail them down as can be seen in Rust and C# in the form of async/await and Futures+Tasks and CSP-style in the form of Elixir and Go.

Today, Rust makes it trivial (given the tradeoffs) to achieve such even in bare metal scenarios with custom executors, while C# offers zero-effort model for general purpose scenarios:

using var http = new HttpClient();
var req1 = http.GetStringAsync("https://news.ycombinator.com");
var req2 = http.GetStringAsync("https://lobste.rs");
Console.WriteLine(string.Concat(await req1, await req2));
Honestly I think the effect was hard to even see in the graphs at that point. It certainly wasn't "huge".
This is a fantastic article. I had my first panic attack in a church when I was 14. I was there praying with my family when I suddenly got this weird, almost unreal feeling of "super-reality". It wasn't that everything felt unreal. It was that everything felt VERY REAL. It was like waking up from the Matrix, realizing that "this is it" - this is your life and it’s definitely going to end someday. It hit me hard that death isn't just for others, my brain really got it, not just on an intellectual level but for real.

After that, I started having frequent panic attacks, along with feelings of depersonalization and derealization. It took me years of therapy, almost a decade, to return to a mindset where I could just live my life without constantly thinking about death.

Realizing you're alive can feel really, really weird. It's like waking up from a dream. You start wondering, "Why isn't everyone else panicking?" You think everyone should be in a constant state of terror about their own mortality.

It seems to me that the author of the article had a similar experience, except during an actual emergency - she suddenly understood that "One day there will be no ME."

"We have two lives, and the second begins when we realize we only have one".
Seeking faster video rendering with HTMLVideoElement
Server-side rendering! You mean CGI written in Perl spitting out fully-formed HTML in 1994?
Not exactly reading but I would recommend the database engineering courses by Andy Pavlo that are freely available on YouTube.
ChatGPT is amazing. Even when it is completely hallucinating, the fact that it can do so with such a nicely worded response just puts a smile on my face.
I like to draw, so— Adobe Illustrator was a joy for me back in the day. Fast. Today, if I need to make a drawing, I like google draw.

That said, these days I’m making custom scripts in Python and I love Click for CLI. I love solving problems with scripting.

Everything else is just a struggle to get something done and go home.
PR they do is very creepy, it is literally reads as if all work is being done by ollama themselves, but when I saw they started to do meet-ups and do integration with other companies(I presume with paid support), then imho coupled with previous points this is red line, do freaking attribution.

It is the same behaviour as Amazon did with OSS which in turn forced companies to adopt more restrictive licenses.

https://www.forbes.com/sites/davidjeans/2021/03/01/elastic-w...
I am yet to watch the MKBHD review of the Apple Vision, but I can safely assume it is very much along the same lines ...
Statements are now allowed before `super`: https://coderoasis.com/java-23-new-features/#statements-befo...

At long last!
> Nothing against the Chinese but obviously you go there to see Italian culture. Not to buy cheap imported knick-knacks. It seems like they're all the same franchise or something.

Sounds like (forwards) vertical integration at work, the manufacturers of the knick-knacks (or those with the relationship with them) take over the importers / retailers of the knick-knacks.
This is also my main reason to use Firefox. I generally like Firefox, but I find Chromium more snappy. But it's Google. The Manifest V3 changes were the nail in the coffin for me.

Unfortunately I still have to use it when developing with Flutter, but otherwise I try to avoid it where I can.
I was just continuing the parent comment's thinking - if they don't specify which year it will be, they might also not specify which summer?
> I am "protected" from using all the shiny new AI tools to increase my productivity.

Can you elaborate? What’s happening in Europe that is “protecting” you from AI? America is clamoring for protections, maybe they should avoid whatever mistakes have been made in Europe.
If you want a robot that can fold your laundry, clean your room and cook, you need a lot more than cheap hardware. You need an autonomous agent (i.e. "an AI") that can guide the hardware to accomplish the task.

We're still very far from that and you certainly can't do that with ALOHA, in practice, despite what the videos may seem to show. For each of the few, discrete, tasks that you see in the videos, the robot arms have to be trained by demonstration (via teleoperation) and the end result is a system that can only copy the operator's actions with very little variation.

You can check this in the Mobile ALOHA paper on arxiv (https://arxiv.org/abs/2401.02117) where page 6 shows the six tasks the system has been trained to perform, and the tolerances in the initial setup. So e.g. in the shrimp cooking task, the initial position of the robot can vary by 10cm and the position of the implements by 2cm. If everything is not set up just so, the task will fail.

What all this means is that if you could assemble this "cheap" system you'd then have to train it by a few hundred demonstrations to fold your laundry, and maybe it could do it, probably not, and if you moved the washing machine or got a new one, you'd have to train all over again.

As to robots cleaning up your room and cooking, those are currently in the realm of science fiction, unless you're a zen ascetic living in an empty room and happy to eat beans on toast every day. Beans from a can, that is. You'll have to initialise the task by opening the can yourself, obviously. You have a toaster, right?
One could argue that concentration is an aspect of intelligence.
I love Tailscale, it’s by far the best VPN I’ve used, and the easiest wireguard implementation to get up and running I’ve used.

I can certainly see the value of this feature for some orgs, but it seems little scary to me. With this setup, if an attacker is able to compromise Tailscale and add a key to your tailnet, that person will immediately have access to your network AND shell access to all of your boxes, rather than just network access if you use Tailscale with vanilla ssh.
In your example, there are two different places where you potentially destroy the intstack.

It's not particularly bad because there are only three possible resource allocation failures in your example, but it still illustrates a problem that will be worse when applying the approach as a general strategy. Consider a case where regex_canonical_equivalent_with_structures needed two stacks and two maps:

intstack_t stack_a = intstack_create(256);
if (!intstack_valid(stack_a)) {
return regex_compare_out_of_memory;
}

intstack_t stack_b = intstack_create(256);
if (!intstack_valid(stack_b)) {
intstack_destroy(stack_a);
return regex_compare_out_of_memory;
}

intmap_t map_a = intmap_create(16);
if (!intmap_valid(map_a)) {
intstack_destroy(stack_a);
intstack_destroy(stack_b);
return regex_compare_out_of_memory;
}

intmap_t map_b = intmap_create(16);
if (!intmap_valid(map_b)) {
intstack_destroy(stack_a);
intstack_destroy(stack_b);
intmap_destroy(map_a);
return regex_compare_out_of_memory;
}

regex_compare_t res =
regex_canonical_equivalent_with_structures(cache, x, y, &stack_a, &stack_b &map_a, &map_b);
intstack_destroy(stack_a);
intstack_destroy(stack_b);
intmap_destroy(map_a);
intmap_destroy(map_b);

return res;

}

You now have a 5-tuple maintenance problem and the code isn't particularly readable. I call it a "wet staircase"; it's not DRY, it's easy to slip and it gets taller for each step :)

Consider the equivalent using a simple goto escape hatch:

regex_compare_t regex_canonical_equivalent(regex_cache_t *cache,
stringtable_index_t x,
stringtable_index_t y) {

if (x.value == y.value) {
return regex_compare_equal;
}

intstack_t stack_a = intstack_create(256);
if (!intstack_valid(stack_a)) goto out_of_memory;

intstack_t stack_b = intstack_create(256);
if (!intstack_valid(stack_b)) goto out_of_memory;

intmap_t map_a = intmap_create(16);
if (!intmap_valid(map_a)) goto out_of_memory;

intmap_t map_b = intmap_create(16);
if (!intmap_valid(map_b)) goto out_of_memory;

return regex_canonical_equivalent_with_structures(cache, x, y, &stack_a, &stack_b &map_a, &map_b);

out_of_memory:
if (intstack_valid(stack_a)) intstack_destroy(stack_a);
if (intstack_valid(stack_b)) intstack_destroy(stack_b);
if (intmap_valid(map_a)) intmap_destroy(map_a);
if (intmap_valid(map_b)) intmap_destroy(map_b);
return regex_out_of_memory;
}

Or if you add "destroyvalid" methods to your data structures,

out_of_memory:
intstack_destroyvalid(stack_a);
intstack_destroyvalid(stack_b);
intmap_destroyvalid(map_a);
intmap_destroyvalid(map_b);
return regex_out_of_memory;
}
Kanboard: https://kanboard.org/ is a lightweight Kanban project management tool, it might not have every feature under the sun but it's the most snappy project management tool I've ever used, looks simple and runs well. I honestly love it, what a nice thing to have.

MobaXTerm: https://mobaxterm.mobatek.net/ this one is a bit more Windows centric but I ended up paying for it and replaced mRemoteNg and PuTTY with it, it's even better than Remmina or whatever Linux has to offer - you can manage SSH/RDP/VNC/... sessions, input across multiple sessions side by side and it just simplifies things a lot (jump host support, a port forwarding too and so much more).

GitKraken: https://www.gitkraken.com/ also a piece of software that I paid for, this one actually makes using Git pleasant, feels better to use than SourceTree and Git Cola (even though that latter is wonderfully lightweight, too) and honestly I prefer that to the CLI nowadays.

Most modern text editors and IDEs: I personally pay for JetBrains IDEs but also like Visual Studio Code as a text editor and both have helped me immensely, they're reasonably performant when you have the RAM, look nice, often give you suggestions about how to improve your code and also have a plethora of plugins in their ecosystems. Nowadays I unapologetically use LLMs as well and overall it feels like I have these great tools and cool autocomplete (that is sometimes a bit silly and wrong) at my disposal, that makes me happy.

Kdenlive: https://kdenlive.org/ imagine if there was a successor to Windows Movie Maker, though something that gets most of the important stuff out of Sony Vegas, except is also completely free and works on most platforms. Kdenlive is all of that and also somehow quite pleasant to use, I actually prefer it to DaVinci resolve. There is a bit of a learning curve to any piece of software like this, but everything mostly makes sense in this one.

Linux Mint with Cinnamon: https://www.linuxmint.com/ as far as desktop OSes go it's familiar (Ubuntu without snaps by default), whereas the UI feels both snappy, doesn't use too much resources and is actually pretty to look at.

Gitea: https://about.gitea.com/ I still use this for my personal Git repositories and integrating with CI systems and it's lightweight, looks good and just feels pleasant to use. Previously I self-hosted GitLab and constantly ran into resource exhaustion as well as doubts about the next update is going to corrupt all of my data and break (it did), so now I use Gitea instead.

Drone CI: https://www.drone.io/ a container native CI solution that I can also self host. It's container oriented, integrates with Gitea nicely, is similarly nice to GitLab CI and doesn't cause me headaches like Jenkins would.

Docker: https://www.docker.com/ yes, even Docker desktop. It just makes working with containers really pleasant and predictable, even when something like Podman also exists (and also is great). I don't know, I feel like Docker really saved me from having brittle legacy environments, even self-contained containers with health checks and resource limits with still the same brittle code inside of those make me feel way more safe.
At which point does a language have enough features? Does any language have?

It really depends on your preferences and what you're trying to do.
I would say most languages do have enough features for most usages, to be honest.
In the rare occasion the language does not, why not learn another language that fits your needs better?
I know maybe 5 or 6 languages well enough to know their pros and cons and between them, I normally know exactly which language I would use depending on the objective, sometimes it may even be Java, but it could be any of the other 5 as they all have slightly different advantages.
Winamp Community Update Project
But PG is much more commonly used for OLTP, not OLAP. I'm baffled to this day that they enabled it by default.
Tbf, 90% of all people live in the northern hemisphere where most of the landmass is so you can kinda statistically figure out what they probably meant.

Maybe it's one of those maps without New Zealand :P

https://www.reddit.com/r/MapsWithoutNZ/
>The U.S. may have many guns per capita but countries like France, Switzerland, Finland, Portugal, etc. all have huge percentage of gun owners.

They also regulate and restrict guns to a degree that would be impossible in the US. And have cultures with social cohesion where rights are understood to confer responsibilities - again, impossible in the US.

>"It (guns) insures that the people are the equal of their government whenever that government forgets that it is servant and not master of the governed."

They do no such thing. The American government has shown absolutely no compunction whatsoever about putting the boot to their citizens heads whenever it likes, be it through illegal domestic surveillance, plutocracy, experimentation on its own citizens, endless unpopular wars, unjust incarceration or a militarized police force that all but robs them openly and hunts them for sport. Indeed, recent history even demonstrates that many American gun owners will welcome authoritarianism with open arms (pun intended) so long as the boot doesn't come down on them.

Guns are not a substitute for a well informed, engaged populace, and the fantasy that guns equal liberty is poisonous to society. The government fears a well informed, engaged populace. It does not give one single rat fuck about the pistol you keep under your pillow.
That's not completely true, but perhaps this could be interesting to watch:

http://spotthedrowningchild.com/
I dunno man I work way less than my friends who work retail/hospitality/labouring jobs etc. Maybe the top people in my field work loads but most don't. But more importantly, I sit on my ass all day. Being physically exhausted from being on your feet all day is simply harder to deal with. Furthermore, I can afford a lot of things that take stress off me. I can afford to buy quality premade food when I don't have time to make food. I can afford to take Ubers when I need to get stuff fast etc etc. When I was growing up I probably had food from a takeaway or restaurant like once a year and I often couldn't afford to take the bus. That erodes your time.
Ask HN: How Can I Make My Front End React to Database Changes in Real-Time?
I'm exploring ways to make my frontend applications reactive to database changes without overloading the backend.

- Traditional methods like polling are resource-intensive and rerun entire queries, which isn't efficient.
- I’m familiar with some libraries and companies are doing this by building materialized views close to the DB [1][2], but I want to update the frontend, not just the backend.
- Some platforms like Supabase Realtime [3] and Firebase offer subscription models to database changes, but these solutions fall short when dealing with complex queries involving joins or group-bys.

My vision is that the modern frontend to behave like a series of materialized views that dynamically update as the underlying data changes. Current state management libraries handle state trees well but don't seamlessly integrate with relational or graph-like database structures.

The only thing I can think of is to implement it by myself, which sounds like a big PITA.

Anything goes, Brainstorm with me. Is it causing you headaches as well? Are you familiar with an efficient solution? how are you all tackling it?

[1] https://readyset.io/
[2] https://materialize.com/
[3] https://supabase.com/docs/guides/realtime/postgres-changes
[4] https://github.com/hasura/graphql-engine/blob/master/architecture/live-queries.md
The varnish caching lifecycle [1] has some great additional features. Coallate and hold multiple requests, refresh the cache while immediately serving cached content to the requester, serve stale items when the backend is down.

[1] https://docs.varnish-software.com/tutorials/object-lifetime/
I contribute code to open source software because _I_ use that software and _my_ contribution will make it better for _me_, not because of some kind of totalitarian ideology.
This seems very likely, also considering that a/the main Multics dev was involved with Unix.
The comments here as elsewhere are overwhelmingly garbage, and generally worse than even the “bad” articles.
Hey pal, cheers from Rio!

I use monkeytype everyday between some stressful tasks or pomodoros to keep my touch typing in check.

Few things:
Why do I need to complete 20 sessions? Can I do only a few? That's the only time I have between tasks.

The line breaking is weird, sometimes the reference is on the line below, but what I'm typing is on the line above. Maybe it's a difference with the shadow or font-weight.
At least here I can see a bit of a shadow with the reference behind.

Anyway, awesome idea!

Now I can train something that is not English using an existing habit. Thanks!
Now this explanation makes the most sense.

- Wireguard keys for authentication and encryption.

- Tags for authorization to run a remote shell.
They do

https://www.which.co.uk/reviews/cordless-phones/article/how-...
New charging algorithm could double life of li-ion batteries
Same here in Chrome and Firefox
I wonder what happened to the friend, if that was a risk thing or something else.
Maybe we need a richer debugger experience.
Hmm... See a whole lot of experience, there. Maybe this isn't just "a young man's game," after all...
Won’t ever happen again after this.
i3, vim, Obsidian ;)