skysight-inc/HackerNews huggingface dataset:
> That's going to be slower than a similar simple FizzBuzz that just goes to 2^54-1, but I don't think it would be a lot slower.

OK, I've actually tried it, after fixing the issue Allypost identified with the original code (JavaScript integer arithmetic only works up to 2^53, not the 2^54-1 I had assumed).

Here's a simple FizzBuzz:

let n = 1
for (let r = 1; r < 9990000; ++r) {
if (n == 0) {
console.log('FizzBuzz')
} else if (n % 3 == 0) {
console.log('Fizz')
} else if (n % 5 == 0) {
console.log('Buzz')
} else {
console.log(r)
}
if (++n == 15) n = 0
}

I compared that to the the more complicated one, with the outer loop changed to just go to 999, so it would produce the same output as the simple FizzBuzz. (And with the more complicated one changed to use console.log for output instead of the dummy functions in the original, itos() replaces by letting JavaScript implicitly do the conversion, and getting rid of explicit newlines since console.log works in lines.

Running each a few times via node with stdout directed to /dev/null, the simpler might be slightly faster but there is enough variation run to run that there is overlap. E.g., I got 23.811 vs 23.979 when I ran the two once, and then 24.325 and 25.550 when I ran them again.

Similar relative results when directing output to a file. There I actually saw in most runs the complex one run slightly faster than the simple one, but there was enough variation that I can't really say that one was on average faster than the other. The runs saving to disk took about 2.3x as long as the ones that discarded output.

None of them were anywhere near the speed of the programs in other languages on the code golf page linked a fews comments upthread. We're looking at about 5.4 MB/second when not saving the output to disk. That's around 1/20th the speed of the slowest on on the code golf page.

I'm just running things with "node file.js". I don't know if there are options that could be set to make it faster.

Anyway, the assertion upthread that JavaScript is not fast for this seems plausible, though not for the reason given (that it would need BigInt).
This is an explanation that the parent comment simply reiterated the point of the article rather than adding content.
I agree with this. I'm usually not a fan of auto-generated diagrams at all.

I would rather spend the extra time making something that's more readable and has a better layout.

The only exception for me would be for something that changes frequently where any diagram made by hand would go out of date quickly or be burdensome to maintain (not that diagrams usually get maintained...)
Microsoft should make this service free for open source (not just thought leaders), and compensate people otherwise. I should have a 0.01% equity in Open AI if they're using my stuff like this.

Or they should do opt in.
As I remember, the biggest thing is the tendency of TypeScript to result in deeply nested code, which is very hard to read/unwind.

Note that I haven't touched TS in about two years now, so my memory is a little fuzzy.
They don't accept pushes of repositories in that format.

The article says "none of the Git hosting providers appear to be supporting SHA-256", and while GH is not mentioned by name (and I applaud them for indeed not strengthening this "git == github-the-brand" trap), I can't imagine GH was left out of scope when checking the major hosting providers.
Grape Nuts with a just a touch of honey or piloncillo and allowed to soften for 3-5 minutes before eating them is my breakfast of choice for over 20 years now.
Which real world country?

In the U.S. most antitrust law is based on protecting what's best for the consumer, not protecting the competition from a free alternative.
We were wondering who that other bidder was… ;)
You can be proud of achievements.

The harder the achievement, the harder it is to automate that achievement, the prouder I will be.

Working at Taco Bell is not that hard to obtain and may very well not exist in 10 years.
The Secret Life of Thelonious Monk
History shows that peacetime nations frequently underestimate the cost of war. If you haven't seen them yet, Perun on YouTube has done a number of good videos on the economics of war & the Russo-Ukranian conflict in particular.

Here's one in particular that deals a bit with ammo shortages:
https://www.youtube.com/watch?v=F2ptG1IxZ08
Ask HN: Are there any companies that are doing interesting work in hardware?
Outside of ML/computer vision and processors, what companies are pushing the envelope in more esoteric domains of hardware?
> The unit that I hate more than any other unit in the universe is the KwH, which is dimensionally equivalent to the Joule, so I don't understand why we don't just use that instead.

