skysight-inc/HackerNews huggingface dataset:
I love the ATtiny for hobby projects! The acceptable voltage range means it can run off lithium with no regulator and then the quiescent current is something like 5nA. The battery will practically self-discharge faster than the MC can wear it out. Of course the feature set is limited but for the battery powered "go to sleep until XYZ then do something" use case, it's awesome.
> Ada already does something like this. You can choose whether to enable runtime checks, fail to compile, or accept the risk.

It is ok, the accelerometer readings won't go outside the range of an int.
> It's a fallacy to assume that ketamine would be subject to the same issues as opiates just because both happen to be usable as anesthetics.

Sure, but it's also a fallacy to assume that nothing bad can happen in the long-term just because it appears promising in the short-term. I wasn't saying it's gonna happen the same exact way as it did with heroin (of course it won't, it's not an opiate), I was just making an example of a drug that happened to appear benign and promising, but have serious unforeseen consequences in the long term.
I agree with the factual things that you said (e.g. "entire program execution was meaningless"). Some stuff was hyperbolic ("time-travel back to the start of the universe, delete it").

> [compilers] will make transformations to the program whose effects could manifest before the UB-having code executes [...] It's monumentally rude to us poor programmers who have bugs in our programs.

The first statement is factually true, but I can provide a justification for the second statement which is an opinion.

Consider this code:

void foo(int x, int y) {
printf("sum %d", x + y);
printf("quotient %d", x / y);
}

We know that foo(0, 0) will cause undefined behavior because it performs division by zero. Integer division is a slow operation, and under the rules of C, it has no side effects. An optimizing compiler may choose to move the division operation earlier so that the processor can do other useful work while the division is running in the background. For example, the compiler can move the expression x / y above the first printf(), which would totally be legal. But then, the behavior is that the program would appear to crash before the sum and first printf() were executed. UB time travel is real, and that's why it's important to follow the rules, not just make conclusions based on observed behavior.

https://blog.regehr.org/archives/232
Rust has built-in support for this, I believe.
TikTok Is the New Excel
>I'm sorry but if you don't understand what tradeoffs are nor understand what tradeoffs are involved with choosing between JavaScript and TypeScript, I don't think there is much left for us to discuss.

You've yet to provide even a single example.
> Give me a curated list of curators for subject areas.

I would love this. The closest I can think is a manually-curated RSS feed, and https://github.com/sindresorhus/awesome
You can take a tour near Etna https://www.visitsicily.info/en/attrazione/mount-etna/

Or the ferry to tour the crater of Santorini. https://www.santorini-view.com/attractions/santorini-volcano...

I suppose all volcanos are great attractions. Until the start fuming
Sure but this rating is the same for Garmin or Suunto dive computers. EN13319, 100M water resistant. It’s industry standard.
Also decentralization is rather contributing to generate those millions of apps - repo A will have a different version of App M than repo B or a fork and anyway similar apps but from different sources and... well good luck.
From the article, it looks like it involves a significant investment in DIY time and parts acquisition.

Are you using the custom PCB and 3D-printed LED mounts in the instructions? What are you doing differently?
> End result: go look for AVX-512 benchmarks. You'll find them. And then ask yourself: how many of these are relevant to what I bought my PC/mac/phone for?

... do you guys not do JSON? cause we're doing json.

https://www.phoronix.com/review/simdjson-avx-512

or how about ARM emulation? anybody doing ARM development on x86? do you guys have phones, maybe?

https://www.reddit.com/r/emulation/comments/lzfpz5/what_are_...

seriously, linus is wrong on this issue, and he just keeps digging. lose the ego and admit you were spewing FUD.

avx-512 had legit problems in Skylake-SP server environments where it was running alongside non-AVX code (although you could segment servers by AVX and non-AVX if you wanted).

None of that has been true for any subsequent generations where the downclocking is essentially nil, and the offset has always been configurable for enthusiasts who get more buttons to push.

