skysight-inc/HackerNews huggingface dataset:
I think the arguments I presented do hold for thread joining as well as other cases: it's less clear from the code that this:

int main(int argc, char[][]argv) {
std::jthread t([](){
volatile int a;
while(true) a=1; });
}

will block forever, than it is for this:

int main(int argc, char[][]argv) {
std::jthread t([](){
volatile int a;
while(true) a=1; });
t.join();
}
//using the volatiles since while(true); is UB, nothing to do with threading

This is even more true for a class that has a std::jthread member.

I've also asserted that the api of std::jthread::join is not great, that it would have been pereferable to have a mandatory timeout parameter, so that someone calling it would be forced to think about an appropriate timeout, since blocking forever is rarely the right choice (of course, you would have a constant for blocking forever as well - this is not about preventing this behavior, just slightly discouraging it).

If you agree that blocking forever waiting for a thread to join is in itself something to be discouraged (not made impossible, but also not the default), then it also follows that having a destructor block at all should also be avoided in the std lib.

I do want to emphasize that I'm not claiming that there are no cases where this sort of behavior is useful, just that it is more rarely the best choice. I also believe in the idea that language/library design should nudge users into the right direction, so that the better use case is also the easier one to write.
"At scale" is a euphemism for an ideology whose goal is world domination, there's no reason for a desire for it to be protected. Anti-abuse systems being in place is more important than preventing constraints on growth.

I mean seriously, in the past several years we've learned that "at scale" is actually a public hazard.
Czechia, Slovakia, Poland, Croatia, Slovenia, Serbia, Romania, Hungary, Latvia, Estonia, Lithuania, Bulgaria and Montenegro. Probably Greece too but I don't know how it's there personally. Plus the non-EU countries in the region - Albania, Serbia, Kosovo, Moldova, North Macedonia and Bosnia and Herzegovina.
How long did it take to flash new distro?
I think the point is moreso that developers can be self-sufficient in the full value chain. Haber didn’t personally go to farms to create improvements in their agricultural process, the industry did that jointly by incorporating his invention in their manufacturing. Edison and Tesla never mass produced their inventions to get them into people’s homes, that required thousands of people working manual labor and many corollaries of factories. Whereas Linus can push changes and millions of people can pull them in to add value immediately without any extra steps. You can argue that Linus didn’t build the communications infrastructure and hardware surrounding that and that is true, but the salient difference is this was truly a one-time exercise. For “physical” inventors like you described, mass production is hard precisely because it is bespoke and requires so many physical resources. Until we have a general purpose self-configuring factory, their leverage is fundamentally lower compared to the world-tier software engineer. And even then if that did exist, it would require programming to operate it to usher the physical inventors into complete self-sufficiency in their value chain.
Buy yourself an air quality monitor and experience the wonder of how fast your household air becomes dangerously crappy with the windows closed. The formaldehyde will be with us always apparently...
TDD is more of a Java thing and it has a lot to do with the lack of a good type system in Java. TDD essentially lets you create a class that encapsulates a type and then enforce the contract for that type through the tests. Modern type systems tend to just let you do it directly so the unit tests are a little less useful.
> By your logic, we should not take for granted anything that wasn't' present at the birth of civilization such as not being mauled by a bear or freezing to death.

Yes I agree wholeheartedly. We should not take anything for granted, and perceive any improvements to our quality of life as things to be grateful for, not entitled to. We are all born naked and hungry. Everything we receive afterwards we get from other people, people who are not obligated to give us anything.

All of your examples of being forced into chains at gunpoint oppose the fundamental principle I'm advocating for: consent. Just because someone has something (say indoor heating), it doesn't entitle you to have the same thing. Just because others live comfortably, it doesn't mean you should as well. Just because you define "progress" a certain way, it doesn't give you the right to impose that definition on me, does it?

> Yes, it is a virtue to be self sufficient. Charity and empathy are also virtues.