kWh/yr is worse. It's just watts but obfuscated. Gets used for appliances.
So lets legalise child labour? Get rid of OSHA?

Where you draw the line is cultural and personal, so don’t dismiss things like this so easily.
Farewell, CUDA OOM: Automatic Gradient Accumulation
The gov is forcing me to pay the crony corporations through taxing me
I can't believe how long this battle has been going on. It's been decades since the whole music industry reshuffle, and both artists and consumers continue to get shafted.
Reposts are ok after a year or so. This is in the FAQ: https://news.ycombinator.com/newsfaq.html.

Could you please review the site guidelines at https://news.ycombinator.com/newsguidelines.html and stick to them? Your last sentence there breaks more than one of the rules.
I think the idea is pre-cognitively expressed in hominid behavioral patterns: sweeping views + army of allies beneath and around you = physical safety. Well, since pterodactyls died out, anyway.
FreeFlyer Astrodynamics Software
The whole premise of this article rests on the idea that an employee will do exactly the work required of him regardless of his output being visible to his manager.

I say to that: bollocks. Outside of the most scrupulous employees or those with the greatest sense of the importance of their work (who tend to be doctors and nurses, hardly the WFH sort), people will slack off if there are no consequences.

For essentially artisanal jobs like software engineering, in a small enough team it can be seen and felt if a team member is not pulling his weight. But most jobs aren't software engineering, most employees have an adversarial relationship with their employer, and most people feel entitled to whatever amount of slacking off they can get away with.

Everyone has anecdotes of colleagues who turn the practice of slacking into an art form. The idea that it's an irrational "presenteeism" causing managers to want employees back in person is another one of those journalistic luxury beliefs.
This analogy does not apply.

The gov. is using some service and therefore some citizen data is subject to the T&C's and that's it.

If Google were a German or UK company it would be the same thing - everyone subject to those T&C's.
"A solution would be banning all guns to decrease the amount of gun deaths. This, however, is not a practical solution politically for various reasons."

It's not a practical solution, full stop. See how mass quantities of drugs are smuggled around the world; guns and the small supplies of ammo criminals use (they aren't big on practicing) are much more compact, durable etc.
Anything notable about this article I'm missing? Just seems pretty tame for being on the front page
Apparently I paid like $15 or something, but anyways, this is what I bought, prices have changed a bit since then, but identical devices are out there under various ASINs/labels:

RCA to HDMI: https://www.amazon.com/gp/product/B07RX69KR8/
HDMI capture: https://www.amazon.com/gp/product/B088CWQGN5/

As far as game capture, it probably depends on a few things. Name brand definitely has significant markup, but they also include software and such as well. Note that my capture dongle here records in 1080P only, and you'll spend a lot more for 4K-capable hardware, and fancier capture devices offer HDMI pass-through so you can both capture and display on a screen, and this does not.

Now, if you want to play your games in OBS at 1080p, this might work for you, I'm not sure where performance starts to degrade for a cheapy dongle like this, but I think there's probably a good reason gaming setups use a little bit higher end setups.
Yep, the smell dissipates pretty quickly, likely dispersed by the flower heating itself up about 10°C above ambient.

I visited the bloom my partner works with on the day after it opened, and while he attested that it was pretty stinky on opening, it wasn't really much to smell when I was there.
Hmm. I could swear that, when I first clicked on it, there was a picture of several of them, next to a dime. (Also, left-right reversed - you could tell by the writing on the dime.)
Linus' original excuse for using SHA-1 was that Git hash trees and hash identifiers were never meant to be cryptographically secure. GnuPG signing support, the popular belief that Git trees had a strong security property, etc, came afterward, along with increasingly awkward excuse-making.

