skysight-inc/HackerNews huggingface dataset:
This was an interesting hypothesis. I enjoyed the idea so I wanted to see what probability I should assign the idea that the defiance-effect overrules the compliance-effect. Interestingly, there is one state which does not have a mandatory front seat adult passenger seat-belt law which gives us the ability to test what effect that has.

New Hampshire: No adult front-seat passenger seat-belt law. Beltedness: 67.6%

Lowest beltedness (any law): Massachusetts (73.7%), secondary enforcement (i.e. if you violated another driving law then you can be cited for the seatbelt thing too)

Lowest beltedness (primary enforcement): Mississippi (78.8%)

Regardless of the paternalism angle (which I'm sympathetic to because I would like drug use to be permitted, etc.) this would appear as evidence that the defiance-effect is overruled by the compliance-effect. Certainly, it is sufficient enough for me to not look further into the subject.

Standard HN disclaimer so we don't get into some Internet war: Not attempting to refute anything you're saying. Just sharing my conclusions. Your priors and your weights to evidence may yield different posteriors. I do not require you to convince me and I am not aiming to convince you. The hypothesis I wanted to test may slightly vary from yours due to my interests being different and to aim for easier falsification. The existence of this disclaimer is not intended to be evidence that I believe you will engage in an Internet argument.
This is an incredible statement to make without any evidence. Although I would also ask you for evidence if you claimed abortion led to trauma for "most women".
The Elixir video courses at https://pragmaticstudio.com/ are the best available, in my opinion. There are some free tutorials available and some other good paid courses, to be sure, but I think Mike and Nicole over at Pragmatic Studio offer the most complete and easy-to-follow courses available. The cost-to-value ratio of their courses is really good, I think.

I'm not affiliated with them in any way. I'm just a happy customer.
When I first encountered SQL, my immediate reaction was to start writing my own lightweight ORM (two days later I learned ORMs were a thing that already existed) because I took one look at that syntax and decided it was insane to work with directly.

I definitely don't think in SQL.

That said, I like working w SQL databases -- just please give me a battle tested ORM...
> I was disappointed at the time, but looking back, it was a great way to write code.

That's exactly how I felt and feel about a similar experience I had learning Scheme
Boost Multiprecision [0] is an example of such a library type. It offers a compile-time arbitrarily wide integers (with predefined types up to 1024 bits) and a C++ wrapper around the GMP or MPIR libraries, which supports arbitrary sizes at runtime (not sure how it's implemented, but probably on top of an array of ints or BCD (binary-coded decimals)).

C++ has had `optional` and `variant` since (I think) C++11, maybe 14. I don't think `any` made the cut. All of these types originated (for C++ standardization) in Boost, as well. I'd caution against using `any`, though. From personal experience, the runtime overhead is quite high, and holding any non-none type is a dynamic allocation. Performance is far better with `variant` at the development cost of needing to know all the types you're going to support at compile-time.

[0] https://www.boost.org/doc/libs/1_72_0/libs/multiprecision/do...
So there will be no free alternative left?

Not sure if a gimped shareware-like(?) option sounds that appealing.
We used to play a game in summer camp where one had two sticks and could hand them to the next person 'crossed' or 'uncrossed' declaring as such. The key was it was the persons legs, not the sticks, which determined if one was passing the sticks 'crossed' or 'uncrossed'.
Go sql/database uses its own connection pool. But still that shouldn't create any problems. I have seen the reverse where apps that assumed temporary tables stick around from statement to statement without an explict `txn` (which regular postgres connections don't need) clearly failed. But I have not seen the issue you talk about.

My wild guess would be that the Go code never closed the result/rows which caused either a pool exhaustion / left the connections hanging and eventually got a timeout. Consider this similar to how http client's need to close the response.Body or else connections can't be reused.
From a UK perspective phone companies, water companies, train companies, banks, internet service providers, electricity companies, ..., all get bought without interruption in service. Sometimes they've been bought by the government, and sold off to private owners later too.

Sure you need established systems but most developed countries should have such systems in place.
Does not scale in what way? Exceptional people are rare, just as I wrote if someone is really exceptional he will blow through all this with no issues and minimal time. There is loads of people who just think are exceptional just like all those people on Instagram.
Interesting, what were the challenges you faced with MDX?

We built https://mintdata.com/docs on it, and it's been proverbially better than sliced bread -- that is, a true joy to work with MDX.

What're the challenges/pitfalls you faced with MDX + Gatsby?
Launched private beta for my next big project Feedback is welcome:)
Hi, Joan here, based in Berlin but WFH in Barcelona. I am launching my project in the networking ecosystem. We have been working for the last month in a platform called PeerPull and we are now in private beta. Would love to have you onboard, test it out and receive feedback, suggestions, needs or other ideas to further scale the functionalities that you would enjoy in the future.

