skysight-inc/HackerNews huggingface dataset:
I can actually comment on that fist question, having contributed to Serenity a bit in the past.

I did two big patches in the system, the first by adding websockets to the system[1][2] and the second (still ongoing) about allowing Browser to run in Linux directly[3]. Each went through several iterations trying to iron out all the lifetime and memory safety bugs I encountered, including in the first case one that got through the whole PR process and only got caught months afterwards.

The first change (WebSockets) took me a while to finalize, the main issue during its development was to solve the issues of the underlying socket never getting closed. This was actually due to RefCounted pointers getting implicitely captured by lambdas, which I solved by creating weak pointers for a bunch of them. This fix, however, ultimately broke the expected lifetime of the underlying socket by deleting it too early sometimes, which caused a sporadic disconnect issue. Now, this was not caught at all during the PR process, and was only found and fixed by Andreas a few months later[4]. This is directly a lifetime issue, and would have been caught by either a system that holds references directly.

The second change (headless-browser) took me at least twice as long than expected to do to make it work, due to some random crashes that I could not track down. This was ultimately diagnosed as me passing the wrong type of argument to the MemoryStream type, which accepted both BufferedSocket and TCP/TLSv1.2 Sockets directly but expected the behavior of BufferedSockets - it took two other people on Discord to debug this issue[5]. Note that that bug still allowed the headless browser to work for a little bit before it crashed, just not long enough that I didn't notice the bug. This bug was ultimately due to an invalid type constraint that I believe was left as-is as a workaround for another issue, but it could have been easily caught any language that didn't allow implicit reinterpretation of random memory data, so it ultimately is memory safety that lead to that happening.

Since I'm currently two for two in "memory safety-related issues" in my PRs, then yes I'd consider that, just like any other system, Serenity is having problems with memory safety - and that's just my personal experience. It's possible to do some things in C++ to try to limit these issues, and there's a lot of that being done in Serenity already. But in C++, all it takes is either a mistake by someone less skilled (me) or a workaround by someone who didn't think it'd be an issue, and the memory safety issues pop up again.

[1] https://github.com/SerenityOS/serenity/pull/6420

[2] https://github.com/SerenityOS/serenity/pull/6610

[3] https://github.com/SerenityOS/serenity/pull/13473

[4] https://github.com/SerenityOS/serenity/commit/1735d978ed2449...

[5] https://github.com/SerenityOS/serenity/pull/13473/commits/2d...
Type System Game Engines
I just downloaded Khan academy kids on my iPad for my daughter to try out. Since it’s apparently completely free.
They’re primarily used to hunt for escapees, and to keep eyes on someone running or involved in a chase. Poor areas don’t have the resources to buy a police helicopter, that’s why they’re sometimes loaned to other departments in these situations. I have never seen or heard of one being deployed to control poor people.
I hope this is successful. I really do. Given the long dormancy of HIV I really wonder how success is going to be effectively measured. Won't it take years?

The mechanics of how a single cell works is mind-blowing. The mechanics of how HIV works is even more mind-blowing. The replicatin process, how it infiltrates a cell, how it avoid detection and how it defeats the body's defenses.

This sort of thing gives me a lot of confidence that pretty much any new virus we see is natural because nature is a whole lot better at making viruses than I think any lab could be. The best a lab could really do, at least at this stage, is gain of function on an existing virus.
> Automated update rollout to the majority of users could be conditional on a smaller, inspective subset community of users manually examining and approving the update first (not too dissimilar to a Quality Assurance process). In the context of project owner compromise like the example in the article, this should catch the issue and prevent rollout to users. If an update is approved "with concerns", then the review community is likely to share those concerns with a wider audience, leading to awareness and hopefully resolution.

This is a Linux distribution, and the users paying more attention are the contributors or package maintainers. The trouble is this doesn’t scale with the sheer volume of software we use today. You don’t see many distros trying to individually package everything they use from NPM for example, and for good reason.

