skysight-inc/HackerNews huggingface dataset:
> What if you don't have an event loop though?

You can use my second-favorite technique: dedicate a thread to signals. Block the signals of interest, keeping them queued rather than running signal handlers. Do this early in main(), before spawning any threads, so that they'll inherit the block. Spawn a thread which dequeues in a loop via sigwaitinfo or sigtimedwait. Signal handling without a signal handler!

> Roughly? What are the differences [between the self-pipe trick and signalfd]? The most obvious to me is the fact I can read siginfo structures from the file descriptor.

That's the difference I mean. If you want to get those from the self-pipe trick, you need to do it yourself, dealing with the platform difference crap this article describes. Additionally, if you write more than one byte per signal, you'll have to be careful of half-written messages, since your signal handler can't block for capacity. (Why? It may be blocking the thread that does the reading, so it'd deadlock.) Maybe you'd have a separate buffer for the leftover part that doesn't quite fit, or ensure your your message size divides evenly into the pipe buffer capacity (see F_GETPIPE_SZ), or drop messages if there's insufficient capacity (use FIONREAD; the capacity shouldn't go down unless you're using the same pipe for multiple signals and don't have them masking each other out). Stuff like this can get complex but the basic technique of just ensuring ctrl-C reaches your event loop isn't that bad. You have to be very careful in the signal handler, but it's like five lines long, so life goes on.

Another difference is that installing a self-pipe handler lets you see the previous handler (if any). I've heard of chaining handlers to address complaints like kstenerud's about libraries. I've never actually wanted to share signals like that, but it's something one could try. Caveat: if you also want to uninstall signals, doing that out of order wouldn't go well.
This is the digital version of "Flag-jacking" where a traveler pretends to be from another country. In it's offline form it's also usually US citizens pretending to be Canadian.
You still have PEBKAC but it's easy to find because a null can not cross the method boundary, so no snowball effect.
Do traditional iTunes purchases also get the better sound quality?
The downside is that the 11 million people in the state who don't live in NYC might be upset about paying for the transit of the 8.4 million who do.
> Imagine spending your short life, trying to [show ads to] random people around the world.
Supreme Court takes up major abortion case next term
TODO: Automatically create tickets based on TODO comments.

We'll get to it. Someday.
> If Apple can keep their momentum going year over year with CPU improvements

I’ve been blown away with games running on M1. If Apple could up their GPU game as well, that’d be really cool.
But the question is do they enjoy the book with excellent typography because they're told it's excellent or can they perceive the higher excellence and derive enjoyment thereof.
They're in Russia (and potentially neighboring countries), though. They'll almost certainly face absolutely no repercussions from anyone or anything. That's why they're doing it. Russia's policy is to not prosecute or address these unless Russian (or sometimes allied) citizens are affected.
I wrote the post this article is attempting to rebut. You may be interested in (or infuriated by) a follow-up post I wrote:

https://latacora.micro.blog/2020/02/19/stop-using-encrypted....

I think this critique is pretty funny, in that it tends to confirm my complaints about PGP while pretending it's doing something else. A particular favorite part for me is when they point out that their local PGP installation doesn't include CAST5 --- but does include 3DES, the canonical insecure 64-bit-block cipher.

I would generally caution people against taking cryptographic advice from people who write things like "the author does not understand why authenticated encryption is not used or even required for the things that PGP is normally used for." As a general (and often surprising) rule, it tends to turn out that you need authenticity in order to even obtain confidentiality. There's a whole "doom principle" about this.
Is this a reason to not use it at all, or a reason to ensure the environment is properly tuned if you do use it?

Seems your conclusion “DON’T” implies the former, but this seems unnecessarily extreme.
On my end I'm bombarded by these "start an online business" ads that seems to grow like weed.
Do you have Apple Music disabled in the Music app? I don't subscribe to apple music, and the link originally didn't work for me. After I turned "Show Apple Music" back on, the link worked.
It’s on the front page of the Financial Times, the story was originally reported by the Wall Street Journal, this is not some Gawker-like story.
The problem was discussed quite a lot around the introduction of pidfds:

https://lwn.net/Articles/773459/

https://lwn.net/Articles/784831/

In essence it's a classic TOCTTOU.
https://www.sciencedaily.com/releases/2019/10/191003111753.h...
Not OP, but generally because they aren’t doing the work I need them to. In my experience some folks literally don’t know what they’re supposed to do to get started or get stuck on small tasks. Micromanaging is a way to get past those blocks. That said, I absolutely hate doing it and it runs counter to my entire people leadership philosophy (it’s a waste of time for me and condescending to the employee). But at some point you have to get work done, and if that takes micromanagement, so be it.
Nested chatroom hierarchies with Matrix Spaces
Page Title Icon Everything about Google SandBox – How to Rank a New Website
NetBSD 9.2
Twilio Acquires Ionic Security to Provide the Trusted Customer Engagement Pltfrm
> So, what do you do to build up trust? You talk.