In a nutshell, the idea aims at connecting relevant professionals periodically based on their background and interest/goals. The encounter is suggested by an algorithm that we are developing. It matches 1:1 meetings within our database and gathers the feedback from these meetings to improve the accuracy of the matchings.

Feel free to reach me and follow on http://peerpull.com
IDK. K has a promising therapeutic future.

That doesn't change that you and Henry are absolutely correct, tho.
> 10, 11 year timeline to what?

To be decent at each of those areas I listed.

Why those 10 specific things?

Those are all areas I've seen "Developers should learn X" calls-to-action.

Sometimes it's outright loathing over developers that don't know specific topics. Other times it's wishful thinking, or maybe a nice-to-have.

If you, as a developer, read all of those posts, they probably all make fair points about the importance of knowing each of those things as they relate to development. You decide there is some merit to learning it.

So you decide to make a to-do list to go learn each of those topics, because you want to listen to the blog posts and be a good developer, and do some real work to prove you know it. That's what's going to take you a while.
Yes, and there are also plenty of solid niche applications of 3d displays. The point is that both the Segway and the MagicLeap were pitched as being the next mobile phone or automobile (something everyone has at all times).

Of course personal electric vehicles seem to be having a renaissance at the moment (scooters) but the buzz:use ratio of modern scooters is much-much lower than the original segway era from 20 years back.
I think "vicious circle" might be closer here.

Just to check things out, I rented a Quest over the winter holidays. There was very little content that was a) VR-specific, and b) so much better on VR that it was worth the hassle. After we sent it back, the kids never even mentioned it again; they're happy with their Switches and the PS4.

Game designer Jesse Schell said "If Oculus Quest can’t succeed we should just hang it up" [1] and I think he's right. The obvious technical problems have been fixed. It's technically very impressive, and it has a strong novelty rush at first. But if the current market isn't enough to drive the creation of must-have games, I expect it's a descending spiral from here.

[1] https://uploadvr.com/jesse-schell-oculus-quest/
Watching-Eye Effect
I think this has very little to do with a carbon tax and everything about external and internal marketing. They are committed to using renewable power.
Given context of GDPR, I'm assuming Demand Side Platform ("buying" half of programmatic advertising).
What a lost opportunity to pivot from the inachievable (cinematic fully immersive VR) to the desperately needed (face to face equivalent interactions and entertainment). Time for the board to find new management.
This makes sense, but honestly I thought about post-COVID airbnb and my trust of hosts or other guests - and that trust is pretty dang low.

The fact that anyone hosting an airbnb may be more likely to be one of those reckless "open up America" folks is more likely than a properly organized hotel chain that can enforce cleanliness and social distance.

It's sad - I can't foresee staying anywhere other than my home anytime in the medium term.
Remote code execution in TF2 and CS:GO
Ok, I've heard of Haskell and I've been to many Haskell meetups too. This was before I found Elixir. For me, the biggest problem with Haskell is that it will turn cryptic if you don't touch the codebase for say, 6 months. Because, you need to essentially re-learn the special syntax of the language if you're touching Haskell code after 6 months.

In contrast, Elixir is super simple. I can describe the language in a single HN comment. Everything is just a function and they're inside modules. That's pretty much it. When I was picking up Elixir, I started off writing an E-Commerce platform from scratch with Elixir. When I was about to finish it, I was thrown into a 8 month long PHP project. When I was finally done with it and returned back to work on my E-Commerce project, I was able to just open up the code in a text editor and immediately understand what was happening - without having to re-learn the language. That is a the "Joy" part for me.