Yes! Where we disagree is whether these virtues should be voluntary or compulsive. For all of history until recently, they were voluntary. We have NGOs and other organizations which operate on this model of voluntary charity. This is the only model that's ethical. What gives you the right to impose your virtues on others?
I don't think this is a multiple-writer problem. Postfix is only reading. I am running a milter that is writing, but I control the code for that so I have it set up to retry if it fails. So the error is being generated by postfix itself, and so it must be happening on a read (because that is all postfix does).

I was hoping to find some kind of global switch that would make sqlite always wait for locks rather than throwing an error. But I've scoured the web for such a solution without success :-(
Why is POSIX.2 this bad?
The question was not how quadrature encoding works, but how to implement it with the limited PIO instructions
“Launch this MVP, or learn from it” – What do you think about this format?
The difference is the realtors want you to pay them money for their services. The recruiters want to pay you money for your services.
I can pay my taxes with a paper dollar bill.

That's not just shared acceptance because even if the mighty USD should crumble and fall, a US citizen will still be able to pay the taxman with a dollar bill which is in itself of great value.
Vaccinating the world is a test of our ability to co-operate
While not related to TV (but possibly radio), My political radicalism probably peaked in 4th grade due to my surroundings. Young minds can be very easily influenced before they fully develop critical thinking.
Just signed up. Do you retrospectively pull events from the past? Not sure if it's even possible to do with Segment.
Pi 4s can boot from USB now, as of the Sept 2020 bootloader update. No need for microSD.
Programming the GPU in Java (2020)
What TikTok Can Teach Us About Content Marketing
The USB serial dongle with a cheap Chromebook is what I use in the data center if I need to connect to a switch or other device with a serial port. The Chromebook runs all day without charging and it's small and light.
How museum collector-trustees recapture charitable donations
The relationship between bulk loading and unnest is as follows.

A single insert of an array using an unnest can insert many rows. The performance is worse than copy to, but in the same ballpark. But there are use cases where you'd like to bulk load through a stored procedure for a variety of reasons, and now calling the procedure with an array and using unnest internally is a straight win.
It would likely cause a short term shock, especially if people were forced to sell quickly. Essentially a lot of shorter term traders would quickly exit the market.

Though in the longer run, assuming the network stays up (I see no reason why not), I also think it would strengthen the case and we'd see prices continue to climb.
I mean that you can't buy a computer with mac hardware and linux os. Microsoft isn't forcing hardware vendors to only use windows.

Osx unix is still vastly different from most production environments. I really like wsl because I can use whatever linux os that I'm comfortable with and have access to a wide range of supported apps on windows. It seems really elegant to me and its not just running a linux vm on windows like most assume. The integration between wsl and windows is pretty neat. e.g. this is in my .bashrc in wsl, it copies output to my windows clipboard (and note that its a windows exe that im invoking from wsl).

function cb () {
powershell.exe -command "\$input | set-clipboard"
}
> Apologies, I saw a different issue and did not realize those concerns had already been addressed.

My bad. I'm sorry, too. In fact, I may be solely at fault here for over-reacting to your comment. My reaction really stems from an unpleasant r/Android experience where folks just piled up on BraveDNS (as it was called then) with utter non-sense and blatant, misleading lies.

> I had assumed at first blush this was yet another scammy SaaS product with a corresponding app...

This isn't the first time I've heard from folks that the whole thing comes off as scammy / scareware. Is it the website design? The copy? The readme on GitHub? The name of the project?

> Can you suggest where I can read more about its security deficiencies, or by "insecure" do you just mean to say it is an incomplete solution?

DNS66 is insecure in the sense it doesn't do any form of encryption for DNS requests [0] and, like most other DNS clients, it leaks DNS connections over TCP (only handles UDP) [1].

I wouldn't call it incomplete, it is likely fully complete in the eyes of the original developers. A DNS client can definitely do more, and that's why RethinkDNS exists in the first place. I used to use Nebulo [2] which is super light weight, supports DNS over HTTPS/3 (QUIC), and has way more features than any other DNS client I've come across.

