skysight-inc/HackerNews huggingface dataset:
I have to agree. I tried getting LogSeq approved at my workplace for use, and part of its denial is that LogSeq's written privacy policy is so very bad. I hope the team can find someone to improve it.
Needs asynchronous libs to adopt it
"how many emojis on x" loads in 5 seconds
https://search.brave.com/search?q=how+many+emojis+on+ios

the emoji list is the #1 match on brave
"Through this magazine, we are going to demonstrate the principle of democracy as it applies to technology. One person, one computer"

Funny how times have changed and all persons are on the same computer
I rather have a full fledged car infrastructure and excellent public transport.
Riding the high-speed rail in China made me so envious of that setup. If we had that in certain locations in the U.S., it would be absolutely amazing. You just show up a half hour before your train (gotta get there earlier in certain huge stations) and basically walk on. The train ride is buttery smooth with a lot of space, and you can order food from the next station to be delivered to you if you don't want any of the food available directly on the train. And with USD, first class and the even higher end business class is not just attainable but cheap. The equivalent train rides with Amtrak in the U.S. are twice as long and several times as expensive and uncomfortable.

Edit: Did some searching and found the North Atlantic Rail initiative. According to the article I read, it would take 20 years to build. What a joke. What is going on in the U.S. that we can't do this stuff?

https://secretnyc.co/empire-state-building-lights/

https://northatlanticrail.org/
The problem with modifying javascript is that it is very dependent on the website so the modified version can stop working at any time.
I can't write a javascript program for a website and then use it forever just like I can write a text editor and use it forever.
Event home page, incl link to livestream on YT at https://backyardultra.com/
No, I gave reasons for my preference.
> Despite decades of development, only a handful of routes in Europe operate at anything like airplane-competitive speeds, which for all but the shortest routes, require > 300 km/h or > 185 mph.

Not really, given massive fixed cost at airplane terminal and airports being typically harder to get to than train station.

When I was flying this summer, I was asked to come to airport 150 minutes before planned departure.

200 km/h train would still be faster for distances of about 700 km.

And even for longer routes benefits of comfort, larger possible baggage, lower stress and so on would make it a clear winner.
There is some connection to object-oriented programming and desktop GUI paradigms, that I remember were written about in computer magazines at the time, but is never mentioned now. Like, if you want to delete this document, you drag it to the trashcan! Object oriented!
Am I right or do I remember it wrong?
150k is still a great wage in most major US metros. The bay is expensive, but this is still a top-10% compensation package compared to the general population.
Strongly doubt it's Electron. Opening a Logseq vault in Obsidian feels faster, and Obsidian too is Electron.
My audience is usually made up of programmers.
I'd lump all the other fusion startups into the same category as incoherent nonsense like solar roadways as they all rely on recycling energy through a steam turbine (which is already prohibitive even if you had free heat) in order to power their rube goldberg machine and somehow that's supposed to be 100x cheaper than existing steam turbines when excluding the fuel.

I was wondering if there was some incoherent nonsense I'd missed.
Am I supposed to be able to control or even know the destination, or is that only revealed by watching it run for many days?
Any major product at Google has an on-call team with offices in multiple time zones. Typically, two engineers from different time zones will be on-call at any given time—they switch back and forth between primary and secondary, so nobody is primary on-call during the middle of the night, local time.

For example, you might have an SRE team in Mountain View, and an SRE team in Dublin. Maybe the engineer in Mountain View is primary on-call until midnight, and then it switches to the engineer in Dublin, who starts their shift at 8:00 AM.

If it’s getting code changes, it’s not getting code changes right now. The software engineers may be in Mountain View, but they won’t patch this and push out a new version during the night. Someone (read: an SRE) may change a configuration or push out a temporary fix now, and any code changes will only go out after significant testing. Generally speaking, you don’t hotfix high-profile production services. You rollback, you set up filters, you disable features, you turn off component services, you run in a degraded capacity—but if you want to actually change the code, you take your time and do it right. Rushing out a code change in the middle of the night is liable to make things worse, and nobody wants to do it.
CA HSR is indictment of California, not of high-speed rail.