One more "Joy" of writing in Elixir is you don't need to worry about memory usage or performance that much. It's pretty efficient unlike Ruby or PHP even. So, I can just throw this entire application in a $5 Digital Ocean droplet and watch it handle insane amounts of traffic. And this is without optimizing anything. You will probably able to squeeze more with caching, optimizations, etc.

As for re-thinking the way you write code, it's mostly to do with pipe operations. Piping was a new concept for me jumping from Ruby. It's absolutely powerful, concise and productive. In Elixir, if you don't write good code, the compiler will warn you AND show you examples of how (and sometimes why) it should be re-written. Eg. If you write a nested case statement which many people subconsciously may do coming from OOP backgrounds, the compiler will ask you to re-think your code. And stuff like this really challenges you, but actually doesn't do anything destructive to your code - your code will still compile and function, but you will feel that tingling inside - "Hmm, maybe I should consider re-writing that?"

THAT is the balance. Before Elixir, I also used Scala. Took me 3 months to fully learn the language from the 700+ pages book on Scala. I absolutely love Scala and the JVM. It's powerful, but there's just too many ways to do the same thing in Scala to keep track of. So, it goes back to my first point on looking at the language after 6 months without the need to re-learn it. I would still try Scala at some point because JVM is very powerful. But, will it replace Elixir? Absolutely not.
> creative nomad jukebox

Holy crap, the memories. I had the creative nomad jukebox and for years convinced myself if fit in the pockets of my jeans...it did...but it didn't. The folly of youth!?
Based on job postings I've seen in biomedical science-related fields, I think Facebook is pushing for AR contact lenses.
They're toys that a lot of people use as their primary methods of transport, along with other micro mobility solutions like electric scooters amd good old fashioned bikes. In a way, the future took the path of least resistance and redesigned micromobility around cities instead. And we might still end up redesigning cities around some of those options

The segways itself doesnt make much sense to me though. I dont remember too much about the hype when it was released, but like, I'm still unclear about what it was supposed to be able to do that an electrified scooter or bike couldn't.
That will never be totally reliable as 1) javascript is dynamically typed 2) javascript doesn't support operator overloading. Nonetheless, there are attempts.

https://www.npmjs.com/package/babel-plugin-transform-bigint

