skysight-inc/HackerNews huggingface dataset:
I went to a shop near the beginning of the pandemic that had a bunch of stickers splayed across the floor in a confusing array and an employee who was militantly yelling at confused people for standing on the wrong stickers. It was very off putting and I stopped going to that shop, preferring others that also had stickers on the floor but with clearer labels and calmer staff. I noticed that the first business was boarded up about 6 months ago.
Isn't this the "hard part" of the job we are being paid for?
The thing is the Beatles actually wrote their material - the Monkees sang tin pan alley tunes written by Carole King et al and played by the wrecking crew. They never had management or support to do anything creative themselves except mug for the cameras. Show biz vs musicians...
They did launch a lot of careers though, like Louie Shelton's https://youtu.be/7L6Vin-5188
Note that metabolism of drugs is roughly proportional to bodyweight. A petite 100 lb person may only need 200mg for an effective dose. An obese 400 lb person may require ~4x that dosage for the equivalent effect.

The one-size-fits-all drug dosing we do in this country seems crazy to me.

"Research Chemical" drug users have developed techniques to calibrate doses of substances with unknown potency - start with ~100th of what you expect to be an active dose and then gradually double it until proper effects are achieved.

I'd imagine it would be more expensive for pharmacies to distribute drugs in this way, but allowing patients to titrate their doses could significantly reduce/avoid negative side effects from just throwing the same standardized dose at every person with a prescription regardless of bodyweight.
My argument against GC (and which applies similary to JIT-basd runtimes) is that the problems caused by GC pauses have non-local causes. If a piece of code ran slowly because of a GC pause, the cause of the pause is in some sense _the entire rest of the system_. You can't fix the problem with a localized change.

Programs in un-managed languages can be slow too, and excessive use of malloc() is a frequent culprit. But the difference is that if I have a piece of code that is slow because it is calling malloc() too much, I can often (or at least some of the time) just remove the malloc() calls from that function. I don't have to boil the ocean and significantly reduce the rate at which my entire program allocates memory.

I think another factor that gets ignored is how much you care about tail latency. I think GC is usually fine for servers and other situations where you are targeting a good P99 or P99.9 latency number. And indeed, this is where JVM, Go, node.js, and other GCed runtimes dominate.

But, there are situations, like games, where a bad P99.9 frame time means dropping a frame every 15 seconds (at 60fps). If you've got one frame skip every 10 seconds because of garbage collection pauses and you want to get to one frame skip every minute, that is _not_ an easy problem to fix.

(Yes, I am aware that many commercial game engines have garbage collectors).
Spring4Shell: Security Analysis of the latest Java RCE '0-day' vulnerabilities
(Author of the original "Log4Shell" post[1] here)

An RCE in Spring was posted[0] about last night on HN but a ton of people have been getting confused by the fact that there are TWO new vulnerabilities being discussed.

I just wrote this post up to help with the confusion around these exploits. As with Log4Shell, it's still very early and we don't have enough details to say exactly _what_ the situation is for how widely exploitable this is. With Log4Shell it turned out to be pretty freakin' bad because of all of the vendor software affected.

Hopefully with this post we can get some more eyes on this to help avoid confusing these vulnerabilities and creating a panic before we have more answers about the exploitability.

0: https://news.ycombinator.com/item?id=30851919

1: https://www.lunasec.io/docs/blog/log4j-zero-day
> easily implement for your own types

have you ever actually done that? I have, its not easy. Please dont try to hand wave away negatives of the Rust type system.
I dunno, codeine makes me love my family even more, as an anecdote...
Em and en dashes (‘-’ is a hyphen, not a dash, you bloody illiterates), ellipsis, and paired quotes.
POSIX is UNIX rebranded as C runtime for OSes that aren't UNIX.
This is very silly, acetaminophen is very effective against pain, and for many people (e.g. me) is tolerated much better, especially at higher doses, than ibuprofen etc. There is already way to much panic about drugs/medicines, especially pain meds, especially especially for chronic conditions, without further hysterics about the 'threat' of useful and well tolerated chemicals. (Not a doctor, not offering medical advice.)