What do you do when talking leads to them saying "I understand, next time I'll either get it done faster, or let you know when I realize it's gonna slip" but then what actually happens is that it slips without them giving you any updates again after all? Repeatedly? Talking doesn't build trust when the actions don't match the talk.
Yes, but in english it's simply used to mean as outcast instead of all the social connotations that it carries from it's originating language Tamil.
Can you tell us more about the key management you sovled for the internal CI? Sounds like you needed a CA?
It's also the case in the US too:

https://en.m.wikipedia.org/wiki/Political_appointments_in_th...

It's pretty clearly established at each agency which positions are turned over when a new administration gains power and which are protected as non-political, and this interacts with the formal rules (e.g., you need cause to fire non-political positions but not political ones).

Perhaps the author of the post is arguing that there should be stronger checks and that in practice the political influence extends below the nominal line, but he's wrong if he thinks this is somehow ignored by statute.
If we’re in a situation where streaming music goes away, then we’re also likely in a situation where having CDs doesn’t matter.

Also, all the people holding onto their 8-tracks are definitely thinking they showed all of us. /s
But that needs a JVM (and maintenance of that). Which is why redbean/cosmopolitan is so extremely clever.
Well, is the converse true? Are the packages with high TODOs the dirtiest packages that you least enjoy working with?
Am Russian. This made me smile.
> My life is too short to put up with being treated like a slave.

> logicslave 2 minutes ago

That made me chuckle. On a serious note though, why not start by talking about it first? Why not say what you're experiencing, how it makes you feel, and see how your manager responds? Unless you work in total isolation, which few of us do, we have to get along with other people. And talking about things usually is the way to go.
I love the fact that Apple prioritizes the human over the machine. I always felt that iPhones and iPads felt faster than desktops. I reckon the QoS strategy is the reason.
Is Mp3 320kbps Transparent?
US laws and case precedents says otherwise. If it's in another country, especially in EU, this is frivolous but US IP laws and case precedents are messy as hell. They could lose this case, but the legal bill is worth it as it allows them to allow future lawsuits which misuses trademark homonyms in a genuinely damaging manner to them (like for example a game engine that sounds like "Unreal") since the defendants can't use Nreal's trademark as something they have deliberately left undefended and argue that the "Unreal" has genericised enough that they should use a similar homonym.

Similarly, Epic haven't defended their "Unreal" trademark in China against Nreal because trademark laws there are actually sensible: sure, if someone counterfeit their engine it is unlikely that there would be a case against it (which contrary to first impressions counterfeiters tends to be a small operation and can quickly shut down when there's signs a legal trouble) but if a Chinese company flagrantly displayed the Unreal trademarks against Epic's wishes, they can sue it (and it happened already and prevailed a couple of times there).
I was going to comment without reading TFA. I'm happy I read it because it says the same I was going to write :)

Just one nuance from experience: sometimes the micromanager tries hard not to seem like one, even to himself. I had a very humble, very caring micromanager that praised my technical competence and beat the bush for a long time but eventually second guessed everything I did.

I have my real name in my profile here so I'm not going to comment on the last straw.
You can always build headless blinkenlights https://justine.lol/blinkenlights/index.html (part of the cosmo codebase) for aarch64 or whatever and use that to simulate ape binaries. If you make -j12 MODE=tiny o/tiny/tool/build/tinyemu.com it's 191kb and that simulates the whole x86_64 ring 3 architecture up to ssse3, plus enough of ring 0 currently for the cosmo codebase to have metal unit tests. The APE blog post talks about the possibility of embedding something like that inside these x86 binaries. So if you feel really strongly about non-x86 as many of the people in this thread do, then 90% of the work has been done for you. I haven't taken it 100% of the way there since I personally don't need non-x86 support.
It's still just celebrity news for business people.
I think "unfixable" is in the eye of the beholder. A lot of these design choices make a lot more sense if you believe that complex Unix applications are supposed to be built from multiple loosely-coupled programs that perform exactly one task each, and communicate by piping data to one another. I think the two design decisions discussed in this article only create problems for developers who write programs that do "too much," such that the programs can no longer make best use of the OS facilities.

> Unix signals

Unix signals are an asynchronous best-effort form of out-of-band IPC. Because the programs that make up your Unix application already use pipes for IPC (which are synchronous and reliable), the role of the signal handler in a program would be to either absorb the signal by taking some localized action, or translate the signal into some piped IPC message to other program(s) in the application to consume and handle.