> Update: Now it can convert a code using BigInt into a code using JSBI (https://github.com/GoogleChromeLabs/jsbi). It will try to detect when an operator is used for bigints, not numbers. This will not work in many cases, so please use JSBI directly only if you know, that the code works only with bigints.

(emphasis mine)
Well likewise, many of the DBAs I've worked with don't try and understand the software needs, and want the world to revolve around what is optimal for them.
That's what I've wrote to their reddit post:

The feature is of course fantastic. But the syntax still looks bit overblown.

Type system-wise this seems to be more correct:

_ExtInt(a) + _ExtInt(b) => _ExtInt(MAX(a, b) +1)

And int + _ExtInt(15) might need a pragma or warning flag to warn about that promotion. One little int, or automatic int pollutes all.
I'm totally blind and have a second hand iphone 10. Face ID works well enough but isn't as nice as touch id. I'm trying to convince my self that I really do need an iPhone SE especially if were wearing masks when I'm back in the office.
Would 0X12 then be a 12-bit integer with the value zero or a hexadecimal `int` literal with a base-10 value of 18? Does this work for other bases (0X12X12)?

I'm not sure why they picked a letter which can already occur in integer literals rather than one of the many unused letters. Given the focus on FPGAs and HDL it's also worth noting that X is commonly used in binary or hexadecimal constants in HDLs to denote undefined or "don't care" values, which could lead to confusion. Rust integer literal syntax would be perfect here (1234u11 or 1234i11) since it already includes the bit width and is compatible with any base prefix.
For those nitpicking the preprint's (gasp!) lack of editing and clarity here's an article with some further (rather convincing) background and stats. "French researchers to test nicotine patches on coronavirus patients"[1]

> The results confirm a Chinese study published at the end of March in the New England Journal of Medicine that suggested only 12.6% of 1,000 people infected with the virus were smokers while the number of smokers in China is around 28%.

In France, figures from Paris hospitals showed that of 11,000 patients admitted to hospital with Covid-19, 8.5% were smokers. The total number of smokers in France is estimated at around 25.4%.

[1] https://www.theguardian.com/world/2020/apr/22/french-study-s...
Private notes for open source project maintainers
hes not contradicting himself, the fact is there are a large percentage of developers who just don't care. its not a matter of still learning. they just don't care to learn.
Yeah I wish this distinction was better communicated. I wouldn't have wasted four years and thousands of dollars on a CS degree if I'd known it wouldn't make me a better programmer. Going to college is one of the biggest regrets I have in my life.
airbnb is not a bad business, as a localized venture. imagine each city had it's own version of airbnb run by the local city council. not some vc funded, destroy regulations & rental market at all costs, company. a city owned short term rental market would be both beneficial to cities, tourists n hosts. aye, if there's any salesperson out there wanna partna on to build a platform we can sell to cities, I"m open.
> I'm having trouble thinking of times when I felt more demoralized as a developer than when the sales team has made promises that simply defied the laws of information theory, and then wondered why we couldn't just work harder to fix the problem.

Years ago, when "Web 2.0" was only just taking off as a buzz word ('07-'08?), Marketing came to my team to demand we make sure our shared web hosting platform be "Web 3.0", so that we were ahead of the curve. That was a super fun conversation, in a "hitting your head against a brick wall" way. You'd think that people in marketing would understand the concept of a buzz word.
Is it available on Homebrew? A lot of us avoid the App Store...
Usually. https://en.m.wikipedia.org/wiki/Lydia_Fairchild

Linked case wasn’t even the one I was looking for, but the cause was the same. Still the mother, but surprisingly non-obvious.
Larry Page famously said at some point that he doesn't believe in customer support.

I believe a large number of the AirBnB employees are support related (either for hosts or guests).

It's an apples-oranges kind of comparison.
Urban planners are still all about micrcomobility
We Need to Rethink Our Food System to Prevent the Next Pandemic
I got five good recommendations on the first shot. Thank you.
Thank you HN. If you're interested, I'm actually documenting my journey as a consultant building ideas on Elixir at https://medium.com/build-ideas/

Thank you.
We're talking about why they encrypt their media streams.
The question they should be asking is will this kill Marriott and Hilton's recently launched AirBnB competitors?

While I'm sure Marriott and Hilton will get a ton of federal money they've got a ton of real estate mortgages to deal with right now. It would be pretty easy (especially if these efforts don't have a lot of traction and are costing a lot of money to keep afloat) to just shut them down.
Living off the money of "believer" investors seems to be a tried and true tech business strategy. Why sell hard tech to lots of customers when you can sell dreams to a handful of rich investors? One can argue that Silicon Valley is simply an enormous apparatus for transferring wealth from investors to landlords by way of tech employees.
I think that depends on your kid. I learned to code when I was 13 and I would have hated the computerless approach. I specifically remember being ~15 and someone pointing this out to me in an IRC room --- I thought that they were being pedantic. Older me now finds the stuff you do without a computer the most fun.

One suggestion I might have is, depending on their age, doing combinatorial game theory with them. That sounds really hard and fancy, but it's not (at least at the introductory level). There's a lot of games that are really simple to describe (e.g. counting games, simple board games) and your goal is to figure out the smartest move and / or if the player who starts the game can win.
This is qemu 4.2.0 configure command line that built what i needed to support this ( Debain 10's qemu did not have virgl support ). Spice did not work me, SDL did.

PKG_CONFIG_PATH=/opt/virgl-0.8.1/lib/pkgconfig/ ./configure --prefix=/opt/qemu-4.2.0 --enable-spice --enable-kvm --enable-linux-aio --target-list=x86_64-softmmu --enable-sdl --enable-gtk --enable-opengl --enable-virglrenderer --extra-ldflags=-L/opt/libepoxy-1.5.4/lib/

And this is the command line to launch a guest:

export QEMU_PA_LATENCY_OUT=20
export QEMU_PA_SAMPLES=44100

${QEMU_BIN} -name "${NAME}" -m size=${RAM_SIZE} -machine accel=kvm -drive format=raw,aio=native,cache=none,if=virtio,file=${VMDIR}/${VM} -netdev tap,id=mynet0,ifname=${VMTAP},script=no,downscript=no -device e1000,netdev=mynet0,mac=${VMMAC} -vga virtio -display sdl,gl=on -soundhw hda -audiodev pa,id=pa1

Oh and when I say it is working "fairly well" I mean the a guest with a single vCPU runs a spinning cube with no sweat, not to mention glxgears etc. Just for a test I have done 4 guests ( one per physical core ) doing gears and spinning cube each in addition to the host itself doing spinning cube with no issue.

If only I could figure out how to fix this memory leak.
Hi Kyle,
Gatsby was my second static site generator (after Jekyll) and something I have stuck with the longest.

I know you guys are working towards SSR as well, but do you see a particular point of convergence between what you're doing and Nextjs.

Because it seems that given Nextjs SSR, SSG and everything else working now...Gatsby will get to where Nextjs is today.
تحميل تطبيق مصرف الراجحي 1441 AlRajhi Bank الجديد مجانا
That was the same for me. I was studying econ and philosophy in A&S. Unless you started in the Engineering School as a Freshman, you simply wouldn't have enough time to get all the credits for a major there.

The best way to prepare for the job market though is to build things and publish them.

I do wish I could go back and pay more attention in the CS classes I did take.
Employee motivation ideas for managers and leaders
I can type up to 180wpm and I have to intentionally slow myself down to half speed, to use microsoft's start menu, wow. Typing "cmd.exe" or "notepad" in windows start menu, seeing those applications briefly appear as I type, but by the time I press return, it forgot about the match, and launches a bing search instead.

I feel like microsoft is still cluseless, looking at bing analytics and thinking millions of people search for "notepad" every day because they really think its a great thing to research?
Ray Marching and Bounding Volume Hierarchy on GPU
We'll likely need to pipe more money into the system in the near future, so it makes sense to identify and plug some of the leaks.
It is very difficult to safely define a loss function that adequately represents not what you believe now you want, but rather the outcomes that you would be happy with in hindsight once they occur. Especially if the rules of the game are complex enough and allow for "creativity".

https://www.lesswrong.com/posts/4ARaTpNX62uaL86j6/the-hidden...
I spent 20 years as a public school teacher and am still active in the Advanced Placement Computer Science teacher community.

This is good stuff, and very well-regarded by my colleagues.

Depending on the age of your kids, https://automatetheboringstuff.com/ or another of Al's books are quite good to start with and free to read.

For younger kids, Code.org's "Hour of Code" stuff uses Scratch, which is a nice block-based visual programming language that's still a real enough language under the hood; I had co-workers who used Scratch to have their AP CS students sorting lists of numbers and other "real" algorithmic tasks.

And I'd be remiss if I didn't mention the book I wrote, which is linked in my bio.
dying patients want more options.
No, I'm not forgetting chronic poisoning. The dose makes the poison, acute or chronic. That's especially true for heavy metals.
Thanks for sharing. This is a thought provoking article. I too have wanted to build something and would be happy if it covered something like my monthly rent. There are lot's of great side dish opportunities out there. Just look at the many successful paid wordpress plugins, slack integrations, and so on.

To be honest I've always found myself focusing on what I can build as a main dish for a niche market. This article has given me some new perspective. Thanks for sharing.
I'm using for similar job RPi3 and one OrangePi Zero.
Adult immune systems ‘remember’ germs to which they’ve never been exposed (2013)
> I don't think my dad has willingly listened to a new song in the last 30 years.

I'm a dad to 5 & this is what I always expected from my generation. I never understood it either, not now or then.

I've found most of a hundred new artists in just the last year. There's unimaginably more music available, than when I was young. It's practically a golden age.