It also was never a "one single instruction triggers latency/downclocking" like some people think, it always took a critical mass of AVX-512 instructions (pulling down the voltage rail) before it paused and triggered downclocking, and "lighter" operations that did less work would trigger this less.

https://travisdowns.github.io/blog/2020/08/19/icl-avx512-fre...

AMD putting AVX-512 in Zen4 sealed the deal. AMD isn't making a billion-dollar bet on AVX-512 because of "benchmarksmanship", they're doing it because it's a massive usability win and a huge win for performance. Over time you will see more AVX-512 adoption than AVX2 - because it adds a bunch of usability stuff that makes it even more broadly applicable, like op-masking and scatter operations, and AVX is already very broadly applicable. Some games won't even launch without it anymore because they use it and they didn't bother to write a non-AVX fallback.

It's also a huge efficiency win when used in a constrained-power environment - for your 200W-per-1RU power budget, you get more performance using AVX-512 ops than scalar ones. Or you can run at a lower power budget for a fixed performance target. And you're seeing that on Zen4, when it's not tied to Intel's 14nm bullshit (and really it's probably also apparent on Ice Lake-SP if anybody bothered to benchmark that). That's also a huge win in laptops too, where watts are battery life. Would anybody like more efficiency when parsing JSON web service responses when they're on battery? I would.

Sorry Linus it's over, just admit you're wrong and move on.
Software defined radio.
I'm not sure using int as a loop variable on 64-bit platforms is that contrived. It's not like it's that hard to find examples using int these days, and I'd suspect that it is more common in older software as well.

Yes, the optimization is "easily" solved, but a) it'll probably be some time until people stop teaching/using int as a loop variable, and b) there's lots of existing software out there, and perhaps optimizer improvements are an easier performance win than looking for the right loops to change.

And yes, profiling is ideal, but I can't say whether I agree off the top of my head whether this loop would be immediately obvious, or whether the fix would be obvious. It may be to us and/or the average HN reader, but I don't know how universal that knowledge base is.

One thought that just occurred to me is that while signed overflow may be useful for loop optimizations now, I suspect that it wouldn't have been useful in the same way back when C was first standardized. Wonder what the committee's reasoning for that was, if there was any...
Sensation is not perception.

To be psychoactive, capsaicin would need to warp your perceptions, rather than solely induce the sensation of burning pain.
I truly wonder. Why is Apple doing that? If I'm not mistaken, it is a small niche in terms of revenue.

My hypothesis is that this is perhaps a new approach for marketing: find hobbies that correlate the most with the populations with the biggest potential revenue, taking into account the networking and demographic effects within such a population.

Just throwing this off the top of my head. Bear with me :-).
Note that none of the truly decentralized protocols failed so far.
Icelake and later CPUs have a REP MOVS / REP STOS implementation that is generally optimal for memcpy and memset, so there’s no reason to use AVX512 for those except in very specific cases.
We got hired to create an AI-generated feature film screenplay
Where is the most important part: build tools and libraries?
> Kraken actually handles money so it needs customer service and Twitter is just a bunch of already written code for posting stuff and sometimes (although much less now!) getting ad dollars.

If you view Twitter as a 'service for posting 140 characters', they don't need 7000 employees.

If you view it as a 'service for supporting five billion dollars worth of ad spend across the entire world', with all the proprietary software, ads front-ends, ads back-ends and reporting services, weird one-off partner integrations, ads account management, sales, advertiser support, moderation and compliance, legal compliance... Well, all that quickly adds up to a lot of headcount.
Optimizations themselves (except for perhaps -ffast-math) can't cause undefined behavior: the undefined behavior was already there. They can just change the program from behaving expectedly to behaving unexpectedly. The problem is that so many snippets, which have historically been obvious or even idiomatic, contain UB that has almost never resulted in unexpected behavior. Modern optimizing compilers have only been catching up to these in recent years.
Professionals talk logistics wins again.