I’m convinced that the only way around this in the long term is for our software to actually run with least privilege, including the libraries within applications.

https://medium.com/agoric/pola-would-have-prevented-the-even...
Can anyone recommend an x86 assembler to use in 2022? Is NASM still the default choice? Also, what about a modern x86 reference, most of what I have and pretty much stops at the pentium era. Any source for an authoritative reference that covers x86-64, all the varying SIMD flavors, and any other new and interesting developments in the ISA in the last ~20 years?
I don't get why so many people likes this. No, I don't want a suddenly failing pipeline on master because of an expiring TODO.

A better approach is for a TODO to be required to reference a ticket, and add a ticket. Prioritization should happen in your issue tracking, not in the code.
I see. Can I ask you how you went about relocating? Did you have a job lined up first or did you just decide you liked that city and figured it out after moving? Any advice?
The conductor took your passports for the cross-border check, since you'd likely be soundly asleep at the time when it would happen. You can view this as a service.
> I would argue making it free and keeping it free would have been a cool move.

Here in Germany, there were many voices in favour of making the ticket completely free. What I heard about the reason for not doing so is that the government wanted to easily measure the actual demand in different regions for such a "free" ticket. So the price is low enough that anybody who wants to ride practically "for free" is buying it, but so high that most people who do not really use it won't buy it.

I expect that if the ticket is a success, it will be replaced by real free rides in the future. And the results of the test period could help determine how the costs should finally be shared between the different regions and local governments.
He could’ve gotten essentially equivalent performance writing it mostly in C, with only the time-critical parts in assembly. Assuming equivalent knowledge of C, it would’ve been quicker to write, easier to update and port, and easier for others to work with the code.
Think vgel's answer to you was helpful.

There are other techniques too, such as https://docs.rs/crossbeam-epoch/latest/crossbeam_epoch/

You can also use Rc/RefCell rather than Arc/Mutex if you don't need a multi-thread capable structure. You can always wrap a Mutex round the tree as a whole instead.
It’s odd that you approach interviews with a confrontational frame of mind. I would totally expect, and be prepared for, an interviewer asking me to expand or comment on anything I send in as part of the process, be it the CV, application questions, code samples, coding exercises, and whatnot. It’s actually worse when an interviewer asks you questions that show they clearly didn’t read all those materials.
Depends on location
Interesting. Do you have a link with more info?
Your picture link should be https://en.wikipedia.org/wiki/File:Mj%C3%B8st%C3%A5rnet.jpg eh?

- - - -

The "Glulam versus steel" section is really interesting!

> A 2002 case study comparing energy use, greenhouse gas emissions, and costs for roof beams found it takes two to three times more energy and six to twelve times more fossil fuels to manufacture steel beams than it does to manufacture glulam beams. It compared two options for a roof structure of a new airport in Oslo, Norway: steel beams, and glulam spruce wood beams. The life cycle greenhouse gas emission is lower for the glulam beams. If they are burned at the end of their service life, more energy can be recovered than was used to manufacture them. If they are landfilled, the glulam beams are a worse alternative than steel because of the methane emission.[9] A more recent study by Chalmers University of Technology was not so optimistic. Nevertheless, it showed that while the absolute greenhouse emissions are strongly dependent on the method used to calculate them, the environmental profile of glulam is typically as good as or better than steel in an example structural application.[10] The cost of the glulam beams is slightly lower than the steel beams.
>I want my kids to worry about global warming, not global warming and when's the next time the neighbours re-discover their imperial ambitions.

I just can't fathom why people bring children into this world knowing they will face existential crises.
Seems like a feature for mandatory "intercept and log network traffic" is interesting enough for hackers for the story to land on the frontpage.

I didn't know about CALEA since before but I've dealt with lots of network infrastructure (never in the US though), so I found this interesting, and upvoted it.
I'm all in for both.
Having an extra day to spend with my family, or doing "other things" (gardening, sport, etc.) and working less everyday.
I find myself being way more productive when I know my work day is short. Having too much time on my hands makes me procrastinate! Also, after ~6h of uninterrupted work, I am usually exhausted and need to do something else.