CA HSR is uniquely badly mismanagement and operating in runaway NIMBY land.
>priceless

not really

environmental impact has limited costs, and investing to reduce environmental damage makes sense when benefits are sufficiently large for given cost
White wheat flour has a higher glycemic index than table sugar[0]. High GI foods can lead to blood sugar spikes, potentially to ”impaired insulin sensitivity” [1], and a host of related health problems. Diabetes, obesity, etc. In a sense it’s worse than refined white sugar for many, if not most, people. Particularly those living a more sedentary lifestyle.

If you subscribe to the notion that sugar is poison[2][3], then highly refined, processed, wheat flour is also poison.

[0] https://www.health.harvard.edu/diseases-and-conditions/glyce...

[1] https://my.clevelandclinic.org/health/diseases/22206-insulin...

[2] https://www.ucsf.edu/news/2009/06/104177/sugar-poison-says-u...

[3] https://www.youtube.com/watch?v=dBnniua6-oM (see 35-39min)
The dichotomy between authoritative and exploratory science is incredibly useful, especially when it comes to public policy. But as constraints on knowledge, only Popper’s falsifiability and Gödel’s incompleteness trump it.
And aren't you terrified of eating food from a supermarket full of chemicals?
Traffic is usually only a problem in major cities and that’s about the only good usecase for public transport. I don’t want to lose the amazing infrastructure we have for cars everywhere that isn’t a major urban center.
Safety certifications tend to be blanket 'this thing is safe to treat this disease' things.

Whereas they should be 'in the last 10 years, 100 people were treated with this drug and 27% survived. 71 were not treated with the drug and 1% survived. You use your professional judgement to decide if it is suitable for your patient'.

The FDA shouldn't be doing blanket approvals or bans. They should be making the information available for medical professionals to make the decision themselves.
Possibly, but probably not. Google tends to have follow-the-sun rotations staffed by SRE as the first line of defense, with an escalation path to devs if necessary.

SREs may not have intricate knowledge of the code but they have an array of tools that can mitigate problems, and they're software engineers too, so they can debug this themselves if need be. Their focus however won't be on fixing the bug, it will be on stopping the bleeding. Typically they'll check if this is an issue introduced in a recent rollout and roll that back. In the case of Search they also have an array of tactical tools - someone mentioned that a specific website was causing this, they probably have a way to quickly and temporarily delist this specific result.

The focus will be on recovering ASAP, figuring out the details and the long-term fix later. That later can be during business hours on Monday.
Yep, it's easy to calculate the cost analysis of a train. But the numbers of its benefits aren't defined or understood since environmental impact of what they replace (car creation costs, car maintainence,road build and maintainence, fuel extraction and use). What's the economic (and environmental) cost of cars where these costs aren't priced in to the value proposition?
>I also worked on track-based transport as a levitation engineer at Hyperloop between 2015 and 2018,

That's a big red flag as anyone with half a brain knew it was bullshit.
because its fun
With respect to showing a loader, it’s a solution. Not fully sure I understand the mechanism - is it based on the class or does all content of the div with hx-trigger get replaced? Or even worse is the image still there with opacity 0?

However, this doesn’t solve the optimistic rendering situation at all. In general the approach of HTML over the wire clearly seems barred from solving that, you need a client layer for that
The Moorish invention that tamed Spain's mountains
The opiate epidemic seems to me a US-specific case of deregulation, where doctors are essentially marketing these drugs to people where they won't required and without mechanisms to prevent doctor shopping, which I guess is similar to legalization but a bit more insidious.

I would contrast that to Portugal where for all intents Heroin is essentially legal, but legal use is highly regulated and connected to rehabilitation programs.