[0] https://github.com/julian-klode/dns66/issues/11

[1] https://github.com/julian-klode/dns66/blob/4f1304746e2/app/s...

[2] https://github.com/Ch4t4r/Nebulo
Linear algebra is really important for graphics programming, but there's really only a handful of concepts you need to get started (vectors, matrix operations (rotation, translation, scale)). This course is relatively short and should give you a good background on these topics: https://www.youtube.com/playlist?list=PLZHQObOWTQDPD3MizzM2x... . For me, I learned more from the course than my college level linear algebra class.

Other important things to learn are what Vector and Fragment shaders are. I think this course is a good intro for it: https://github.com/ssloy/tinyrenderer

Lastly, when you are ready to start writing real graphics code, you might want to consider using something like Metal if you are on macOS. I have found it to have a much better API than OpenGL. Here's a good book on the topic: https://gumroad.com/l/metalbyexample . I haven't used DirectX, but I imagine its probably much better than OpenGL too.

If you do want to use OpenGL, I found these to be good resources: https://open.gl and http://learnopengl.com/
>It took me a couple years to realize the smart people are just playing the game, the unsuspecting losers are "playing it straight" and getting endlessly frustrated.

This essay gets linked to a lot on here, but you might be interested in Rao's "Sociopaths/clueless/losers" taxonomy: https://www.ribbonfarm.com/2009/10/07/the-gervais-principle-...
What boards would you consider "better" and for what reasons (gpu and crypto extensions, or are there other factors)? I run a few raspberry pis and always looking for new/better toys.
It is not an attack since by current market conditions there wouldn't be the need for an attack. The owners of the mining pools are not stupid and BTC is not an anonymous (and FREEEEEE whatever this means) currency these days. I hope we can agree on at least this fact.
Isn't shutting down the onramps effectively a ban on cryptocurrency?
Some are lamenting that PG's work on Bel doesn't seem meaningful in terms of the practical programming world of building things, like many of us do in our jobs.

But I think Bel is best viewed as PG painting with code. He lost interest in using acrylic and canvas, so he turned to his favorite paintbrush and canvas: vim and Lisp. And created art with it. And, at least for some people, Bel is beautiful art that provokes deep thoughts and insights. It's unquestionably his own signature style of art.
I was in a similar journey while working on my startup ToonClip.com which deals heavily with graphics.

There are 2 different areas. One is the geometry and the math. Second is the libraries that make the graphics.

What was fun for me, was thinking of an idea eg. make a circle move along a given path. Then evaluating the different libraries to see how to achieve it. Then, when the libraries themselves needed modification, jump into the mathematics, geometry and algebra. I did not read books but just looked up articles and videos that cover the topics of interest.

Its a lot of fun that combines math, art and programming.

Wish you lotsa success and fun :-)
The best ones are the ones that only use functional cookies until you do something active (like check "remember me" on a login page), thus negating any need for popups etc at all.
I've never seen recruiters applying on behalf of candidates. Not sure if that's done at all in my country (Norway)? It would just feel weird and tacky to have a middle man. I'm perfectly capable of browsing listings myself and send the CV. What value does a recruiter provide in this instance?

What's normally done here is that companies hire recruiters to fill a spot. And then those (British, always British agencies) go to LinkedIn and shotgun spam every breathing human being with tech in their resume. And cold call. I've started to not answer and then later block british numbers calling me, but a few minutes later they will just call through a local proxy in Norway. Just as much spam as microsoft-spam-calls from Asia. And if you end up talking with them it's just a waste of time. They won't name the company, the benefits, and can't even answer basic questions about the position. Their only value is to get the open position in front of more eyes, but that value is dubious given that I will never have anything to do with a company hiring these spammers.