8h/day sitting in front of a computer is a lie and a bad way to measure productivity.
I’m getting flashbacks to AIM and my putting what could only be described as “neon green” on a black background.

But hey, at least it had some contrast I guess?
When ever there are discussions about accessibility there are always voices calling for "moderation" ... does every building really need a ramp? why does every single restaurant need an accessible bathroom? do those people really need all that contrast?
> Anecdotal evidence is no evidence.

Everything you wrote was just as anecdotal, so you've just categorically dismissed all your arguments too. Well done.
Vendor lock in.
The Art of Understanding
FFP2 mask are still mandatory on public transport (at least in Berlin) but generally nobody is concerned anymore, and even less so for the Summer.
I guess especially with synths you may also need to incorporate not just the notes, but also the synth settings. I'm not sure there's much support for that in traditional notation.
Seems to permit my login, although it just tosses me back to the page without acknowledging that I'm logged in, and it doesn't show that I'm actually logged in. Trying to reply to comments gives a login box, even though going to the doom scroll site shows I am logged in on that browser session.

So, yeah, seems to be a thing and one that I'm more than happy to leave behind. I have noticed a couple other of my hobby sites have recently put their forums behind login-walls. Which I have a problem with, because I think having these sites indexed by search engines promotes activity and interest in the hobby.

Oh well, is it too late to come up with a new Usenet standard and bring back newsgroups?
Feels like the European governments' (I generalize...) thinking is, the vaccine is available, it's good enough, and Omicron is "not that bad" anyway, so, if you don't want to get vaccinated, it's on you, but let's get on with our lives...
Why do you have to “migrate to higher level platforms and languages”? Assembly is perfectly valid for this application.
Not more than the plastic waste the bricks are made out of.

In fact, this should reduce the problem since in brick form, less of the plastic is exposed to the elements as opposed to the plastic waste it's made out of.
> Assuming you have to have at least one person working on the train anyway, for safety reasons if nothing else, having them also check tickets doesn't cost extra.

The trains are made of multiple cars without connecting doors, and the driver sits inside a locked cockpit. Tickets are currently checked by personnel that randomly patrol the trains, which are the only staff that passengers see.

It's actually rare to have your ticket checked, but the fine is ~10x the price of the ticket, so it's still worth buying one.
> graze like a cow (working 2-4 hours 6 days a week) or work like a lion (working 9-10 hours 4 days a week).

I would dislike both of those.
Legalizing marijuana federally cannot come soon enough.
Thanks for the thoughtful post. It's full of good ideas.

> After onboarding someone to a new system, “what was the hardest part of this to wrap your head around, is there a way for us to make it easier?” Or, “genuine question, if I asked you to just clean up tech debt on this repository for a month, where would you start?” ESPECIALLY do this with newbies.

Is my favorite part. I tend to hold training sessions for various things, so I can use this idea frequently and it will help everyone involved.
Socialism is COOL
> Not sure this is front-page worthy

why not ? i believe it is especially as i imagine most people are not aware that such things exist in freedom lands
But you can exceed accessibility requirements without using absolute black and white.

And for example some people require larger fonts for accessibility reasons - but we don't make all website with 100 point fonts do we? Instead we use tools to magnify the screen - the same way your OS can increase contrast for you if you need it. There's moderation there.
https://www.dsb.dk/kampagner/rejsepass/
To be fair that is what it costs in Germany as well under normal circumstances. A day ticket for central Hamburg is about 8 EUR a day.

And even that is cheap compared compared to Oslo and Stockholm where it costs 12-13 EUR a day. On the whole the London Underground is quite reasonably priced compared to many major European cities.
You’re still going to eat no matter how you travel though! That’s non-negotiable regardless of mode.