I think highly regulated legalization of drugs > unregulated legalizing of drugs OR prohibition of drugs (which by definition is unregulated). Whether prohibition is better than unregulated legalization depends on how effective your law enforcement is. In the US, the large number of illegal drug addicts is evidence that enforcement is ineffective.

If we lived in an effective authoritarian state then prohibition would probably minimize harm, but even authoritarian states fail to stop drug use.
pretty clever narrowing down of the problem, well done
// bar.foo is number

// getFoo() returns a number

bar.foo += getFoo();

// getFoo() has a bug and now returns a string.

Nothing fails. If getFoo() had a return type of number this wouldn’t be the case.
Even ignoring the environmental impact, good train network is a benefit to a country. Too many people get stuck with the "train lines most be private and profitable" line of thinking.
Pre 1968 doesn't work
On page 5:

> To find the index of an event, the application must mask the current tail index with the size mask of the ring. This
commonly looks something like the below:

unsigned head;
head = cqring→head;
read_barrier();
if (head != cqring→tail) {
struct io_uring_cqe *cqe;
unsigned index;
index = head & (cqring→mask);
cqe = &cqring→cqes[index];
/* process completed cqe here */
...
/* we've now consumed this entry */
head++;
}
cqring→head = head;
write_barrier();

Am I misunderstanding, or is "current tail index" supposed to be "current head index?"
OK, good point
But why do this over just flying. You can show up 30-45 mins before any domestic flight and leave as soon as you land on the other end.
But.. it’s not a good alternative. This description is not as precise or as bounded as the “legalese” wording.
I think my favorite part is that this is so outrageously unheard of that the error isn't even CSS-styled correctly. Zero left margin, just up against the edge of the window. Nobody even thinks about this case of an error being displayed because it's so rare.
Are you saying there have been more than just the one referenced in this ad and the current Apple Card? As far as I can tell, these two are the only Apple branded cards that have ever existed.
When I was younger I would go foraging and I would indeed stick to just the few species of very common mushroom that grew in the woods near me, that I could recognise for sure, with very distinct characteristics.

Then I moved to another city just a few hundreds of km away, and I couldn't collect many mushrooms anymore. The mushrooms variaties were quite different. The ones I could recognise were not so common anymore, and I didn't know the other ones. I stopped foraging now, because I don't have the urge to learn mushrooms again.
In many HN publications the label "In USA" is applicable, the equivalent of "In mice" for many medical studies :)
If we're in the fictional world where any production above a perfectly constant baseline (with the occasional two month break for refuelling where fairies power everything) has zero utility, that excess is worthless isn't it?

There's only so far you can take these counterfactuals, but presumably you'd be selling it at, say, $10/MWh (because things like hydrogen are already profitable at this cost) which might cover part of the distribution costs (which are not in that model) and bring it down to roughly on par.
Two things that would make firebase-functions awesome:

1. Let us use "cloud run" instead of firebase functions. They're so easy to test (just a docker image) and the limitations on "cloud run" are far less than cloud functions (timeout, CPU etc).

2. Please develop a file system-based routing framework (like next.js) that way we can just create a file named "my-endpoint.ts" and it would be automatically mapped to "/my-endpoint" on the server...

Loved Firebase a few years ago, but I've moved away to simpler solutions like Vercel's offering
> we used to call them "Single Page Web Applications" because avoiding page refreshes was the point

I wonder if the problem was really that the whole page was reloaded into the browser which caused a big "flash" because all of the page was-re-rendered. The problem maybe was not reloading the page from the server but re-rendering all of it. Whereas if you can load just parts of the page from the server the situation changes. It's ok if it takes some time for parts of the page to change because nothing gets "broken" while they are refreshing. Whereas if you reload the whole page everything is broken until all of it has been updated.
I don’t understand the point of high speed rail. You can just show up for a domestic flight 30 mins before and you get to your destination 4x faster. The only good thing about trains are the views.
It seems that this site (emojipedia.org) broke the Google.

"how many emojis on ios -inurl:emojipedia.org"

