skysight-inc/HackerNews huggingface dataset:
There is a trick to get rid of the wrap-around test. Use modular arithmetic (best if ring size is a power of 2, then even when the integer wraps everything still works):

next_write_idx = write_idx + 1;
if (next_write_idx == read_idx) return full;
ring[write_idx & (RING_SIZE - 1)] = data;
write_idx = next_write_idx;

This eliminates one possible incorrectly predicted branch and allows you to use all slots of the ring. The original code always leaves one slot empty to avoid the ambiguity between empty and completely full (where in both cases, the indexes have the same value). This could matter for small rings.

The way to think of the indexes: they hold the number of items written to or read from the ring since reset.

I guess a similar optimization to the cached entries is to pop as many items as possible before returning:

local_write_idx = write_idx;
local_read_idx = read_idx;
while (local_read_idx != local_write_idx)
process(ring[local_read_idx++] & (RING_SIZE - 1)]);
read_idx = local_read_idx;
return;

This has other advantages: the ring read is a tight loop and you are repeatedly calling "process"- the working set (the cache and branch predictors) will be all set up for it after the first call.
A strong second to this, it was going to be my own comment ;-)
right (authorized_keys ignores blank lines and comments)
Hi, author here. There isn't any official canonical documentation that I know of, outside of the individual man pages. This was a list of commands I've been maintaining for myself over the years and thought it would be useful to share.

If you want more like this, I also have another page full of lesser well-known macOS tips and tricks: https://saurabhs.org/macos-tips
There are many facets to security. I would not like someone to have shell access + bash, curl, awk, jq in a container that has full network access to sensitive systems in my applications both upstream and downstream.

As per the dependencies of important projects: yep, I read their release notes. And since I do no like to do it, I try to keep them to a minimum, unless it is a prototype or a research project.

I get everyone has his sensibility, but please next time try to respect those who have a different attitude. Nobody attacked you or wants to.
But they can not because RDP is only usable on gigabit LAN.
Have you found a new battery technology where that is mid the case?
Espressif publishes their own C SDK for their ESP32 products. They also support Rust development (using the mainline compiler) on some of the RISC-V modules like the ESP32-C3.
With all respect to RSS, Endless allows for users to interact with posts. Which means you can upvote and leave comments for posts on websites that initially do not implement a way to do this. Thus, you don't have to create an account for that. Besides, with custom extractors you can see posts from pages with no RSS support. Also you will be able to see trending and controversial posts based on upvotes and comments on your front page in the upcoming versions.
Anyone can signup and vote, so I assume it tends towards the majority option tbh. Seems like obviously noisy data.
Super fun. Sadly I accidentally killed Paul by misclicking while trying to simultaneously include the right elements and Roman numerals.
As in manually or https://buildroot.org/ ?
What real archaeologists think of Indiana Jones
Ideally this gets bundled in to standard mac docker so it's just default behaviour. I've spent way too many hours trying to get this - and various other "speed up docker on mac" - configurations set up properly. Could never do it. Guess I'm just dumb, but I just want to press a button or two. I'm not a docker expert - I often don't use it by choice, but have to use it in some client/project situations. It was simply too cumbersome to install/configure last time I tried (2021 and mid 2022).
my exact first thought. black mirror to the soundtrack of a photo app.
There was a scare that BSE time bomb would explode in the UK in the 2010s

As prions in children of 1990s brains would develop as they matured into adults.

Never happened...
Email alerts when air quality is unhealthy near you
> What do I need to monitor?

I think it's worth looking at those decisions as wanting to be made both top-down -and- bottom-up.