So strictly speaking Linus and subsequent maintainers weren't being amateurish in the beginning. (You didn't say that explicitly, but it would be a fair criticism given what was known about SHA-1 at the time, including known by Linus--he knew and made a choice.) Rather, in the beginning it was naivety in believing that people wouldn't begin to depend on Git's apparent security properties.
Lowell HS admissions will return to merit-based system after school board vote
An equivalent regulation to the one banning GA in the US would not ban GA because the data centers are in the US.
LOL, no. Low six figures. 15+ years as a SWE. We can't all pull FAANG salaries.
The US should economically retaliate.

GDPR and these other regulations in the EU exist because EU cannot stomach the fact that they got beat on tech and instead of innovating they are regulating to try and even the playing field.
I don't really keep a "digital journal" per se. But I do track all my work in a plain text file, for which I've developed a simple markdown-ish syntax that's both human-redable and parsable by a small script I wrote. The script and parsing is really just to give me a time breakdown of each task (and link me to the JIRAs for them) so I can fill out my timesheet accurately at the end of the week without doing much math. (I.E. any tasks without time labels are assumed to divide evenly across an 8-hour workday, but each task, and the entire workday as a whole, can be labeled with different start/end/duration times and the parser maths out the divisions for me).

So, kind of "one big text file", but with a small script to enhance that for timekeeping purposes.

Not-so-fun related fact: About a month ago, I had hardware failure and needed to replace my work laptop. My script didn't get backed up, as it wasn't in one of the directories that I copied over before replacing the machine. So I rewrote it and... now there's a bug that screws up the time calculation if the day isn't 8 hours. Haven't figured out why... Gotta love automation!
As I said elsewhere, I might be able to do it in a month —I’d have to StackOverflow enough React — but can imagine someone who can knock it out in an hour.

That’s a perfect candidate vs the don’t call us we’ll call you I would be.

If you can’t deliver what they expect in the time window, then the simplest explanation is you are not able to provide what they are looking for.

This makes it a useful and relevant assignment for both parties.

A test that most candidates can pass is a waste of everyone’s time.

——

Crappy on mobile may be good enough because production is a business process not an engineering theory.

Low initial cost may be preferable to lowering operational cost.

The bottom line and cash flow are legitimate measures of code quality.
Reply from my partner, a horticulturist at RBGE who works with the titan arum: "It's green so it's almost certainly is doing some photosynthesis but almost all of the energy is coming from the corm. There's enough energy in the corm to produce a flower, seeds and fruit; this can take 9 months, and during that period there's basically just a stump, no leaf. The corm depletes vastly after flowering. The titan arum we have is so big it seems to manage to have enough energy to produce a leaf again after flowering. Most just die after flowering and fruiting."
AllSpice might be what you're looking for?

> AllSpice: A git platform for hardware engineers

https://www.allspice.io/
I use zsh and have the following alias (rather, function):

```
cp () {
rsync -avhW --progress --inplace ${@}
}
```

If I ever need to use the `cp` binary, I execute `=cp`, which evaluates to `/bin/cp`.
I had a sportster with the engine solidly mounted to the fame. Drove it over 10,000 miles one summer. It was totally fine. Nothing broke or rattled loose.
Teens have always done stupid shit. They'll drink till they puke at every party they go to until they grow up and get tired of it, or they become adult alcoholics.

When I was a teen I watched my friends having contest to see who could take the biggest bong hits and "press" them the longest without coughing. I always declined to participate in those contests. I was well known to be a "lightweight", but that moniker never bothered me.

Those who called me that were the same kids who'd chug whiskey they stole from their parents and then hug toilets while puking until they passed out on the bathroom floor.

Edibles are akin to taking pills. You don't know how hard they're going to hit you until they do, and if it's too hard you're stuck with it until it wears off.

Vapes are akin to big bong hits. When I was a teen I saw teens puke after taking a few too many giant bong hits. They were having bong hit competitions.

It's very easy to regulate the effects of weed by taking a tiny puff and putting it down for a few minutes.

So, it's not that weed is more potent. It's easy to sip a bit of whiskey too, but you can get just as puking drunk guzzling beer as slamming shots.
Why would you want someone to never learn that the system is rigged against them? So they blame themselves for their oppression?