trying to exclude other sites does not work:

how many emojis on ios -inurl:cnet.com

how many emojis on ios -inurl:wikipedia.org
From the article:

"Over longer routes, the relative hassle of getting to and from an airport instead of an HSR rail terminal is eroded by the higher speed of aircraft, even in places where the rail terminal is in a densely populated city center and the airport is way outside."

I think in the case of the US, the distance makes the difference. The trouble of checking in at an airport is factored out by the length of the journey. California to Los Angeles has a target time of 2 hours and 40 minutes. The train which I take in the UK most regularly runs for 2 hours, and that feels like a relatively long journey.

I think the issue is that in the US, most intercity journeys are much longer than this, which normalises air travel, meaning that rail ends up not getting a chance on the shorter routes on which it might be suitable.
*Usually

In practice we've seen hours long security/departure queues, having to wait for the luggage after landing, joining the wait for the expensive taxi/bus transfer from the airport, and many other issues which don't exist for train travel.

Then there's "yes you can show up 30min before, if you booked the plane ticket a week ago".

Having done both a lot, I'll take the train any time.
That depends, I don't think that there needs to be anything emoji specific (at the character level). It could be a special handler for inline results, marketing filters, etc that's gated on some variation of that string.

Might be worth seeing if there's another "how many X on iOS" that faults as well, because I would be that it reports an ISE on timeouts, and you could easily imagine some service making a follow on request that now times out.
Ya somebody is getting paged right now.
Metaverse-style avatars are now available in Microsoft Teams
Trains can be more frequent and carry a lot more passengers
I think the term SPA is somewhat confusing. Why can't an SPA, or parts of it be rendered on the server as well.
To get these "drawing" type glyphs to look good and avoid unwanted gaps etc, terminal emulators generally just ignore the font and use their own custom rendering instead.

Conclusion: Demand more from your terminal emulator, including direct support for more of the Unicode drawing characters.
"crash" here is likely just how the frontend reports a backend timeout.
searching for "emojipedia.com" breaks it

https://www.google.com/search?q=emojipedia.com
Maybe the emphasis on high speed in not necessary. People already seem to love sitting around in all kinds of environments.. bars, watching netflix, or programming for a lot of people here. What if instead of figuring out what kind of rails would be needed to move a train at the speed of flight, we figured out what kind of rails were needed to economically move the equivalent of a first class lounge from Los Angeles to San Francisco in like seven or eight hours... or maybe it's an eco cruise ship, or a new bus design. Either way, for a lot of people who board just before 10AM on a Sunday, and watch two NFL games, the net travel time from Los Angeles to San Francisco could be close to 0.. and you can't beat that.
I think fascism and racism and a lot of other ideas are dangerous and corrosive for society. Some ideas have been guilty of millions of deaths. By the time you try punishing actions, it will have been too late.

Now, the countering I advocate does not imply lack of discussion, or denial of the existance of these ideas, but unchallenged discussion, where these dangerous ideas are the only thing "right" is, IMO, very dangerous. You need people to be able to tackle with them, not protectem them like they are a shriveling violet, but this need to happen in a good frame.

I used to believe in a sort of laissez-faire internet community environment, no censorship, but just immunization by exposure. But then I saw my dad get seduced over the internet by a group of deeply illogical individuals and I do not believe this is the right course anymore.

> articulate your point of view, not challenge them.

I see debating ideas as synonymous with challenging them. How is it different in your perception?
No, no one said that but you.
The Swift code that's generated is pretty good, but I found myself pretty much immediately wanting to edit it.

I now maintain a separate copy of the templates that implemented some missing features of the spec that I needed, and adjusted access control etc to suit my needs. And I also feel like checking the generated code into source control is the way to go, if only for the build time improvements. I mean it doesn't change often enough to warrant being rebuilt all the time.
I was flying this summer in Europe and was asked to come to airport 150 minutes before departure.

> The only good thing about trains are the views.