I'd love to peer inside how Toyota made this happen at the nuts and bolts operational level. How do they deal with all the currency conversion between all the nations? What language do they transact in? How do they deal with shipping? That would be so fascinating to understand.
Up until the recent Kilauea eruption in 2021 there was a period of about 30 years where you could hike up to molten lava flowing from the pu'u o'o vent on the southeast slope of Kilauea. The length of the hike varied from a few hundred yards to several miles depending on which way the lava was flowing. The 2021 eruption drained the lava from pu'u o'o and it stopped flowing, and the only exposed red lava was in the Kilauea summit caldera, and the only (legal) way to see it was by helicopter.

So the TL;DR is: it depends. At the moment it's not looking good for easy access, but stick around, the situation is bound to change. A week from now you might be able to see lava flowing in the streets of Kailua or Hilo.
It's largely the same, aside perhaps from not shipping with the java compiler by default:

* install java (includes compiler/runtime): `sudo apt install default-jre`
* compile: `javac MyProgram.java`
* run: `java MyProgram`
And if you read into it you see that it was brought about to subjugate some voting demographics

https://www.vera.org/reimagining-prison-webumentary/the-past...

Whether this is true or not, it's certainly enraging.
Some people on Hot Ones really look like they're trippin
No CEX can be safe. Get yourself a cold wallet.
Good point. Also UBsan and Asan are great additions to any C/C++ workflow. But if it's actually part of the code, I'm forced to use it even if I'm lazy, versus an external tool that I can forget to run (or forget to add to my build system).

Leveraging what the compiler gives you is like that saying "the best camera is the one you have on you".
> Correct. What you are saying is true for almost all drugs: recreational doses are typically higher than clinical doses. Ketamine is the exception.

To clarify: my understanding is that ketamine acts as a dissociative hallucinogen at lower doses and an anaesthetic at higher doses, so taking a higher dose will just knock someone out instead of giving them the dissociative/hallucinogenic effects.

> The clinical dose for depression is 86mg (not a typo), which is sometimes doubled, and the clinical dose for anesthetic purposes (which is what ketamine is mostly used for) is between 500mg-1g. The latter is IM injection, so it's also much more bioavailable than the first two (ie, the effective dose differential is even higher).

Ketamine is normally dosed based on body weight[0]. For depression IV, the dose is 0.1–0.75mg/kg/40mins, most commonly 0.5mg/kg/40mins. Clinical use in IM seems to be less consistent, with some clinicians using the same range and others doubling it, so the 86mg could be used for a wide range of body weights.

[0] https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6023575/table/T...

[1] https://www.psychiatrist.com/jcp/depression/ketamine-for-dep...
There should be a way to flag and remove comments that don't violate any guidelines, but are just objectively wrong, in a way that doesn't penalize the author. Like "you tried, but nothing about this is correct, so it goes to the bottom of the comment section above all the dead/shadowbanned comments."
I’m Often Wide Awake at 3 A.M. How Do I Get Back to Sleep?
Stack Overflow begins adding tests to their code
Lab-Grown Meat Is Safe to Eat, FDA Says
Gaslighting is so old now. Why couldn't it have been Goblin Mode? At least there is still time With Oxford: https://www.pcgamer.com/we-must-put-aside-our-petty-differen...
You’re wrong. TypeScript allows annotating types within JSDoc comments, and knows how to read it. Writing in JavaScript and using TypeScript as a type checker is a perfectly feasible option that many have picked (including this eslint rewrite).

https://www.typescriptlang.org/docs/handbook/jsdoc-supported...
This won't help, most uses of AVX or NEON have nothing to do with parallel processing of a bunch of numbers
The US is getting worse at pretty much everything. It's a long-term, comprehensive cultural erosion that stretches from mainstreet to DC.
it is an ad
In this tough time, Let's explore more handles to get jobs and share it with tech talent.

I found out this amazing Tech Engineering work opportunity with startups and MNC.

With Remote and Hybrid work opportunity.
No need to create account or visit any job portals.