Top-down as in "start from what makes the business a viable business and then analyze downwards from there" which gets you things like user-facing site/API availability, performance, error rates etc. (and maybe things like per-user usage rates depending on what you're doing and what your business model is).

Bottom-up as in "start from what makes the infrastructure exist at all and work up from there" which gets you things like disk usage, RAM, CPU, network link saturation - all the low level stuff that won't affect your top-down metrics until it does, at which point everything will catch fire at once.

They'll hopefully meet somewhere in the middle in a way that makes sense, and you could perhaps argue with per-internal-service monitoring as being a sort of middle-outwards, but I suspect the highest and lowest level checks are probably the most useful ones to start with and then you extend from there as you get a feel for what situations cause those to fire off and start monitoring the mid-range of the '5 whys' rather than just 1 and 5.

(I'm not sure I've made this as clear as I wanted but such is the peril of waxing philosophical about things)
Reparations (in general) aren't really about punishing descendants for their ancestors transgressions, it's about balancing out the systemic oppression and inherent handicap that is/was affecting a given population.
Granted, it's not always like that but it's incorrect to claim it's specifically about punishing later generations.

As US reparations is the first example let's use that.

it's less "screw those white people because they don't deserve it after what their ancestors did" and more "this group of people are actively struggling because some assholes decided they weren't going to treat them as people for 300 years, we as a society are somewhat responsible for that so let's try and give them a hand up to where they would have been"

Also, in case the "yes but white people struggle also" argument is in the forefront of your mind, yes they deserve help too.
Helping the lees fortunate isn't a zero-sum game.

Original sin is indeed bullshit, but that's not what this is.
I would think this might have a future as a local plugin, but there is more to laying out a complex board than routing so I see “in browser” and see science project not tool for business.
Nah https://buildroot.org/

Slackware was underdeveloped PITA back then and it is now
Plan for the worst hope for the best.
Is there any news on the self hosted opensource version of 3.0? Would love to try the Rust based engine and test it's performance.
My best, most practical, learning experiences were at the equivalent of a community college. So, seeing someone so obsessed about getting into a top university at the detriment of making the progress in education that is available to them otherwise, leaves a bad feeling.
It doesn't matter that Naples was Greek, as long as pizza as we know it today was a later invention.

During the Greek influence period there was indeed a flat bread with toppings. That was popular throughout the Mediterranean, including Egypt.

So, the question is mainly where to draw the line between what constitutes modern pizza, what constitutes pizza predecessors and what constitutes contemporary evolution of the modern pizza (e.g. pineapple pizza or deep dish Chicago style pizza, which is obviously a thing but it's also quite different from the original modern pizza).

Fwiw in recent years I'm noticing a resurgence of the "pinsa romana" which is a variation on the theme and is gaining popularity likely because people just want a bit of change.
I think the GP meant the value added by Superblocks?
Who cares. When the first silver bullet tech that appeases his requirement comes along, my blog post will require 100x improvements in productivity, reliability, and simplicity.
At least old Microsoft tried to hide or wash away their anti-consumer anti-competitive behavior. New Microsoft proudly announces it.

And this reflects on other tech giants. They understand that they're in an era of near-zero regulation and can get away with seemingly anything.
That isnt factual. https://en.wikipedia.org/wiki/GSMA

Google doesnt control RCS. Its a general format. Apple could implement RCS. At most, they are a loud voice. Any phone can adopt it.

This is completely different from a closed imessage that cannot be adopted by others. Not to mention, imessage has been pretty anti-consumer with all their security problems, inability to accept high quality video, etc... None of this is good for the consumer.

What is good for the consumer is that the color of the bubble are different, this is important for status seeking individuals who want to be part of the in-group.

Back to the parent comments, RCS is better if you want a computing device. iMessage is the best if you want to buy your way into an in-group.
Maybe a more reasonable sweet spot for (today’s) AI would be a “data sheet” expert. Ask questions like “what kind of part does X, what is the minimum volume order and unit price”.
also userify allows you to set up sudo access on some of the servers and not others, so that'd take care of the other root-access issue you have. (sudo also provides auditing/logging controls that are useful in a multi-user environment)
You should try Gentoo+systemd these days. I'm running KDE Plasma on my gaming PC, and it works pretty smoothly. Wayland still has a few rare hiccups, as I'm on NVIDIA, but for the most part works without issue.
It sounds like you're in webdev. :p (I stay away from it for an ineffable mixture of feelings I get from it that are similar to yours even though my programming career is too new to have your memories or preconceptions.) How true is this for work with legacy codebases or embedded?
this isn't quite true -- on metaculus, accounts that have a history of forecasting things well are weighted more heavily
The Turing test seems to be a product of an era where the nature and capabilities of artificial intelligence were still in the realms of the unknown. Because of that it was difficult to conceive a specific test that could measure its abilities. So the test ended up focusing on human intelligence—the most advanced form of intelligence known at that time—as the benchmark for AI.

To illustrate, imagine if an extraterrestrial race created a Turing-style test, with their intelligence serving as the gold standard. Unless their cognitive processes closely mirrored ours, it's doubtful that humans would pass such an examination
> “Windows 365 to enable a full Windows operating system streamed from the cloud to any device.”

Streamed: issue is latency of course. To feel like you're directly manipulating something, you need sub-100ms end-to-end latency.

Any device: great UI depends on form factor of the device. This is one, though not the only reason, why WindowsCE sucked - they tried to squish the Windows/Start Menu paradigm onto a different form factor for which it was originally designed. iOS and Touch ate them up.
Thanks for giving us a shot and the feedback!

We are still at day one here…lots of work ahead clearly!

On simulation: we have lots more to come here but work took a bit of a back burner as we have been focusing on PCB layout recently!

On AI: just getting our feed wet…but access to our docs is in the QA pipeline here and should hopefully land soon

Let me know if you wanna hop on a call…would love to learn more details about your usecases and how we can do better
This is a difficult one to answer succinctly, but I'll leave some quick thoughts.

One of the things that made this tricky is that we weren't just replacing some small system with a single API. We fundamentally changed the underlying architecture of the database and built it around an entirely different paradigm for querying. This is the result of building it around a columnar query engine with a database architecture designed for the cloud and object storage.

So we made a bunch of changes all at once. We didn't start out this way. We wanted to enable some things in the DB like infinite cardinality, tiered data storage, SQL capabilities and a bunch more. When we saw all that, I knew we'd be rewriting the database one way or another.

This was in early 2020. And I figured if we were going to look at some significant rewrite, I'd probably want to do it in Rust. But rewriting your core in a new language is a highly risky endeavor. Honestly, if you can figure out a way to do it iteratively, that's what I'd recommend. A big bang rewrite is the worst possible thing you can do. And it's super stressful.

But... I didn't see a way around that. So we started small with me and one other person working on it starting around March of 2020. Then we added another team member in May (hey Andrew). The three of us spend the next 6 months treating it as a kind of research project. We evaluated building it around existing database engines (like DuckDB and Clickhouse) and looked at what tools we'd want to use.

By August of 2020 we'd settled on building it in Rust with Apache Arrow, Apache DataFusion, and Parquet as the persistence format. I announced this crazy plan in November of 2020 at our online conference and said we were hiring.

Over the first 3 months of 2021 we formed a team around it of 9 people. Everyone else in the company was still focused on everything else we were doing. So the majority of our engineering efforts were focused elsewhere. I think this was critical. Actually, it was quite difficult to have 9 people this early in the project. We hadn't originally planned to scale up that quickly, but we had a flood of great people interested in joining the project (new hires and internal transfers) that we decided to go for it.

Over the next few years we kept this small group working on the new DB while everyone else was working on previous versions of the product. In mid-2022 we were far enough along to bring up the database alongside one of our production environments and start mirroring workloads onto the new DB. This was critical over the following 6 months or so.

We started getting more people from the engineering team looped into the effort in the 4 months leading up to the first launch.

Starting with a small team and scaling up as you get farther along is critical, I think.

There's so much more I could probably write about this, but I'll leave it at this for now :)
> Or is it "any waiting is bad"?

Yes, this is the problem. Waiting is always bad for productivity. Even a second is long enough to lose a bit of focus. When that stretches out to 10 seconds, it starts getting tempting to, say, check Hacker News and lose your train of thought. I believe that most of the programs that I might be tempted to write in rust could be written in an alternate language with a compiler that is up to 100x faster. Of course this hypothetical language would have to be simpler than rust and would lack many of its features. As it currently stands though, I believe that it will be impossible to make the rust compiler 10x faster, let alone 100x faster so it would be nice if there was more effort to design alternative languages that build on what we've learned from rust to make something better.
Looks great, what is your tech stack for building this ?
> Ok?

You referred to me as a kid, which is just generally insulting.

> Just say that next time instead of trying to police the boundaries of the conversation like this.

Go read the first line of my first comment you responded to and not just the half sentence you cherry picked in your first reply.

Here I grabbed it for you:

"I don't think I'd put stimulants in the hedonistic escapism bin, at least not for people who may be frequenters of this site. If anything the people using them are trying to escape less.

I set the bounds I'm applying to their generalization in my first comment. Yes I disagree with the generalization as applied to the hacker news crowd, known to be industrious, innovative and business focused.

You chose to reply about the generalization, I continued to reply guided by my initial comment and the bounds I set. I've been consistent in my argument and bounds, you chose to ignore it and reply to the generalization.

I've been entirely consistent and I even said it upfront.
Fully agree!

It’s something we are working on among other things
"overall productivity" isn't necessarily the bar. If you're spending 1 hour a week managing git and you used to spend 10 hours a week managing zip files, it's an order of magnitude improvement.
Your sentiment confuses a couple of things.

1. "Openness" is the personality trait of the 5 factor model most closely associated with drug use. Openness also most closely correlates to intelligence amount the 5 factors. Those are coincidental factors not suggesting more intelligent people favor drug use disproportionately.

2. Risk taking behavior, or more precisely actions benefiting from exceptionally low neuroticism, is not a personality facet. Its a result of faster than normal gamma-globulin uptake in the amygdala. Such people do not associate a fear response to stimulus associated decision criteria and as such prioritize things differently. These people tend to have a very low incidence of drug use because they are less capable of feeling thrills and fears.
Anyone can forecast, sure. But there's a large body of research on the accuracy of aggregated forecasts and on the ability of forecasters to become more accurate with practice. (Thinking here in particular of work by Mellers & Tetlock.)

Metaculus provides a transparent track record of community forecasts here: https://www.metaculus.com/questions/track-record/ It's very difficult for any one person to consistently beat the community.
Build Enterprise Software with No-Code Thanks to Bubble.io
I wrote an article about Bubble - https://bubble.io and how it's an incredible platform that empowers users to build powerful web applications without coding. Its intuitive visual interface and extensive range of features make app development accessible to anyone. The question is, how do I add enterprise features to my app? Adding plugins to your app is a breeze with Bubble.io's plugin marketplace, where you can browse and integrate a wide array of pre-built functionalities to enhance your application's capabilities, saving you time and effort in development while expanding the possibilities for your app's functionality. Unleash your creativity and bring your ideas to life!
Wait, no log or anything besides the sharing with the world that he did it?
How is this different from TutorAI ?
dpkg had a bit weird experience, because the "easy" way of building (binary)package is literally "just put files that need to be deployed in one directory, and some metadata in the other and run a command to package it", i.e. extremely easy and entirely independent on how you build it.

But the "proper" way includes million scripts and checks that make sure your .dpkg is "distribution grade" and it can be quite complex
Spammers have more money than poor people, so congrats you've just censored 90+% of the world.
UBS Planning to Cut 20k-Plus Jobs from Credit Suisse's Work Force
What on earth are you trying to say here?

I'm just saying that Rust fans are currently self-selecting by choosing to work on Rust projects which skews the satisfaction numbers against other languages.

That doesn't have a lot to do with previous experience - with Rust being so new, __MOST__ developers, even fans, don't have much experience with it.
Can I I stalk another browser on ChromeOS?
A couple of built-in I didn't see:

macOS software versions:

sw_vers

macOS hardware overview:

system_profiler SPHardwareDataType

Convert binary plist to xml

plutil -convert xml1 -o out.xml in.plist

A couple of lesser known, but also handy ones to install:

brew install dark-mode

brew install duti

> screencapture - take screenshots

Big fan of screencapture. I wanted something similar but for capturing window videos, so I built https://github.com/xenodium/macosrec

I often wrap command line utilites with Emacs functions (don't need to remember invocation flags/structure but also enables batch invocations) https://xenodium.com/recordscreenshot-windows-the-lazy-way
For landing I wonder if you could fold the wheels in first and just fall back into driving stance.
The answer is obvious: by investing in supply during a downturn you actively help lower prices, which is the opposite goal of investment.
Sounds like my kind of Walmart? Seriously? Or was it just Kawaii sounds of War?
Do you believe given Docker’s history of poor strategy (e.g., monetizing late requiring changes that negatively impact reputation such as docker desktop and hub), communication (e.g., the short notice changes a couple of months ago around free groups resulting in backlash) and in some cases destruction of successful businesses (see other comments in this thread) that this will result in a positive result for end users?

I hope you made bank while the ship continues to sink.
Quite possibly yes. I have always been trying to synchronize computer clocks. I was imagining the ms level solution to be plain jane NTP over the internet (which is really quite impressive in its own right). The ns level solution requires a GPS module, but in my lab I am also using a 10MHz OXCO for hold-over as my GPS reception is marginal and I lose it several times a day. This adds a bit to the cost and complexity. Getting ns level timing distributed throughout an ethernet network using PTP is on my list, although my current Raspberry Pi pps solution does not support PTP. I am hoping to find a single board computer with a decent GPIO and an ethernet controller that supports PTP.

Regardless, this is a very deep rabbit hole to go down. For the right kind of nerd, it can be a fun and rewarding experience. :)
We'll be releasing an alpha of InfluxDB 3.0 open source later this year. I'm actually personally on the hook for this one while our engineering team is focused on our cloud and on-premise commercial offerings.

So it's planned, but it's going to take a little time.
The person he's replying to seems to have a faily clear definition of wokeism.

He think "wokeism" is what the American establishment use to undermine Trump:

> NYT is transitioning from wokism to statism.

> Because the US establishment doesn’t want domestic chaos anymore. They’re in control.

> So you’ll see less riots calling for abolishing police, more funding for riot police.

> Less on toxic masculinity, more on troops for foreign wars.

Which is refreshingly clear, even if just as out of touch with any kind of recognisable reality as most invocations of "woke" from the right.
All of those "very" "useful" in huge variety of CS related jobs /s
I got to do an independent study project junior year of highschool where I build the LFS project and went on to write my own (super basic) source based package management system. Was hands down the most valuable learning experience I've ever had. I highly recommend going through the process once if you want a better understanding about Linux/operating systems/compilers/toolchains!
Of course you are right. It won't work with them then. This feature can never work 100%. The point is to have less false positives.

Maybe the feature should ask the user: where do you put the phone normally? handbag, pocket; where while driving? while riding a bike? and the software would use sound, light sensors, based on the answers, etc.

Otherwise simply stop this feature, since it is more trouble than it is worth it.
I think it's at least a bit of a compliment, since the majority of Americans (or so I think?) view politeness as a positive, even if they don't practice it much themselves.

But I think it's mostly just an observation: "Hey, that's really different!"
I use the CLI as well, but on MacOS, you need more plumbing like a Linux VM. OrbStack (and Docker Desktop) provide this plumbing in a single app package, so the CLI can actually work, whether you prefer a GUI or a CLI. (Or docker-compose, as I use most often.)