skysight-inc/HackerNews huggingface dataset:
Actually for grid navigation there's no need for a priority queue.

All steps are of length 1, so you can keep two arrays. In the first one all the things that you are currently visiting and push to the second array the neighbors that you'll visit in the next cycle. Once you are done swap arrays and start over.
Is there a Linux distro out there that is themed to look like HaikuOS and works well?
You’re definitely responding to a lot of things that I didn’t say… a bit too much for me to respond point by point. Let me just summarize by saying that I intend no criticism of people who don’t like parties, but these dismissals of parties as mostly “unrewarding, mundane chit-chat, easily forgotten” seems to stem from sour grapes more than anything else.
I doubt it. In the UK cases are rocketing but deaths are still falling. This thing will be over soon and no politician is going to prolong the pain longer than they need to.
>> Tomb of the Griffin Warrior

Delightfully epic section title worthy of its own Power Metal hymn.

Also, it makes me want to roleplay in tha era. Are there any pnp RPG supplements for that historical period?
No. The reason it exists is because people like to share things they like. If you removed that button people would copy and paste or screenshot and share.
That's extremely naive. Why would you give a company, that has a terrible track record of doing absolutely horrific shit just for money, the benefit of the doubt?
I live in Ho Chi Minh City, Vietnam, and while it has many issues the general "not designed around cars" makes everything feel much more human scale which is something I miss when I visit the US.

Unfortunately, cars are a status symbol and becoming increasingly prevalent, which then puts pressure on government officials to design around them. It doesn't help that government officials all have cars and clearly see cars as superior and a sign of being a rich country.
Interestingly, this also greatly improves visibility for all forms of road locomotion: walk, bike, (push/electric/motor) scooter, car, truck. That said, there is also something zen about urban drivers in Tokyo. They are unusually patient and careful. I have never seen anything like it in other countries.
>- Where are you from?

Algiers, Algeria.

>- How old are you?

Thirties.

>- In what field do you work? If it is related to CS, please specify the industry (SWE, AI, graphics etc)

Building a machine learning platform (https://iko.ai) after many years of making bespoke machine learning products through consulting for large organizations.

>- What did you study?

Electrical Engineering.

>- What interests/hobbies do you have?

Life.
It's not just the added overhead.

For many, having a *private* IPv4 space is not just a feature, but a requirement.

The idea of a completely globally flat address space makes perfect technical sense.

However, policy sense may differ as Your Mileage Varies.
I generally do not like cities, at least not to live in, but I really liked HK, Shanghai, Phnom Penh, Chiang Mai and Bangkok. Tokyo and Melbourne are often mentioned as the greatest and I spent months in both; it really depends what you want, situation you are in, what period in your life etc. I though Melbourne was dead; after midnight the city is just a graveyard. And so was Tokyo. I like cities that are alive: in HK , Shanghai and Bangkok you can do whatever 24/7. It is lively. If I wake up at 3 am craving something or wanting to see a band, chat with someone, I can walk outside and get all of that in many places (not so sure about Shanghai now: that was the longest time ago since I worked there, well in Suzhou, but went to Shanghai all the off time). Even small towns in Asia have that but a mega city like Tokyo was dead; the apartment we were in was in a popular district and friends invited us to craft beer things and such; they shut down at 11pm. In my village (with 100 people) bars are open until 3 am or until the last guest leaves (often after 9 am).

It really all depends what you want from a city. As I do not have or want kids, and I work 12 hours a day (by choice!), when I finish, I don't want to hear kitchen is closed etc. No clue why I would pay the money to live in a city then (and I don't as there are no real 24/7 cities that I like in the EU; Berlin but too cold; for the atmosphere I would live there though).
Your efforts are better spent on developing fixed-distance laser.

Perhaps something like a million steerable ultra-low-powered laser beams focusing on a target.
What about source files? Are they required to have OSS headers with copyright + licenses?
A little bit unrelated but this made me wince:

> But I have to say that I’ve noticed a shift in culture away from having a solid basis in knowledge to fashions and dogma playing a bigger role in the design choices people make.