(Also, e-bikes exist too, if you’re really worried that people exercising might eat a little bit more.)
Majority of Kubernetes API Servers Exposed to the Public Internet
When you work 4 days, do you take Wednesday or Mo/Fr?
It's summer, everybody who wants to has three or even four vaccinations, most people have already had it on top of that, it's safe to say that Covid doesn't spread massively here at the moment.

Maybe another wave with a new variant or in autumn, but it'll most likely be mild as omicron is and there is so much resistance built up now.

So for all practical purposes, Covid is over at the moment.
So we just have hearsay? Having worked around jets, and having been into performance cars, this sounds ridiculous. A jet engine clocks in at around 160dB. A typical performance exhaust system is less, 100-120dB.

Someone should produce this report as it sounds fake.
It's lying around in open dumping sites otherwise - which is arguably much worse.
Here in Northern Germany it's pretty terrible
I know it goes against the spirit of HN etiquette, but damn this comment was funny ^_^
> You can't buy the dip during a peak.

The people who bought in at around >$40K and higher just did that and are now bag-holding in drawdown.

> PP got a loan at 50 which is a bearish trade, halfway to shorting.

Well no wonder they received multiple margin calls when the smart traders were taking profits or shorting from >$60K with him ending up on the wrong side of the trade or entering at higher prices and holding into unrealised losses.
with out knowing anything my guess would be it was using some ibm mainframe. AIUI the z/architecture's assembly is fairly high level (by assembly standards)
I had no problem paying with a credit card on Bahn.de ticket machines (White and red). The yellow BVG ones gave me problems in the past accepting an Argentine card, but it’s likely it’d take it now that it has a chip.
To be fair, this makes perfect sense. It allows compliance with wiretap warrants. Which are perfectly reasonable.
Yes, you want DarkReader which is an extension available on most web browsers. Aside from being able to dark mode websites it has ways to complete customise the background and text colours. I am writing this with high contrast orange text on dark brown background on ios safari.

https://darkreader.org/
> By the way, did you know it is _illegal_ to honk your horn in NYC outside of an emergency?

I had a next door neighbor, someone picked their kid up from school every morning about 7:00am. Every morning, the car would pull in to the driveway between our houses and lay on the horn until the kid came out.
> is effectively cutting off the labor side of the business cycle

yeah - overly simplistic conclusion.. for example, you do not recognize classes of business activity at all, yet some classes of employer are affected differently or even in the opposite direction; misleading.
What are you doing for the first 5 hours? I typically find that if I'm actually working and not in too many meetings I'm basically checked out after 5 straight hours if I haven't wandered off already.
I watched the video this morning. Thanks, it gave me something to reflect on.
> If the train number begins with RE or RB, you’re good

A few days ago Deutsche Bahn has started to label some trains with an RE number (e.g. running Norddeich-Bremen or Stuttgart-Singen) with "9-Euro-ticket not valid".
Anyone notice that if you paste anything into the new.reddit comment box everything goes haywire?
The company operates in Africa, where all of the plastic is just lying around.