Honestly, if you're a tech company you should do your own hiring as the candidates will be your most valuable resources. Outsourcing your moat is bad business.
Really some of these techniques are just scaling what is standard at arcades and bringing it online. Anyone who has ever been to an arcade knows how many tokens/quarters you can go through to keep playing and playing.

The danger with mobile gaming is that you never really get to leave the arcade and you don’t have to intrinsically budget the way you used to at arcades. At the arcade you usually have a fixed number of tokens to spend and you always have the allure of other games pulling you away.
Hmm, I'd recommend looking into finding a mailing list or potentially looking into virtual working groups at MIT or Harvard's biotech centric I-Lab.

I only made this cheeky comment since I'm tired of associates telling me I "have to check out clubhouse for startup networking". IME it's just packed with low-info ppl talking about crypto and startup rooms just balloon with armchair "VC's" and wantraprenuers (as much as I hate using that word, I mean folks who just want to make a quick buck and have no real-world startup exp).

When covid-fatigue subsides I definitely cannot recommend relocating to the Boston / Cambridge area enough.
You can boot entirely from USB on the Pi 4s now. Don’t even need the microSD for the boot partition.
> There are also other nuanced issues in the country about the Central bank needing people to hold the currency (Naira) due to heavy devaluation going on at the moment but lots of people are converting all their money to BTC and this is a way to halt it.

Kinda buried the lede there, no?
I guess the ting to do would be to somehow wait on a change on either line. Could be done with a wait on just one line if I only want half counts instead of quarter counts
Stock compensation is also the real kicker. Probably one the most amazing things that Silicon Valley made widespread is the ability for employees to own pieces of the business. I noticed that many non-US companies don’t provide too much ownership to engineers (although it is starting to change for the better now). As many company stocks grow over time, each employee’s compensation package balloons to much heftier amounts. People’s salaries have the potential for non-linear outcomes.

It’s also great incentive alignment, the higher you go the more you’re compensated in stock to tie your work to company performance. See: https://www.levels.fyi/company/Google/salaries/Software-Engi...
I use Cloudflare Web Analytics. Since I use Cf, I thought: why not utilize their analytics? Anonymous, no cookie, no fingerprinting and no localStorage.

Edit: also, no JS if you have Pro (20usd/mo).
I don't think you have a clue about how allergies work, with all due respect. A harmless compound can be cross-associated by the immune system just by being correlated with a harmful one.

Meaning if something harmful is present in peanuts sometimes but not all the time, the immune system will associate peanut compounds with it and reject peanuts as well.
Life as a whole is balancing risk and reward. My desire to experience life outweighs my desire for safety.

If I could live infinitely long but never experience anything, what's the point? Safety is the largest danger.
Conglomerates that do B2C for money will always beat upstarts as their customer unit average cost will be lower and per unit attributable revenue will be higher.

If the only thing that a customer cares about is paying the minimum amount, the customer should not be surprised that their choices would be limited to conglomerates.

Independent restaurants are a lot more expensive than national chains and make a lot less money than the national chains. If one's only goal is to feed oneself in a restaurant, one is better off going to chain one.
If you want even faster (and can hide the holes as part of the design) then pocket holes can get the framing together really fast. They have good tensile strength, and decent bending strength in one direction but not the other. So your design has to account for that, however for putting together a basic desk (see the plans in my Reddit thread I linked in the other comment), or the carcass for a dresser unit, they work wonderfully (even if it is "cheating" a bit).
Hegel: A static type-checker for JavaScript
HN doesn't seem to have a problem, thus showing sites in general don't need to have a problem
Yes for compiling, but without typechecking. You'll still need tsc for that.
Hi @damian. That looks pretty cool. I’ll check it out. Just a small question - Is there any future plan to have a UI/UX that looks like a photo library, kind of like Google Photos. I understand that a lot of tagging and organising can be done using metadata, but I prefer building my own library and customising it. Nevertheless, this is pretty close to what I have in mind and because it is open source, I’ll see if I can extend it a bit to suit my needs.
Normally I would agree - a good salesperson may not need to know the application they are pitching - but the recruiting industry's unapologetic ignorance definitely causes damage to potential employees (especially more vulnerable candidates) and hurts the industry as a whole.