Millions of people will never rise above minmim wage jobs.

Why fix that for one person ,and not for all?

A Taco Bell worker probably has more free energy and intrest for tackling big problems like protesting against the oligarchs.
My keyboard came with a tab key, so I don't worry about my commands having short names.
So it's a blogvertisement for Signadot (apparently a YC company, so I guess that's ok?)

Anywho, they didn't seem to link to it from their site but they have a GH repo if one wants to see what the helm install is going to bring: https://github.com/signadot/charts
https://github.com/open-watcom
Scientists hacked a locust’s brain to sniff out human cancer
This was the obvious one, how could they miss it? Smells like money & politics might be involved...
sure, and like I said, I agree completely. but you can't just say "i’d love to see a constitutional amendment explicitly separating corporate interests from governmental ones", unless you're proposing that all corporations should be state-owned and -operated, and that's not really a viable solution, plus it introduces a whole host of other problems.

but even if you just mean to say "government should not share citizens' data with corporations", well, there are presently two (until our license with one is up at the end of summer) separate corporations that both know where every kid in my school district lives, what their special ed needs are, what their parents names are, what their parents' contact information is, if they live between multiple households, and so forth, because that is the explicit purchase of their business, and that why we purchased their software. the same goes for another piece of SaaS we recently purchased a license to involving food service management for the school system. when designing the data export we opted to not follow the part of the schema that wants SSNs for the students (because why would they need that?!), but that might not be the case for other districts using the same software.

my point is there are a lot more interconnected corporate software services sharing citizen data at play in contemporary government systems than you probably think, and, once again, even though I agree with your position with regards to sharing citizen data with corporations... I think that ship might've pretty much sailed sometime in the past few decades.
GDPR covers EU citizens. I don't think it says anything about non-EU citizens.
Yet… 2/3 of black people have reported to being treated with suspicion in a retail setting.

What’s the disconnect? You, someone who ostensibly works in the loss prevention industry claim that racism is not a factor; but black people, as polled by Gallup, don’t seem to agree.

https://www.theguardian.com/commentisfree/2019/jun/24/shoppi...
I don't understand your point. I'm aware of the various weights to gram conversions, that's how I went from a .1g dose to (28*10=) 280 doses for an oz. You realize that dry flower is not at all equivalent to that weight in oil right? Doing a weight to weight comparison makes no sense. Do you actually smoke weed or have experience with any of this stuff yourself?
I didn’t read it as government can’t use commercial products. Just that the corps couldn’t influence politics. But I’m not the OP, so I can’t speak to what was intended.
it looks like the author read your article, then rewrote it a bit, and make some noise, as is a us/indian shop
Ok, it's up there now. Thanks!
Thank you for documenting it!
Good luck, took me a month to find one in stock, and they go quick!

Check this, updated often - https://rpilocator.com/
Hmmm, or maybe they exist because EU has a little bit more respect for privacy of its citizens than US?
The issue is that an exploit could write a file in ~/bin/ and trick you in to executing it. But, if something malicious is writing files in your home directory, you've already lost.
Louder, louder for the people in the back.

The market controlling genetics in plant propagation has consistently lead to favoring bigger, more uniform, more shelf-stable, and this has always lead to less nutrition, over-consumption, and more waste.

The same thing is happening with BOTH drug cannabis and industrial (CBD) hemp. The low threshold of .3% THC for hemp to be legal for any grower in the US is an arbitrary ass number, so by breeding to it who knows what’s getting lost in the genetic dustbin.

Growing your own is liberating, if not still legally dubious in the US. Repealing the prohibition against growing would likely get more people inquiring about their cannabis, just like when you go to a farmers market and enjoy substantially better quality vegetables. You can learn what went into it.