It's been pointed out elsewhere that threads and signals don't play nicely. But that shouldn't be a problem for a multi-program Unix application -- you'd keep the multi-threaded logic in a separate program(s) from the signal-handling logic, and have the signal-handling program forward the multi-threaded program the signal data in-band, via a pipe. For example, you might factor the application into a supervisor program and one or more subordinate programs (which can be multi-threaded), and have the supervisor intercept signals and route the relevant IPC notification to subordinates via pipes.

> Unix permissions

The "one user and one group" model for files stops being so limiting if you can make it so the different programs that make up your application run as different users and groups. For example, a "logger" program in your application would have a separate user/group ID than a "database" program, and in doing so, ensure that the "logger" program can only access log state, and the "database" program can only access database state.
I've had a similar thought: what consequences might there be from years of institutional classroom based learning on human development? Are there similar rates of ADHD in non-institutional learning? How do homeschooled kids, alternative education, or remote bush/tribal people compare?
> I have been working with Bazel in my personal monorepo (~6 months now), and the fact that Justine, someone I believe knows Bazel/Blaze well, uses GNU Make, makes me re-think my decision: perhaps I should re-consider it. I have quite a few issues with Bazel, which require significant engineering hours to overcome, whereas I could just use gnu make and solve it quickly.

It simply represents different tradeoffs of convenience vs. correctness. With Bazel, you get correctness but you pay a complexity price.
Why is this important? What does it enable that Erlang and other actor implementations cannot do?
That really confused me until I discovered that Macs had something called a "butterfly keyboard" as well. At first I thought you switched to Thinkpads in the mid 90s:

https://en.wikipedia.org/wiki/IBM_ThinkPad_701
Yes, this is a problem Signal was designed to address.

It's interesting to note that many other secure messengers don't handle this much better than email does; they store serverside contact lists, so when you sign into your account your buddy list is immediately populated. Which means they're storing a graph of who talks to who, in a centralized location.
This was a major plot point of the Godfather. Don Corleone wants to stay out of drugs to keep their reputation with police and politicians.
Interactive Car Timeline
A look back to concurrency via context-free grammars: Petri Nets (1999)
Both look pretty well maintained to me. Just like any other language (including Java), there are tools which are more or less active depending where users are concentrated. Most JVM developers I know prefer the IntelliJ Platform, so it's not surprising to me that's where most of the development effort is concentrated. Still, developers have their choice.
Nobody says that.
Elevator pitch: It's not the principle-agent problem, it's the principle-agent solution!
Power consumption is a good point. I wonder what the M1's power consumption is during those 19.7 seconds of compiling ripgrep compared to other platforms.
> I was the happiest boss when I could let people just do their thing and come back with great results

This is decentralized command, and really the best place to be. That's why I believe being a leader in software dev. is really about serving the ppl under you - not the opposite.

I think it's about balance:

I will micromanage new hires initially, so that I can ensure they are sticking to SOPs, code standards etc. and developing the habits we need to be successful.

After awhile, the training wheels can come off and you can give them ownership of larger and larger stakes in projects. They'll stumble once in awhile, but chances are that goes back to something you (leader) left as ambiguous - or that they genuinely didn't know.
It’s not that easy. You can’t secure Bitcoin with a lottery run on Bitcoin, because then you could forge your own tickets and forge the drawing, too.

The proof of stake proposals don’t seem to work that way. They seem to be more a matter of stakeholders having machines that vote about who is trustworthy.
Where I work, Jira workflows are owned by a "scrum master" whose job appears to alternate between creating superfluous processes for every new problem encountered, and, optimizing the overwhelming large number of processes slowing everyone down.
Supply and demand doesn’t preclude one’s actions from being predatory. And just because one agrees to a contract doesn’t mean they understand what’s in it. Payday loans are extremely predatory and hide the extreme interest rates as best they can. Not to mention the fact that when one is desperate, they do what they can to survive at the moment, ignoring the consequences of the future.
Serious question: If you are really paranoid about getting hacked, or you're operating in an environment that requires hardcore security, wouldn't your first choice of operating system be OpenBSD?

I have often read about how secure OpenBSD is, but I've also thought that you give up a lot of convenience in using it. I don't think my circumstances would justify switching to OpenBSD.
I don’t work as a Designer but I do dabble in web development and design in my free time.
Would gladly take a look at some designs and lend my eyes for some critique/advice.