Join their Instagram / Twitter / Youtube / Facebook , and all job link resided on Telegram channel.

All work opportunity from company career pages.

Telegram - https://t.me/sagbitjob

Twitter - https://twitter.com/sagbit_?t=5Fjq-4KmIQ_SJFCYl1m5IA&s=09

Instagram - https://instagram.com/sagbit_?igshid=YmMyMTA2M2Y=
What is wrong with my kid eating curry?
carsharing an EV would be a lot more green though
Ah, but reading a book requires taking time away from “changing the world”.
Count Folke Bernadotte
thanks. i might try this
We have had that for 15+ years even in C with fine grained looping like OpenMP. It’s terribly inefficient to communicate across threads. Sometimes you just need SIMD
We actually published a research paper recently on COBOL communities, but I still don't have a great answer to your question.

Much of the information is locked away in developers' heads and it was difficult for us to find many resources on getting started with COBOL. In fact, most of the COBOL code on GitHub is homework assignments but almost no real-world programs that we could analyze.

Our paper which contributes a defects benchmark: https://austinhenley.com/pubs/Lee2022ICSME_COBOL.pdf
Eh, I'd say it is quite a stretch to call that color "pink".

But I guess in comparison to other traditional martial colors? But show that photo to a person on the street and ask what color it is... you're unlikely to get "pink" in response.
People should be using IDEs with modern debuggers anyways.

Being able to step through your code one line at time and instantly see the values of all your variables is going to be FAR more effective than adding a bunch of print statements, no matter what language you're using.

It always blows my mind to hear about how many engineers don't know how to use their IDE's debugger and don't know what a breakpoint is.
A Platform for Financial Decision Making
I'd say it's more that people are still using archaic tools because of altruistic purism and that contributing to a gigantic js only project like ESLint is a daunting task.
Think we have been forgetting the necessity of relationships in a post-internet society. It can be a good thing to be intentional about relationships. The benefits don't only apply to introverts, it can also be important for extroverts to cut off harmful people from their lives and deepen connections with those they need most.
I guess he might mean not working out how to encode EBCDIC into ASN.1 in order to issue command PDUs using modbus-over-IP, or something equally barking...
This seems like it could cause issues. Being able to evaluate at compile time is part of the api surface of a function. If it’s not explicit, it could be very easy to accidentally change the internals of a library to not support consteval, but without changing the explicit signature.
Several large "Tech" companies basically are that already I think. Companies like EPIC or SAP or many other large enterprise companies, we might not normally think of as tech companies despite their main source of revenue is selling software and perform that very function. IBM is another though I do think we usually consider it a tech company.
The big problem is that point of use treatment invariably misses people. People who don't realize their system broke, those who can't afford $200 for a new one or the extra $5/month in operating costs. The extra public health burden is way more costly than treating all the water. And heavy nonpotable water users are often using gray water or untreated well water anyway!
Not seeing a "why" here, though. If you like TS, go use TS, but if you want type checking then JSDoc does that job rather well and forces you to treat documentation as a first class citizen, too. With the obvious bonus of not needing to be compiled: the code you wrote is the code that runs, while having all the features in place to perform type checking. It just goes about it in a different way.