>doesn't get you high

A huge point in its favor if you can't lay in bed opiated all day.
Have you given IDEs any thought?

I feel like it isn't write once run anywhere until I can use the same configuration inside the IDE, from the command-line, and in CI.

The IDE would need to understand what the dependencies are in order to provide things like auto-completion, debugging and syntax-highlighting.
One of my most memorable and proud moments was when I was a junior developer. I wrote a blog about ScriptCS and how it worked (in the very early days when documentation was sparse so it took significant research). One of the (very few) comments on my blog was Glenn Block - a man I considered a borderline legend in my .NET field - commenting very positively and thanking me for my effort. It seems so minor and silly now but it was an incredibly energising experience.

I guess people are getting the same kinds of feedback through Twitter now but it feels so much more... I dunno, inauthentic?
I wish they would follow UN borders and mark anything contested as contested. Instead of perpetuating propaganda.
I agree everyone knows YAML but its only really great as a config language, not as a general purpose turing-complete programming language. The answer here is more likely to be something like what Pulumi did
The loopstick is much shorter than a wavelength, so the phase of the received EM field is the same over its length. However, the magnetic field can induce an RF current in the loop, which is a rather long wire tightly wound over a ferrite core to increase its inductance.

The coil is shorted with a capacitor. Together, they form a resonant circuit at the desired frequency (which is selected by making small changes in the capacitor). Energy is transferred back and forth between the magnetic field of the loop and the electric field between the plates of the capacitor.

The EM field reverses around a million times per second, and so does the current in the resonant circuit.

The overall effect is like pushing a child on a swing. If the period of the swing is synchronized with the timing of the push, the amplitude of the swing will increase.

Because of this resonance effect, it is possible to transfer energy from the EM field into the resonator and develop enough voltage to drive an amplifier chain. It's even enough to drive high impedance earphones in a crystal radio set.

It also helps that local radio stations are very powerful - several kilowatts, and they are close.
acetaminophen is often put in medications because it's toxic. It's there to dissuade people from *gasp* taking too much and possibly experiencing some positive feelings or enjoyment that offends the sensibilities of decision makers. Better that we destroy a few people's livers than that those people get a buzz. (to be clear, this last sentence is not my view. I'm mocking that view)
Googling well is an underrated skill.
I seldom mention it, because gcj was abandoned in 2009 when most contributors moved into the newly released OpenJDK, eventually removed from GCC tree, and it never was as foolproof as the commercial versions.
I want a science/engineering Shift key.

I want to hold down RShift and get greek and mathematical symbols.
Yes and no. The goal of the Nutch project was simply to create a web crawler, but it hit some scalability limits. Since Google had recently published two papers (MapReduce and Google Filesystem) that were quite relevant to scaling data processing and storage for a web crawler, Doug and Mike created an open source implementation of those ideas and redesigned the web crawler to use it.

The technology had many applications beyond a web crawler, of course, but that was the original use case.
Ignoring them is unethical.
Treating them with an unscientific treatment is unethical.
In my experience, code bloat from templates is overblown.

Inlining happens with or without template classes.
> I don't know that making SerenityOS a daily driver for anyone who isn't interested in hacking on it is an actual goal for Andreas.

My main goal is to make a system for myself to use. I'm not particularly interested in working on stuff that doesn't affect my own use cases.

However, SerenityOS is not a one-man project. There are hundreds of other developers, all with their own individual goals, each putting their time and effort into making the system into something they would like to see as well.

I have no idea what will come out of this in the long run, but it's the most fun I've ever had, so I'm just gonna keep going and see what happens. :^)
here you go:

https://www.youtube.com/watch?v=uo9nGzIzSPw

https://www.youtube.com/watch?v=cAn_7vutwxM
People receptive to “pseudo-profound bullshit” show too much openness (2018)
Firefox 91.7.0esr warns of a potential security threat when trying to access this site!
There are three ways you can make an app easy for new developers to quickly be productive in... as long as deployment and code management tools are easy:

* Coaching/Mentoring - Original developers there to help

* Great documentation - App is documented, and it's easy to discover how it's put together

* Great API / abstraction - The api or structure is really easy to understand and use - this is why REST beat out more sophisticated API models. Even so, it needs great documentation to be easy to learn and build with

I think a lot of companies don't get any one of the three above right, so everything is very opaque. Also, you can't let tooling block developers from getting into understanding the code. New dev onboard times are a great way to measure this.
Losers exist. Don’t hire them
You don't see anyone who is using opioids in the privacy of their own home who aren't out on the streets, so your sampling is massively biased.

And the way we should look at drug addition with opiates isn't by looking at the homeless users, but consider the fact that we're all potentially one bad car accident away from getting hooked on pain killers, and asking what kind of support we would need to avoid winding up homeless due to that.

Punishment via the criminal justice system is what is likely to wind up with you losing your job and winding up out there in that camp with them. So how should you be treated if it happens to you?

And the glib answer of "put a bullet in my head" or whatever isn't an acceptable response. Treat the problem seriously and propose how society helps you help yourself to get clean without at trip through a homeless camp. And the people who refuse to deal with the reality that it could happen to them or engage with the problem are likely those most at risk of lacking the self-awareness to recognize when it starts happening to them.
The article articulates why it's reasonable to expect that generics would make Go faster. From TFA:

> Monomorphization is a total win for systems programming languages: it is, essentially, the only form of polymorphism that has zero runtime overhead, and often it has negative performance overhead. It makes generic code faster.
Using 3rd party software and libraries: spend hours flicking through documentation pages to find lots and lots of information, but no clarity.
this is straight out of Cyberpunk

instead of creating utopia, companies are doing anything to fill jobs and devalue our work

what are we folks gonna do when everyone turns into a js-monkey and we get paid pennies? maybe create art to entertain them?
Figuring out existing bespoke systems is what sucked the joy of programming out of my soul.
Another *monster* difference is that Dagger is (at least currently) Apache 2: https://github.com/dagger/dagger/blob/v0.2.4/LICENSE but Earthly went with BSL: https://github.com/earthly/earthly/blob/v0.6.12/LICENSE

That means I'm more likely to submit bugs and patches to Dagger, and I won't touch Earthly
Waymo has taken a responsible approach to self-driving (level 5 only, Lidar) over Tesla's collateral reduction approach. Lidar gives you exact distance to obstacles around it. Given those 2 factors, I expect Waymo to have an inbuilt hard-stop for when it is on collision course inside of braking distance.

I expect it to be friendlier to bikers and pedestrians than human drivers.

As a biker, most of close calls are due to impatient drivers who try to overtake me through close calls and when they enter turns without looking first. AFAIK, Self-driving cars do not initiate same-lane overtakes and can be hardcoded to be paragons of patience.

With how hostile American drivers are towards bikers, self-driving cars would need Skynet-esque malice towards us to match those injury rates.
Nix package creation: install a not yet supported font
> They’re not easy to create without either using the reflect package, or playing with the internal representation of Go variables.