It is an (unfortunately) essential part of the tech industry that amplifies common misconceptions like Java == Javascript and exacerbates problems like the joke about "minimum years of experience".
The study may be true on average but not in every particular case. The way we do most medical studies today, with relatively small samples and coarse aggregate statistics, isn't well-suited to detecting rare but genuine issues with a high false positive rate.
True, I tend to conflate immutable bindings with immutable data. With Erlang, all bindings are immutable, which makes pattern matching more powerful (although it can lead to unexpected crashes on occasion).
"first hand" as in, 'the govt told me that china bugged supermicro motherboards,' as opposed to, 'I was told the govt briefed tech companies about how china bugged supermicro motherboards.' honestly, describing the testimony I quoted as "third hand", simply because the person doing the briefing for the govt was not the same person to have discovered the breach, is completely ridiculous.

do you agree the article establishes that the U.S. govt repeatedly warned private sector companies that supermicro servers had been bugged by china? maybe the us govt was wrong about that! could be! but it's still a huge story and much more than what was established by the first bloomberg article.
We only do this if you have an enterprise Segment plan.

This generally isn't the case as most of our users are early stage startups
100% correct. If you really need performance you have to write V8 optimized code no "let" in your loops boys. Its getting old and if you want something TS friendly you need to invest $6 gorillion like Google did like 14 years ago
I apologize in advance for a low quality response. I just want to be able to return to it easily.

Love it. I love the minimalism. It just fits my use case so well. I just tried it and it just works with no fuss.
I don't think it makes that suggestion at all. In fact, it is specifically about evidence of pre-Columbus artifacts

>Much of the public imagines Columbus as the only (or first) connection between the old and new worlds, yet there are many instances of cultural connectivity in the Bering Straits region—and this is one

The discovery and article highlight a more nuanced discovery:

>the first documented instance of the presence of indubitable European materials in prehistoric sites in the Western Hemisphere as the result of overland transport across the Eurasian continent,”
Look at a modern motherboard. See how thick the RAM bus is? On my X370 motherboard it's over 10 cm thick and goes down to around 3 cm thick as it goes through vias.

For your chip to interface, you'd have to reroute all those traces to it (because RAM is random access, you wouldn't have the context necessary to know when to inject or modify if you weren't accessing most of the traces).

On an X-ray of the motherboard, you'd see all those traces converge to a point, then diverge back onto the socket. On a normal motherboard x-ray[1], you see the traces make a trapezoidal pattern.

Such tampering would be immediately visible to a motherboard x-ray. And by the way, they would likely be detectable by software too, even just the delay introduced by the length of the traces is detectable.

[1]: https://www.sciencephoto.com/media/521584/view/computer-moth...

In addition, you'd actually need to have the die also process the data from memory, and it would need to be quite a bit faster than the relatively slow Ryzen memory subsystem.
Would you consider putting this summary in the README? Took looking at the comments to understand the “why?”
The situation in say a Tesla or any other new car isn't much better under most driving rule regimes out there today. Fault for accident is virtually always the driver, regardless of whether automated or assist systems in use. This includes Tesla's Autopilot when used in the United States, you don't get to blame Tesla at least not today.

Personally, I can't wait for wider adoption of mature "assisted driving" products in the future - I find the idea of that future a lot less scary than the millions of not so great human drivers we have to deal with right now.

The biggest problem I have with Comma is that the quality of the camera installation will vary enormously between users even if we assume the software to be perfect. At least in a car certified for production you can mandate the cameras, sensors etc be attached permanently to the vehicle in relatively sound locations, vastly reduced risk of them falling off and causing a bad steering or other control input.
they discussed various options for less indentation and rejected them. this syntax is definitely out of the question.