There have long been technologists who just wanna glue stuff together, go home at the end of the day and collect their pay packet. 20 years ago, I worked as an engineer in an office where a guy from IT support did some training at night school and went off to become a SAP consultant. SAP was fashionable at the time and I’m sure it had its own dogma. He probably never once thought about memory allocation or the efficiency of his code.

It was absolutely not the career path for me, but there’s nothing remotely wrong with his choices, and it’s certainly not a new thing. Just different career paths, and different interests.

Now - get off my lawn!
Agree. For all the rhetoric I can't see what they have to gain that would warrant the inevitable pain.
> The name of the project is simply “Haiku”. Unfortunately, despite numerous attempts, the registration of haiku.org has not been possible; hence the reason for haiku-os.org.

And guess what, the domain haiku.org is collecting dust. What a surprise with how civil the domain market is.

https://www.haiku-os.org/about/faq/#why-isnt-it-called-haiku...

https://haiku.org/
I also don't agree with the prediction, but I wouldn't go as far as to conpletely disscredit the author.
That's the thing. It's a super great place when you are a tourist.

I lived there and I saw the bad sides, too. To keep this amazing tidyness, order, extremely high quality of service, people go to their limits - with low pay and low perspectives. We have these "bad" jobs also here, people in those jobs are half-assing them, are rude or just quit. In Japan, at least from my experience, it's the conservative conformity, the anti-individualism, the meat grinding discipline that keep people doing bad jobs at high pace and quality.

It's paradox to me why many individualism loving Westerner are going to Japan and are loving it so much. It's a hell for many many people.

Many Japanese are racist, sexist, pedophilia was normalized for a very long time. Women are supposed to be housewifes in middle class families, gender is clearly defined.

All this is clearly against the western values that i often hear quoted when I hear the same people talking about "China". But Japan seems to be ok for them.

Paradox.

Just wished people would start thinking about their attitude towards other nations and would develop norms and values that they apply without bias to everyone in order to avoid double standards.

Overall, i enjoyed the positive racism in Japan, i was special and I felt it. I experienced racism, too, but i just ignored it. Working in Japan was bad. I also worked in China and felt that the overall package of racism/work/life/society was better for me.
I think you're severely underestimating what 20 years mean for your body. I'm a very fit 37 year old, and I very much notice the continued wear and tear. Recovery takes a lot longer, and the body just isn't as limber as it used to be. Partying for days on end, or some extreme sports, and maybe even some intellectual persuits are just WAAAAAY harder then they were 20 or 15 years ago. I can still do them all, but someone who thinks it's a good idea to trade in their 20s for more free time in their 40s is in for a rough surprise.
Great series.
I use lossless because why not. I have plenty of space on my computer. And if I really like an album that would like to listen on the go, I transcode it to a lossy version (aac)
The big residential ISPs were some of the first to go IPv6. Consider the issue of how to issue management IP addresses to 30 million cable modems, plus an unknown number of “other” managed devices like set top boxes: the 10. space only has 16 million addresses, so you have to have multiple parallel networks. Managing that is a lot of overhead. The conversion to IPv6 was considered cheaper than the alternative, so the big ones mostly did it 10-15 years ago.
Does this help? https://www.youtube.com/watch?v=xd3JJi8zSk4
Interstellar Bussard Ramjet Drive Would Need Magnetic Field Stretching 150M KM
Do you have a source for that? My understanding was that the technology worked just fine, and that it wasn’t expensive because the system comprised of consumer electronics, like the laser from a Blu-Ray player and the GPU from a PlayStation.
How does preferring a book to a party indicate poor social skills?
I am not an STL fan, but allocation should't be a problem anymore with the advent of polymorphic allocators. At least in greenfield projects.
You shifted the goal post, you claimed that it's nowhere near one MegaDeath (1 million deaths) despite it being fairly close, then you pivoted to "those aren't really covid deaths".
Ive read it 4 times in the past 30 years. Every time i get something totally new from it. It’s a story about a father and son, about the meaning of quality, its a travel book, and book about mental health. It introduced me to philosophy. An astonishing book.
A tribute :)