And allowed baggage, and far more space...
"functioning" is an exaggeration. Most of the German trains are slower than 300kph most of the time. They are also often crowded, delayed or outright cancelled. They are also quite expensive, compared to planes.

I think the author has a very valid point when it comes to the cost of rail tracks. It's something the proponents always conveniently ignore. On top of that, a rail station has quite a limited capacity, especially if it's inside the city. The travel time between, e.g., Berlin and Paris is something like four to five times as long as by plane.

So unless someone develops a low-maintenance, high-capacity fast train, planes with ecofuel are probably going to win any fair competition.
Oh I’m not for one moment saying the situation now is good, or acceptable. We were discussing progress and particularly the growth of the global middle class. I’m pointing out the trend, that’s all.
I would guess it's the time that is the problem - whatever service would produce an inline answer is presumably falling over, and the subsequent timeout is reported as an error.
Read the article—the author prefaces with their experience riding trains all over the world and has worked in rail. There is a ton of detail, much more interesting than the conclusion.
A significant number of people in the HN community either have ADHD or attributes resembling ADHD.

I've personally found browsing websites or even notes in Obsidian to frequently be overwhelming. Switching to an outliner like Logseq really helps ground me and gives my brain room to realign itself on the screen. In particular, being able to click on a single bullet point and make that the app's focus is really the most helpful. If I'm distracted, I have huge struggles remembering what I was looking at before, but with Logseq I can just look at what's focused and I'm good again.

List manipulation features feels much better too. I may type a giant pile of bullets in one place and later realise I want them elsewhere. This is possible in Obsidian, but feels better in Logseq, with lots of keyboard shortcuts and mouse shortcuts available.
I did this years before io_uring, circa 2006. Working on a Linux-based networking startup called Zeugma Systems, I implemented a kernel-based logging system for a multi-process, multi-node distributed application. I started on Linux 2.6.14. When that startup folded, I think we were on 2.6.27.

The logging system was implemented in a module which was inserted into the kernel and then used the calling thread to run a service. The module provided a device and some ioctls. Processes used the ioctls to attach circular buffers to the device, which was mapped into kernel space using get_user_pages.

Processes would just place messages into their circular buffers and update an index variable in the buffer header. The kernel would automatically pick up the message, without any system call. There was a wakeup ioctl to poke the kernel thread, which was used upon hitting a high water mark (buffer getting near full). This is the basic intuition behind io_uring.

The kernel thread collected messages from multiple buffers and sent them into several destination (files and sockets).

I do not have most of this code, but some of it survived, including a kernel mutex and condition variable library featuring a function that lets you give up a mutex to wait on a condition variable, while also polling any mixture of kernel file and socket handles, with a timeout. This function at the core of the kernel thread's loop.

The nice thing was that when processes crashed, their buffer would not go away immediately. Of course their own address space would be gone, but the kernel's mapping of the shared buffer mapping would gracefully persist, until the thread emptied the buffer; everything put into the buffer before the crash was safe. Empty buffers belonging to processes that had died would then be cleaned away.

I had a utility program that would list the buffers and the PIDs of their processes, and provide stats, like outstanding bytes, and is that process still alive.

(The one inefficiency in logging was that log messages need time stamps. Depending on where you get a time stamp from, that requires a trip to the kernel. I can't remember what I did about that.)

A bit of a difficulty in the whole approach is that I wasn't getting a linear mapping of the user pages in the kernel. So I wrote the grotty C code (kernel side) to pull the messages correctly from a scrambled buffer whose pages are out of order, without making an extra copy.
Very interesting Twitter thread on this here https://twitter.com/jordanschnyc/status/1580889341265469440?...

Pretty dramatic stuff but unsure how this will benefit the US since obviously to have this much western talent and IP the Chinese weee investing heavily. Remains to be seen if the west is going to do likewise.
Yeah definitely. I'd rather take a train even if it was quite significantly slower. The real downside of train travel is the phenomenal cost.
flying is miserable unless you are first class