Properly designed landfills don't exist in most of the world (Africa, Asia, most of South America).
What is a market neutral strategy for crypto? Do you just mean arbing yield pools etc?
How Nicole Kidman's AMC Commercial Was Made
My wife and I visited for a couple of weeks to visit some old friends we'd met at a music festival some years before. We went back to the US for a year and figured it out. If you are a citizen of Japan or the USA, check out the Dutch-American Friendship Treaty. Especially if you're already doing freelance work.
Do you know how people usually place their free day? Is it adjacent to weekend or middle of the week?
It's row based with versions kept along side current data. Later to be vacuumed away. Unlike a redo log based approach.
The government, which passed a vote of no confidence in Sweden with a single vote, lost the support of the pro-YPG deputy
Seems like a superpower to me. Light sleeping was probably great 50,000 years ago, when other human tribes might raid you in the night, and when big cats might be lurking in the darkness. Back then, heavy sleepers were effectively free-riders: the light sleepers would act as an alarm for the whole tribe. But, today, it's a fairly serious maladaption.
Another hypothetical alternative which wouldn't violate EU law (not that they have any reason of using it) would be to make the ticket only valid to people who legally reside in Germany, regardless of their nationality.
Protecting Android users from 0-Day attacks
ATOS: FOSS for freelancers that manages clients, invoices, and estimates taxes
I'd personally much rather an extra day off. But I do see the appeal of just having a shorter working day.
Adaptability by Agreement: Valuing Outcomes over Imposed Solutions
Those airline reservation systems were built in the 70s and 80s, and had to be extremely efficient, so, evidently they felt assembly was a better option than any of the higher level languages available around that time.
The immediate first thing that should be done is that police departments should have no way of benefiting from the seized cash or assets because it creates a perverse incentive across the board for everyone in the police department to overlook transgressions. It should be held by the county/state and the interest accrued till a judge decides. If it's forfeited, it should go into the county or state public benefits program that only benefits the poorest of the poor, seniors and homeless people.
Especially for traveling across Germany, this ticket isn't quite useful, however I feel like it is marketed as "free traveling across Germany for a month" which isn't really the case. Am wondering how everything will play out next couple of months.
Economists have never heard of Yevon's paradox. Surprising.

Increased efficiency will lead to more use, not less.
I don't get the push to legalize fireworks the last few years.

From about June to August all you hear is mortars. Boom. Boom Boom. Drives dogs insane, wakes up children, it's terrible.

Oh, they are only legal during the 24 hours around the 4th of July and New Years-how do you even enforce that? New Years is just a 2 hour gun shooting session anyway...
It isn't particularly controversial, but who is to say that the founders in question took the advice being given, or even showed up for the feedback sessions? Has anyone ever been kicked out of YC?

Given the number of companies that have gone through the program, I'd be surprised if there wasn't at least one that completely ignored everything the founders didn't want to hear or do.
That seems to defeat the point. Any idea why they’d do that?
> The trains will be extremely crowded and to get to any notable destination you will probably have to change a couple of times.

That's not true at all. There's lots of direct service to notable destinations. It's rather if you want to go to un-notable destinations (which is of course something that people do a lot in their daily lives) that you can expect to have to transfer.
Even suburbs are noisy -- those damned weedwhackers and lawnmowers! You go to live in this simulation of a peaceful park, but the racket never ends -- from the lawn crews who maintain the simulation.

So then you head out to the country for some peace and quiet. And it works for a while until -- what the hell is that? -- oh, it's a trio of quad-bikes.

It's the damned engines.
UK monkeypox cases double to 20
Maybe a dumb question, but how do the police seize a building? Assuming this just means they barred, under threat of arrest, the owners from using the property?
Watch Robert Lustig's presentations on Sugar: the bitter truth. I think he explains what's happening quite well. Unfortunately it seems to "sciency" and most people aren't disciplined enough to stay with it and hear him out because they don't understand chemistry and physiology. :(

https://www.youtube.com/results?search_query=the+bitter+trut...
> there won't be an incentive to reward people which provide zero value.

I am assuming you mean "who don't work" when you say provide zero value. The poor encompass more than just people living in a cardboard box in some alley. There are poor people living paycheck to paycheck who are barely able to afford food AND a roof over their head. A poor person can be a single parent with two kids who works two minimum wage jobs just to be able to provide for their family.
Design Is Art After All
This, together with The History Guy and The Critical Drinker are my three favourite channels on YouTube.
Is causing injury to others so you can feel like a badass who has the power to disturb others with your loud machine a joke?
It's a good thought exercise for the "trust the experts" crowd. Reading the text of the constitution, a document designed to be understood by the people it would apply to, makes this a clear and obvious violation yet our appointed legal experts apparently don't see anything wrong.
If we could find developers willing/able to do it, I'd happily stick with it. Such people are hard to find, but anyone reading this who is interested, feel free to get in touch (email address in profile).
Aphrodite: ORM designed for Local-First applications and P2P data transfer