Lots of good memories playing the game in university.

Note the favicon picture.
Compounding interest is an abberration and wastes the good days.
Back when I used to read Distrowatch I often read about DragonflyBSD and its innovation (HammerFS I and II in particular if memory serves me right), but my understanding was always that it was a server OS?
IME the main problem of the C++ stdlib isn't the implementation quality, but the interface design. It must be everything to everybody, but at the same time doesn't provide much control over the internal behaviour. And the interfaces can't be changed because of source code and binary compatibility requirements.

In many (most?) cases, writing your own stdlib alternatives still makes a lot of sense.
If those places were kicking him out, it’s probably because they were very shady. Criminal gangs hangouts, scammer hangouts, sex worker meetup places.

There is your occasional nutjob small business owner that also kicks foreigners out, but that’s actually quite rare.

But this is the racism that Western people suffer. Chinese people, especially mainlanders, are targetted quite badly.
Complexity Considerations
I’ve editorialised the title very slightly to highlight what I thought was the most interesting part of the article, a meditation on complexity, scaling, libraries and the role of language ecosystem in software development. Key quote:

> It used to be that you could take a FORTRAN, COBOL, Lisp, VB, Pascal/Delphi, Access/PowerBuilder, dBase/Clipper/Paradox, or even a Java developer, drop them into a project, and they could work from a solid core, learning the team's custom bits and any commercial tools as they went. With JS leading the way, but not alone in this, a programmer can only rely on a much smaller core, relative to how many libraries are used.

> Because those libraries, and the choices to use a particular combination of them were not designed to work together, there is no guarantee (or perhaps hope) of consistency to leverage. It's worse if you came from a history of other tools that were based on different principles or priorities, because you have to unlearn, breaking the patterns in your mind. Or you convince people to use what you did before, even if there is overlap with tools already in use.

I am but a lowly hobbyist programmer, writing little programs for my own amusement, yet this assessment rings true to me. I am happiest when writing my own code and solving my own problems, not when I am wrestling with a half-consistent library or trying to interoperate between two vaguely contradictory platforms. I start writing an interpreter for string processing, which I do in my favourite language Haskell… but then I want to give it a GUI (requiring Unicode support!), which I have to do in Qt using C++… and that means I have to figure out the FFI between the two — easier than you might think, but still somewhat painful… and then before I know it I’m spending my time writing code to convert from C strings to Haskell strings, rather than actually solving the problems I wanted to solve. Thankfully such things haven’t completely taken over the project yet, but I expect it will only get worse as the projects get bigger. A single good language with a single coherent ecosystem would be amazing, and Red seems closer to that goal than any other project I’ve seen.
Yes, though sometimes it is possible to replace a fully general priority queue with a faster structure that is using the structure of the problem at hand. For example, this problem (AoC day 15) has only ever a count of unique priorities that is 11 or fewer. That allows a queue implementation to be https://github.com/yxhuvud/aoc21/blob/main/day15.cr#L27-L51 , being amortized O(1) in both insertion and deletion. This pushed down the runtime another magnitude for me, the whole day running at 0.014s.
Unsurprisingly I'm not familiar with the ins and outs of Polish copyright law, but in other countries the act of copying something into memory to use it (say copying a frame of video into a frame buffer on a DVD) is not a breach of copyright.
You seem to (inexplicably) entail from «Tokyo [is a] big city that is also pleasant to live in» a number of assumed ideas and unduly conclusions.

TFA:

> [...] Tokyo is now the world’s largest city, with 37m residents in the metropolitan area and 14m in the city proper. It is also one of the world’s most liveable, with punctual public transport, safe neighbourhoods, clean streets and more restaurants and Michelin stars than any other. In the liveability index of the Economist Intelligence Unit, our sister group, Tokyo comes joint fourth, but its population is larger than the combined populations of the others (Adelaide, Auckland, Osaka and Wellington). “It’s possible to have a liveable city at any scale - Tokyo proves that,” says Gabriel Metcalf, at Committee for Sydney, an Australian think-tank. // It offers lessons to developing cities elsewhere. In 1950, 30% of the world’s population was urban; by 2050, 68% will be [...]
I would make more emphasis on the Muted Words list:
https://twitter.com/settings/muted_keywords