The goal is type safe code, and there are multiple paths that get you to that goal. Pretending that TS is the only, golden path and everyone else is hopelessly wrong -requiring hyperbole to mock even- suggests having lost sight of the actual goal itself.
Where do you start? You start with company that builds a lemonade stand, and they dress it up like a life changing lemonade that's going to replace all other drinks in 38 days or whatever. So let's ignore what it does, let's pretent is does literally nothing, it's just a stand. So what's next. This lemonade stand has some market price, it's probably not zero, right? Let's say it's 20 million dollars market price. Maybe in your world if you create a lemonade stand it's worth 180$. But in my world, when people create lemonade stand and twit about it, people are like "ooh, a Lemonade Stand! Noice!" and it's worth 20 millions. And all these sophisticated games go like "ohh, if there are 100 million dollars in the lemonade stand, then it's going to get 16 million dollars of profits this year. That's pretty good, let's put a little bit more into it.". And maybe that happens with the other 200 million dollars in the stand. So you know, sophisticated traders and cryptards or other similar parties decide to put 200 million dollars in the stand. And other people go like, "oh, this is a pretty cool lemonade stand, it's valuable stand, and who a re we to say it's wrong?". Lemonade stands can be great. I love lemonade as much as the next guy, right? And then people are recalibrating, "20 million dollars for this stand? that's it? it's probably valued at 1.5 billions at least!".
Not a single screenshot on GitHub or on their website...
>C does a wonderful job of looking like a high level language but it was designed to do low level stuff. There is an implicit assumption, to my mind, that the user has a deeper understanding of what is behind the "curtain" that is created by the compiler.

Lots of people say this, indeed several comments here talk about learning assembly before C being beneficial.

I actually think this is not true, today. In its original incarnation C may have mapped closely to instructions, but the details of e.g. x86 are IMO neither necessary nor particularly useful knowledge. Knowing what memory is like and how stuff is laid out is enough.

C is not just a super-thin layer to the bare metal. By "integers are cursed," I mean exactly that: C integers are cursed. The arithmetic behaviours that standard C defines for integers are error-prone and in many cases undefined. C is a layer and it has its own behaviour, it doesn't just expose your CPU.
Thats nuts. You need a friend with tools.
I did not know this. Very interesting thank you. So is there some group responsible for officially determining if something is a Ponzi scheme or not? Perhaps in court?
yes there are dozens of decentralized protocols that claim to offer high yield. but few can really sustain that in reality. safer to not chase such high yield.
these results are so impressive that rather than constraining the technology copyrighting may be exactly what ends up being disrupted

for non-photorealistic work, or if it becomes virtually indistinguishable from photography, how would you know whether an image was expensively sourced from a human artists/photographer or cheaply generated by an AI? how would we enforce copyrights in relation to AI if anyone can lie and claim "oh yeah, i paid a wetware neural net to do that, no problem.."?
Ask HN: How to get the most out of AWS re:Invent
I'll be attending to my first AWS re:Invent this year. I understand the keynotes will be uploaded to YouTube, so I'm not really interested in those.

How can I get the most out of the event?
> and dissimilar to other components of the CPU

It's not terribly dissimilar from the SSE instructions before it. The biggest weirdness about AVX is it's CPU throttling. Which, IMO, should not be a thing for the reasons you mention.

I imagine that future iterations of AVX will likely ditch CPU throttling. I'm guessing it was a "our current design can't handle this and we need to ship!" sort of solution. (If they haven't already? Do current CPUs throttle AVX-512 instructions?)

> I imagine it's even worse on mobile/embedded

Fortunately, x86 mobile/embedded isn't terribly common, certainly not with AVX-512 support.
I recently learned that there was basically no spicy-hot food in the Old World before Columbus. Apparently Indian black pepper, or something called long pepper which has a little more kick, were the hottest spices around.

Can anyone confirm or deny this? The internet seems to agree. It still seems crazy to me.
> First, eslint is a developer tool and not intended to run in the browser.

from the linked article: "Yes, that means an officially supported browser version!"
"meaning" itself is a broad term, but the "literal meaning" AKA the "denotation" is distinct from the "connotation" of a term. Semantics is a broad term that means different things in different disciplines, but generally concerns itself with the denotation more than the connotation. I suppose you could make an argument that the denotation of "semantics" could technically include connotation but that the connotation of "semantics" usually implies that it is denotation that is being discussed.
I totally agree, they're really great for simple hobby projects! I've mostly used the ATTiny85 and it's easy to understand the datasheet, easy to program, battery efficient and comes in a DIP-8 form factor for easy breadboarding. Compared with something like an STM32 I find it quite fun to work with!
But why does it add up to 7000 headcount rather than 3500 headcount or 14000 headcount?