Any way to contact you?
Some people don't have their own drive and rely entirely on expectations set by leaders. Specifically, they will say they're working on something and might even get it done but they could have gotten it done faster and possibly better with at worst micromanagement and at best genuine coaching.
I'll just leave this here... https://www.eurogamer.net/articles/2011-02-21-the-boy-who-st...

"Have you any idea how lucky you are that we got to you before you got on that plane?"
I used to sell a lot of shareware software, priced around $15. For Russians it was much cheaper: 200 RUR, sent by postal mail transfer to my grandma who still lived in Russia. She got a small stream of income from it (negligible by USA standards), to augment the laughable pension.
Yeah, I guess economy of scale means that you can manufacture 1,000,000,000 identical MCUs which are flexible and multi-purpose. Up to the point where you can't and it turns out some (most?) of them can be replaced by simple circuits with a few components.
Because iTunes doesn't support FLAC.
i don't buy there will be no research. no trials/commercialization maybe.

Once there is enough research, you can have grey-ish market commercialization.

cancer immunotherapy works, and at times (maybe even often) is curative. Same with stem cells. Zolgensma, a one time cure that costs 2 million dollars, also exists.

Public goods funding as a thing also exists.

I'm not so pessimistic about it. There is still a profit incentive.
Well, they’re two different things. AMQP 1.0 is everyone to everyone messaging where every party can be a consumer and a server. RabbitMQ, traditionally, is a queue. You add a message, you take it and lock it, if no processing confirmation, it is released back for someone else to process. Kafka is an append only log. You put a message in and consumers just roll over them. Rabbit/amqp is random access, Kafka sucks at random access. With amqp, you’ll have hundreds/thousands of queues, this may be difficult with Kafka.

You’d use Kafka more as an unbounded buffer and build different paradigms on top of it. It not unusual to ingest 100s if mbits of data into kafka, potentially saturating the network while also reading that much out. Amqp is better for large number of queues where each queue has less messages in. Think mqtt, websockets - many, many consumers.

It would be reasonable to use both next to each other.

But I’d never go for rabbitmq. I’d go for azure servicebus or artemis with qpid.
Asian people could shop at other stores if they wanted to, but Black people may have/historically have had reduced access to 'conventional' credit.
Could this be used for GPT style code generation?

How would that effect the job market for human software engineers?
Thanks for the information. Would you mind elaborating on what made things "really, really, really messy"?

Our use case is fairly typical, basically an SPA doing the heavy lifting, an API on the back end to support it, and then some largely static marketing pages. There is a potential fourth aspect if we want to customise any of those back end pages depending on who is logged in, for example to personalise help pages with the user's own details or to host some account management pages separate to the SPA.

Next is under consideration because our SPA will be React-based, so being able to share components and styles for the rest of the site could be quite a time saver. We're reasonably sure we want to use some Node-based back end for this project, because that would allow us to share substantial functionality between the SPA and API implementations, but this would still apply if we used Express or another alternative to Next.

It looks like the SPA and static pages wouldn't be a problem with Next in your experience, but maybe there could significant problems we haven't anticipated so far with using Next for the API and/or with using server-side rendered but not entirely static content?
That’s not true. From Amazon:

The maximum bandwidth of a Sidewalk Bridge to the Sidewalk server is 80Kbps, which is about 1/40th of the bandwidth used to stream a typical high definition video. Today, when you share your Bridge’s connection with Sidewalk, total monthly data used by Sidewalk, per account, is capped at 500MB, which is equivalent to streaming about 10 minutes of high definition video
I like this idea, but I would add that my preference for scenario 2 is to add HACK (or FIXME) along with the explanation instead. This way it is still searchable, but you make it a bit more clear that there is no obvious fix at the moment.
http://blog.netbsd.org/tnf/entry/netbsd_9_2_released
The best time-travel show of all time is streaming for free right now
I tried to set up PGP on a yubikey and use that for SSH encryption, email signing, and other things. In the end PGP made is so uncomfortable that I just stopped. PGP may be a secure piece of software (I don't know enough about this to have an opinion), but it's not a usable piece of software.
No stereo with the DJI goggles but there are some that do support it. There is enough reference info in the relative motion of objects while you are moving to create a 3D space in your mind. This instantly evaporates when you stop moving, however, particularly when near foliage.
I haven't seen anything off-the-shelf, but I think this would be a really fun thing to set up. Maybe with a wider camera spacing to get some depth perception even at longer distances.
AFAIK, login shell can be thought of as the default shell anytime you start a shell.

By default your terminal program uses that, but most terminals let you override that to be something else.
It almost never resolves. Ive been doing this for ten years now. People accept too much abuse from their employers, and if more just simply walked out on this behavior then we would all be better off.
Show HN: I am building a new Scrum Project Management App