Ouch, when people corrupt the state machine.
There's reasons to do that already to avoid rush hour, but somehow many people still end up getting stuck in rush hour traffic twice a day.
How Two Industries Stymied Justice for Young Lead Paint Victims
> Maybe the demand would be even higher than that - I'm thinking of all people that cannot drive (e.g. because of age in a few years for my parents & other relatives), the ones that don't own a car (too costly, don't want it, whatever), introverted people that don't like driving in a taxi/uber (that's me! hehe), etc... .

Another thing that would increase demand would be the cheaper cost of AI driven miles compared to human driven ones. Today, it's somewhat expensive to get anything delivered from local shops, due to how expensive it is to do local point to point delivery. But if the local bakery or restaurant could deliver for a dollar or two, that would change a lot of behaviors.
That's essentially the selling point behind Zicam and other homeopathic drugs.
> also, is there a gui?

Not at the moment, but we plan on offering one (optionally) as a web service.
Most people don't read the label on medicines that they take. Take two extra strength acetaminophen tablets, combination liquid cold medicine, some of the sleep aids with diphenhydramine + acetaminophen, a glass of wine, repeat for 3 days, and you're easily into danger territory.
Also for other similar MFAs, if there is no rate limiting and the attacker spams the user, the user gets an unwanted notification and says no. The immediately gets the next unwanted notification and says no. The user doesn't want to deal with MFA, they want to use their phone, and the notifications are in the way. The user's primary goal is to make that stop. The logical thing to do is clicking "no", so the user does that.

But that isn't working. Every time the user clicks no, a new notification pops up. Eventually the user learns: Clicking "no" does not work, it does not achieve his goal. If it hasn't worked 5 times, it probably won't work the next 100 times. So, the user tries something different.

(And the best part it: It works!)

The solution for this is obviously to provide a "no, and block requests until I open the app" button.
Still waiting for those no fly zones to be enforced...
Operand: A personal search engine for developers
Ask HN: How does a CPU communicate with a GPU?
I've been learning about computer architecture [1] and I've become comfortable with my understanding of how a processor communicates with main memory - be it directly, with the presence of caches or even virtual memory - and I/O peripherals.

But something that seems weirdly absent from the courses I took and what I have found online is how the CPU communicates with other processing units, such as GPUs - not only that, but an in-depth description of interconnecting different systems with buses (by in-depth I mean an RTL example/description).

I understand that as you add more hardware to a machine, complexity increases and software must intervene - so a generalistic answer won't exist and the answer will depend on the implementation being talked about. That's fine by me.

What I'm looking for is a description of how a CPU tells a GPU to start executing a program. Through what means do they communicate - a bus? How does such a communication instance look like?

I'd love get pointers to resources such as books and lectures that are more hands-on/implementation aware.

[1] Just so that my background knowledge is clear: I've concluded NAND2TETRIS, watched and concluded Berkeley's 2020 CS61C and have read a good chunk of H&P (both Computer Architecture: A Quantitative Approach and Computer Organization and Design: RISC-V edition), and now am moving on to Onur Mutlu's lectures on advanced computer architecture.
The article is like 9k words and it only mentions Rust twice in passing.
The animation is far from being fluid too.
I think this is an excellent point. At the start of my career I would blithely assume that my authority was that which was formally given to me, in the official org chart. I'm still learning how to gauge how much real (formal plus unofficial) authority I have at a given moment, what it entitles me to do, and how to build it if I need to.

I guess this is what it looks like when a nerd learns how to do politics.
> Why is a speed part of the Go language contract but footprint of the executable is not?

Because footprint of the executable has pretty literally never been, Go has always had deficient DCE and generated huge executables.
Sure a computer can beat an expert human at chess, but get back to me when it can beat an expert go player.
better for the liver, worse for the stomach. It's a sliding scale, you have to decide how much you care about whatever hurts not hurting anymore versus damage to organs you can't even see.

Also i used to get wicked headaches from diet soda when i was younger, too. Is it possible to be "slightly" Phenylketonuric? I had to google the spelling, and it's interesting that "hyperactivity and behavioral issues" is listed as one of the symptoms. I doubt "slightly" is possible, that was tongue-in-cheek.

Also as an aside, for pain that the standard dose of ibuprofen doesn't seem to help, emergency medicine studies have found that an additional standard dose of acetaminophen alongside the ibuprofen has greater pain reduction efficacy than vicodin.
How you react to something is just as important as how you say you feel after the fact. People do judge and form opinions on your behavior as well as your thoughts. Wishing it was otherwise is the real arrogance in this scenario.

I'm all for letting people figure out how they feel about things, but sometimes we don't have the luxury of time and we need to interpret in the moment. This will happen no matter what as long as we have a biological form, and pretending otherwise serves no one.
The other way I've seen this phrased is that unlike a transmitter, it's OK for a receiving antenna to be incredibly thermodynamically inefficient, because a weak signal can always be amplified -- as long as it's not swamped by noise generated within the receiver itself.

Let's say an AM radio station transmits a 1kW signal at 1MHz, with a bandwidth of 10kHz. If you have a receiver 100 miles away, and ideal isotropic antennas at both ends, then by plugging some numbers into a link budget calculator, it looks like the received power is about 12 orders of magnitude above the thermal noise floor. That means it's plausible that you could still get a clear signal even if your antenna only manages to capture a millionth or a billionth of the incoming energy.
Well I was in the ER 2 days ago and my liver enzymes were bad. I don’t drink, he said it was the acetaminophen I’ve been taking. I had been taking significantly less than the recommended amount for less than a week.
This looks exactly like a comment I saw around 2008. In all seriousness, I don’t think it makes sense to waste resources on planning for autonomous vehicles as it is not guaranteed (probably not even likely) to have them in the near future
There’s a nice overview of OenBSD’s RNG system here[1] or video if you prefer [2].

[1] https://www.openbsd.org/papers/hackfest2014-arc4random/index...

[2] https://m.youtube.com/watch?v=aWmLWx8ut20
Every IT professional that emigrates from Russia is one valuable asset less for Russian regime. The West should welcome them not just because they are our fellow humans, but also because it helps us win the war.
See also Bill Thurston's commentary on the nature of mathematical knowledge:

"mathematical understanding does not expand in a monotone direction. Our understanding frequently deteriorates as well. There are several obvious mechanisms of decay. The experts in a subject retire and die, or simply move on to other subjects and forget. Mathematics is commonly explained and recorded in symbolic and concrete forms that are easy to communicate, rather than in conceptual forms that are easy to understand once communicated. Translation in the direction conceptual -> concrete and symbolic is much easier than translation in the reverse direction, and symbolic forms often replaces the conceptual forms of understanding. And mathematical conventions and taken-for-granted knowledge change, so older texts may become hard to understand.

In short, mathematics only exists in a living community of mathematicians that spreads understanding and breaths life into ideas both old and new."

https://mathoverflow.net/questions/43690/whats-a-mathematici...
Using templates in C++ can make code faster, though. Because you can write the same routine with more abstraction and less indirection.

I've used C++ templates effectively as a code generator to layer multiple levels of abstractions into completely customized code throughout the abstraction.
There's already an audiobook app with the same name. Google before writing code.
Earthly doesn’t use YAML but a syntax which is similar to Dockerfile with dashes of Makefile. I’m finding it extremely pleasant to write.
> We will not rely on unusual licences to restrict competitors from running Dagger as a service.

Your "Trademark Guidelines" appear to contradict you:

> Third-party products may not use the Marks to suggest compatibility or interoperability with our platform. For example, the claims “xxx is compatible with Dagger”, “xxx can run your Dagger configurations”, are not allowed.

> but you have to build your own brand, and you can't confuse and fragment the Dagger developer community itself

If I do an incognito Google search for "dagger", the first result is the Wikipedia page for the knife, and the second result is for Dagger, the dependency injection tool. By naming this "Dagger" you're confusing not just your own developer community but the pre-existing one as well.
Step one:

You don't. At least, not exact numbers. You almost always have to round the numbers up, or just aproximate the value.

So, while

1.2 + 2.3 != 3.5

this is always correct:

1.2 + 2.3 < 3.6
I use gmail as my backup e-mail and Google drive as one of three cloud storage services. I pay for GCP and YouTube ad-free and YouTube Music.

Great non-Google services I pay for are ProtonMail, Fastmail, iCloud, and Office-365.

I have played around with self-hosting options, but decided to just use Cloud services, but don’t rely on any single vendor.
> companies essentially do anything to fill jobs and devalue our work

what on earth are you talking about?

I joined the industry 15 years ago after getting a BA in theology. The history of software creation as job has never been a gated, guild-like professional one.

Everyone has always been able to become a console jockey.