Of course the dispensary business is on the verge of becoming an entrenched lobby, and would likely rebuff any effort to legalize growing.
How hiring the wrong medical “expert” derailed US pandemic response
You are correct. In the AdES signature world, the solution is to have a cryptographic (signed) timestamp using a newer hash algorithm that rehashes all previous commits, and to include that timestamp into a new commit. When verifying the hashes of old commits, the software would verify that those are covered by an appropriate timestamp that proves that they were created before the old hash algorithm was considered too weak.

This is very similar to the following: Instead of rehashing, i.e. replacing old hashes with new hashes, add the new hashes alongside the old ones, and sign the new hashes, together with the time mark, by a trusted authority. The old hashes and signatures then remain valid indefinitely as long as the new hashes and signatures are verified successfully.
Many, perhaps most, software devs, would utterly fail at a job that had customers, regular hours, physical labor, etc.
In my journaling I realized the process of writing was valuable, but I rarely referred back to anything. So for personal / stream of consciousness things I either write on paper and put it in the shred pile, or to something like an ephemeral vim buffer.

For when I'm feeling very self conscious I have a script that turns off echoing to the terminal and streams everything I write to the clipboard (in case I decide I want to review/save after all)
Heh, that's the first time I've heard someone describe this, but I recognise the feeling. It's like constantly rushing and wondering if you're being inefficient and if there isn't a faster way to deliver what you need.
You can buy enterprise certs from other companies, that's how the stores like jailbreaks.fun (safe) or AppValley or AppCake (very questionable) get them.
It’s funny because I’m extremely creative whether I’m smoking or not. Late last year I designed a four axis 3D printed robot arm full of custom 3D printed planetary gearboxes and brushless motors. I was stoned the whole time I was designing it. Early this year I met a bunch of skateboarders and we had a great time smoking a bit and skating in empty parking lots. I had successful creativity and good friendships while vaping. But again I used pure sativa that didn’t make me want to sit on the couch. And it was hard to find! Most weed sold in California stores is a hybrid with some of that couch lock feeling. I think some stoners just don’t realize they can get something that doesn’t knock them on their ass.

I’m not saying people should smoke or vape. But I do want to say that with care and self control it can be a habit that doesn’t cause serious problems. Though ultimately I feel much better having quit.
The conceit here is the assumption that this has not been built many times by very clever software engineers. It is not a new idea. True git-like version control systems for managing large volumes of data have been built on MVCC kernels for a decades -- branch and merge, push and pull, fork and clone.

There are fundamental computer science and technical issues that make scaling these systems for arbitrary data models extremely difficult. The platforms always had the ambition to be general but the design tradeoffs required to make them scale requires narrowly overfitting for a particular type of data model such that they can only be used for the original use case. And even then, the performance ends up being not good.

I've never designed one from scratch but I've worked on a few at large companies. All of them started with the vision you are proposing, all of them failed at achieving that vision because of the technical tradeoffs required to enable something resembling scalability. Unless you are proposing some novel computer science that renders these issues moot, you aren't presenting a credible defense that this hasn't been done before.
It's a default behaviour of at least bash. It's as secure as your home directory is.
Err, just to avoid further misunderstanding: I'm pro-GDPR ;) and think it's right to confront users with the hydra behind the crap on the web. What I think has destroyed the web is attention economy, monopolies, the race to the bottom, and lack of incentive for quality content.

Agree though that Europeans could do with more libertarianism and less trust in state; it's something that's been a big issue for me since at least CoVid hysteria.
I'm always on the lookout for more diagram as code authoring options. Mermaid is pretty decent, if frustrating at times. Looks like there's a port of it to TypeScript: https://www.npmjs.com/package/diagrams-ts
Can you link to these videos?

I'm not sure what you think these regulations prove. AFAIK Russia is probably the only military of its size engaged in operations that would result in mass field casualties of soldiers, what should they do?
Would this be in a different way to the equivalent JavaScript code? Or do you just mean like physically, the layout of the code with the additional TypeScript syntax makes it appear more nested/indented and more difficult to parse?
e w la fica
We detached this flamewar subthread from https://news.ycombinator.com/item?id=31840457 and marked it off topic.