That's what makes Twitter bearable for me.
> Along the way I learned the hard way that the heuristic in a* algorithm should never return higher value than the minimal value that that will be actually assigned to the path to destination. That is, if you want algorithm to result in optimal path.

That's true, but if you don't mind sacrificing a bit of optimality, then overstating the heuristic can speed up the calculation. This is called "overdo" in 'Fast shortest path computation in time-dependent traffic networks' (Lefebvre and Balmer).
>The UK will become a republic.

As much as I'd like that the chance of it happening is close to zero.
That is what happens without QA, people saving timestamps as int.
26 years later, still not being the default while gaining about %50 of only for a couple of giant companies -excluding the fact that most traffic is not the users but many other third parties- I would not call this statistic a win.

If I connect to a Wi-Fi in a Starbucks with IPv6 by default or my recently bought mobile line comes with IPv6, then I would say it is a win.

It is a huge improvement but the story of the failure is a good topic for academic research for future protocols.
People want lots of different figs because they’re good, and it’s hard to choose.
I guess you could look for themes (Gnome: https://www.gnome-look.org/p/1143497| XFCE: https://www.xfce-look.org/p/1013908/) but you won't get the same unified GUI as Haiku has, since everything is built with unification in mind, compared to the Linux ecosystem where modularity is usually king.

I guess Elementary OS is as close to a unified GUI you come that runs with a Linux kernel, but it tries to look more like macOS than BeOS.
Cmon, it’s Microsoft! You shouldn’t need to do that!
Is it multi-user?
The Rust propaganda or the anti-secure software propaganda that always starts to complain about Rust when one talks about writing safe software, regardless of which languages are suitable for such use cases since 1958?
So what you're saying is basically that astrology kind of works, but it works best if you don't know exactly when (and where) people are born... Heh.
Missing a 2014 in the title, by now, after 8 years since the article was published, the prediction has failed.
I'm assuming this was FPS and the FPS scheme has a defined Bank Error Recovery process as part of the scheme rules.
In this particular problem, all edge weights are 1..=9, so you can have a O(1) priority queue (fixed-bound bucket queue) if you make use of that fact.

(example: https://github.com/aldanor/aoc-2021/blob/master/src/day15/mo...)
What's on your muted words list?

Here's mine:

RT @

suggest_pyle_tweet

suggest_recycled_tweet_inline

suggest_activity_tweet
It's an alright video, kind of feels like they made the video just to spam the referral for digital ocean.

The TL;DR use tailscale as a sidecar on Traefik.

They followed this article:
https://tailscale.com/blog/kubecon-21/
I think it depends a lot on experience and wether the code base is post C++ 11. Modern codebases like clang or chrome do not seem to have any more memory management issues than something like Intellij. Personally I wrote system software in C++ for 10 years and memory management was a problem maybe once or twice.
I'm just annoyed there's no CowboyNeal option
Has it ever occured to you that you are getting paid off the work off your friends and family and by giving their money back they are simply back to square one?
> Also it's a hybrid kernel written in C++, unlike Linux which is monolithic kernel in C.

"Hybrid" doesn't mean anything here. The "hybrid" design claims all the benefits of a monolithic kernel, without the disadvantages of a microkernel. Huh. Wait, let's read that again. It's a monolithic kernel with better marketing. Even the networking, which in BeOS back in the 1990s was genuinely userspace code - is baked inside the Haiku kernel just like the IP stack in Linux.

C++ is not used very much in Haiku's kernel. This is because the Haiku kernel ABI boundaries are defined in C not C++ and because they're stuck with stuff from last century for compatibility reasons. If you know C++ 20 you will find Haiku's C++ dialect pretty archaic, they don't yet have C++ 11 era smart pointers for example.

In practice, unlike Linux the Haiku kernel has a very 1980s attitude to hardware, it's big on "probing" at boot time for devices, like DOS would have, making it a poor fit for modern intelligent peripherals. As a hack USB is treated a bit differently so that at least it has some sort of "hot plug" like a 1990s PC. Where Haiku tried to go beyond probing they chose something very strange, they focus on capability discovery. So Haiku's thing is, you want a sound device, lets look for a sound device, I can't see one, give up. In Linux, discovery is driven by the peripherals, so this is a PCI controller, let us explore the PCI bus, OK there's a USB controller on it, let's explore the USB bus, OK there's an Intel HDA controller on it, let's explore that, it's a PCM output. We can play sound through that. Haiku's approach might fit well in some other universe, but the Linux strategy matches how your hardware actually works in our universe.
You can easily fit 128 bit addresses into an IPv4 header - or you could in the 90s, before filtering out IP options became more widespread. See in this thread my comment on how you could arrange the header and address to make this work.

Legacy systems will route based only legacy part of the IP - that's the whole point of a backward compatible extension - and you will see the benefits of the extended address space when major infrastructure upgrades, just like in IPv6. The key difference is that you don't have to maintain two stacks, 128 bit addresses are enabled by simply upgrading existing IPv4 infrastructure with zero operator involvement: you upgrade the software on your IPv4 server and it's suddenly reachable by clients with addresses outside the IPv4 range, with the only condition that all intermediary routers preserve IPv4 options.
Or at least seek out different perspectives. HN is very rationalist/materialistic, and it won’t have the most useful wisdom for everything under the sun.
It is interesting you wrote <<house pricing>> when the post above specifically mentioned Adelaide, Auckland and Wellington. Compare Tokyo house price inflation in last 10+ years to those others. Tokyo is a steal by comparison. It is a myth that Tokyo is still crazy expensive like in the 1990s. And when publications like The Economist talk about housing prices, they are looking at how senior executives live in the center of the city. They are not looking at middle class housing, which is in abundance throughout most of the city.
Fermi's Ghost
Yes, it is, though strictly speaking it’s not a ‘language’ in the traditional sense.
"Did you know.." refers to before you read the question.
> twice as much to go wrong

Actually it's more than that, given that extra services like DNS are pretty much required these days and that DHCP has been replaced with two things, RA and DHCPv6, instead of just one.

As a concrete example, I run split-horizon DNS for an internal service I want Let's Encrypt certificates for. This was trivial to set up and worked great from my desktop computer, but for some reason my service didn't work with my phone. Turns out Android refuses to use provided IPv4 DNS addresses if it got allocated an IPv6 address, and reverts to Google's own DNS servers.
Any kind of reform is misrepresented as "100% open borders".
It's a grid, but with variable costs for entering each cell.
Strange language choices for a Rust propagandist's GitHub repositories: https://github.com/borud?tab=repositories
The codebase is from at least 1996.
This should be further up. The title is definitely wrong and misleading. "Improving my shortest path algorithm with Dijkstra's algorithm by a factor of 2700!" would be more accurate.

The author is an undergraduate student so probably just missed that part about Dijkstra's algorithm, but the title should be changed nonetheless.
land is a fixed resource, and new property is pretty predicable when you factor in planning law.

speculation in property and asset price inflation in this asset class has pretty much universally been a disaster for any change of a coherent, developing and fair society.

It's contributed massively to generational inequality, which has intern massively effected our politics. It's contributed to falling birth rates. It's facilitated organised crime both domestically and caused instability internationally . Plus every 20 years of so it completely crashes the whole economy.
I come to HN because of the wide variety of in-depth content. Not everything I read is related to tech, and some articles I can’t fully understand, but that doesn’t make them less interesting. I believe everyone has interesting stories to be told, but they may not come up often in conversation. As others have mentioned, people use small talk because both sides can contribute to the conversation.

It’s one thing to want to discuss all these interesting things you’ve read, it’s another to expect everyone to be interested in the same things as you and turn away from them.
Show HN: Happy New Year 2022 in Java