skysight-inc/HackerNews huggingface dataset:
Tried SDL2 a couple of times but never really got into it.

Recently though, I’ve created a native application with wgpu and Rust, that I can run on my MacBook Pro M1 where it uses Metal, and on my Linux desktop where it uses Vulkan.

wgpu translates into Vulkan, Metal, Direct3D 12, Direct3D 11 or OpenGL ES depending your platform. I like it so far.

I used the guide at https://sotrh.github.io/learn-wgpu/ as a starting point and built the thing I wanted to build.

My application is a LED simulator that makes use of wgpu and Rust to visualize LED strips, and uses FFI to call functions that I’ve written for Arduino in C++. With a thin layer of wrapping that I also wrote in C++, I have made it so that the same code that runs on physical Teensy 3.2 and is controlling physical LED strips, can also be compiled and run and visualized with my LED visualizer application on my desktop or laptop computer.

This allows me to iterate more quickly as well as to better be able to debug my code, because I can do all of the development without involving the steps of flashing the firmware to a physical microcontroller and without communicating with a physical microcontroller and LED strips.

When I have done a bit of work in my simulator I then flash it to the microcontroller where the physical LED strips are controlled to see it in the real world. But being able to work in this LED visualization simulator of mine is a great boon for the development process IMO.
And yet people are better off than ever, with more people having been raised out of abject poverty than anyone could have imagined at the onset of the industrial revolution.

Yeah there’s an extinction event but it isn’t entirely the industrial revolution to blame since people have been driving animals into extinction for thousands of years starting, at least, with the megafauna extinctions.

It’s sad but organisms have been getting out competed, and reshaping the atmosphere and climate, for billions of years. We can pretend humans are some anomaly and that we aren’t part of nature but that isn’t the case. This extinction event will give rise to new organisms that will fill new niches just like every other one has.
> In fact, one of the Eurobonds proposals was that states use European bonds up to some threshold (60% debt-to-gdp ratio level was proposed), and have to rely on national bonds to cover the rest.

Yes, these are valid points. My impression though, is that a better thing to focus on is not financing but who pays for what. In the U.S. the Federal government pays for social insurance, federal defense and big infrastructure projects. The states pay for education, police, and local infrastructure.

It is because the U.S. states do not pay for social insurance that allows them to weather unequal income distributions and that is why poorer states consistently get more spending. The whole point of social insurance is that poorer people get more and richer get less, so it's the opposite of per GDP spending.

For example, when states like California start trying to take on social insurance roles, that's when they get into a lot of fiscal trouble.

So now the problem with Europe is that the states do need to pay for social insurance, and that's a killer. There is just no amount of Euro bonds that will be able to help because the poorer states have a lower GDP per capita but the bonds will be capped at a share of GDP, which is the exact opposite of how social insurance works.

Therefore you can clean up Europe's finances if there is a central government that pays for social insurance. Defense spending is relatively minor in comparison to social spending, so you can keep that per state if you want. But once you federalize social insurance, then you can still do some GDP ratio debt limits and be OK, and it doesn't matter too much what happens with per-state financing once this burden is taken off states' books.

Of course this requires real solidarity. And it seems that Western Democracies have been doing everything they can to destroy real solidarity. But that's a whole other discussion.

At least that's my take.
> you will be unable to use the plane continuously because of the time you will need between flights to recharge

Couldn’t a battery be swapped so that the plane wouldn’t have to wait? (I’m sure it’s tricky, but that seems like the clear solution to charging taking along time.)
> because literally every other publicly traded company that's ever existed has done this

Wait you think there’s a model which perfectly predicts every company’s valuation ever?

Why aren’t you using it to make a fortune?
Brexit ended any serious thought of any EU country leaving the Union, not even the fringe right wing parties entertain that idea anymore.

To be able to live and work anywhere across a whole continent is certainly very attractive to many young people - this has been the American dream, and it is the European dream now too.

Really Europe is just waiting for the old people to go (or at least their ways), then we might be able to build something great.

Finally, I (from the UK, with a couple of years in CA) didn't realize how much poverty I'd been living in until I came to Portugal, supposedly one of the poorer EU countries!
Counterintuitively, the existence of a forest provides protection from the elements for the trees that make it up. Forests shape their own climate in other wonderous ways - for another example, they tend to make their biome more humid.
I wonder if culturally we need to change if we even need to travel. After all it is very recent phenomenon outside migrations. After all most of the history vast majority of population stayed or travelled very little.
Industrial Seed Oils Are Making Us Sick (2019)
Stephen Wolfram did this emergent behavior stuff with a computer in his book "A New Kind Of Science."
That isn’t really true, we have alternatives (or have theories for alternatives) for pretty much everything we need to keep going the problem is political but over long enough periods of time the politics will likely be irrelevant.
Collision with a pedestrian as well.
What does it matter to you? It's not forced on anyone. Unless you go out of your way to look for it, you won't even know it's there.
My take: fusion will change everything.

I don't think people understand that controlled fusion is actually on the horizon finally, and it is going to change absolutely everything.
Which for whatever reasons doesn't really work very well. You can request that the region be different, but it doesn't seem that the setting is uniformly respected or doesn't work in a useful way.

I ran into this when I was stuck using a connection that was detected as non-USA and was shared by people who would also be non-USA. I gave up using google search because I just could not get google anything to respect my requested region in a useful way. Even google maps on the web was problematic because it would constantly try to move the view right back to where it thought I was. It's quite annoying to search something like "$food near Massachusetts, USA" and get a list of stuff in Mexico one week and Canada the next.
Near carbon neutral fuels look to me as reasonable solution. Specially if the production is something we could ramp up and down easily and fast with renewable supply of electricity. Ofc, efficiency isn't great, but still seems much simpler thing to solve.
Yes, the exchange was too short for them to actually engage in real discussion. I would have wished they could discuss for 3-5 hours and to have some highlight reel of it.
Firstly, programming languages are always extended when a program is written, because a program consists of new definitions. This is true of SML. Any SML program consists of the language, plus that program's definition of symbols, which effectively create a local SML dialect consisting of standard SML plus the program's vocabulary.

Secondly natural language evolution isn't controlled by people who know what the are doing, or care about language immortality. They sometimes break things just for the heck of it.

Random examples:

- the "great vowel shift" in the development of English: a linguistic buggery that caused what sounds like "a" in just about any language that uses the roman alphabet, to be written using "u".

- random reassignments of meaning. For instance, the concept called "sensitivity" today was connected to the word "sensibility" just around two hundred years ago. That's pretty gratuitous; I could easily live with a branch of English which had kept it the way it was.
How powerful and effective could that be without launching the lighter vehicle backwards with dangerous force?
I knew some number theorists at the NSA who claimed have Q clearance (long before QAnon was a thing). As far as I know, they know nothing about nukes. Have I been punked, or is the NSA a branch of the DoD?
> It's a really strange human quirk to get so worked up about historical events

You have to keep in mind that Finnish Civil War is not some far history; it is something that touched peoples grand-parents. Somewhat naturally something hitting that close can still be pretty touchy subject
This would be a great building block for a system that helps blind people navigate while walking.
a[0]. a is an array. If the array is empty, what's the result, in both languages?
This is very interesting. AFAIK, Alder Lake has a mix of performance and efficiency cores. Balancing both types of cores will be an interesting task and may give some new controls to exchange power for performance.
Okay sure, but the industrial revolution has been good for pretty much every nation on the planet. Since just 1990 1.2 billion people have been risen out of abject poverty[1]. Since 1900 the number of people not living in abject poverty has increased from a few hundred million to over 6 billion[2].

1. https://www.worldvision.org/sponsorship-news-stories/global-...

2. https://ourworldindata.org/grapher/world-population-in-extre...

So you can quip about me being American, I am, but that doesn’t change that the industrial revolution has brought untold wealth and economic, if not political, freedoms to a majority of people on the planet.
Million.js – The Future of Virtual DOM
> You make it sound like human-caused extinction is "part of the natural process" - it is not.

Only from a human perspective are humans something other than natural. This seems to conflict with the vague sort of anti-humanism that is in vogue among many environmentalists. If you want to look at humanity from a perspective that isn't human then "the Holocene extinction" is perfectly natural.
'treating a symptom [not the cause]' is basically an idiom for 'at best meh'.
> but it's likely from a liability / legal standpoint

sure. but also the same reason mfgs dont want their modded/refurbished/re-sold prev-gen products competing with their new products.
I read imagination attorney and I thought it was the most incredible position. Your job is still very valuable. Thanks!
Ask HN: How do I prepare for Google technical interview?
I'm trying to get through CTCI but it's kinda big. Any pointers?
> You bring up a great point: how do we deliver high-quality software to the general public that is stable, easy-to-use, and secure, yet respects user privacy?

You have an honest business model where people pay for things.

"Free" is the cornerstone of surveillance capitalism.
I find this to be standard practice in nearly every mobile game nowadays. Since it's allowed by the app store guidelines, any app that doesn't do this is effectively being punished with a lower rating compared to ones that do. I wouldn't mind if Apple and Google prohibited this in their app store guidelines but it seems they currently are fine with it.
Slack also has a scheduled send option. Just schedule it for the morning if its unimportant. Then there's no implied expectation of when something should be addressed.

I, like others, sometimes use work laptop for pleasure. actually, I know a lot of people who do this exclusively. sure, you can blame it on them... but also I use slack for more than just work, and when I see unread notifications, even if I didn't get a push, i'm compelled to read them.
You can buy actual money on the exchanges, so you "can" "buy" anything. That's why the assholes who write ransomware accept bitcoin.
The author did not know what he or she was taking about, let alone Newton’s third law. Quanta usually publishes great pieces but once in a while it gets entangled …
> Because the Protestants told us that sex is "special"

What you're referring to is the problematization of sex. That process is present in every civilization, regardless of religion, and it's not clear that it's optional.
I agree that languages that look bad are hard to read. For me curly brackets or significant white space for blocks/scope is a big problem, it just all turns to soup.

So Ruby using end instead of brackets or white space is one of my favorite features of the language.
Gimp – $1,300,000 in Bitcoin donations idle since 2014
I don't want cryptocurrency mining to be banned, since it's essentially impossible to do that, but I wish people would stop mining cryptocurrency as I don't see benefits that outweigh the costs. There's nothing wrong with expressing opinions as to what society's resources should go to.
Exactly. People complaining about protestants have no idea how sex is treated in traditional Hindu or Islamic societies, or really any durable traditional society.
SDL is great. It's such an easy way to abstract over the often ugly and always platform-specific details of how to get a window open, get it fullscreen, and get input in (including game controllers) and graphics out. Sometimes I want a bare framebuffer, sometimes I want an OpenGL context. I've used it for dozens of things, mostly inconsequential (but fun).

I'm still partial to SDL-1.2. I think SDL-2.0 suffers from a lot of scope creep, such as multiple windows, menus, and trying to constitute a more general graphics library while complicating things for people doing basic framebuffer stuff. I'm slowing coming around to think that for a lot of people, it makes sense to have such a thing, though - particularly, hardware accelerated basic 2D graphics without dropping down to increasingly obsolescent OpenGL code. It's entirely laziness stopping me from converting my remaining SDL-1.2 code to SDL-2 at this point.
BUG: when several patterns are shown in the lexicon, it sticks them together see: garden of eden, rabbits
so we can go basically to the old times of speech based tales just with computer AI instead of your own imagination - i mean the modern version would be that Netflix sends to your computer "The superhero hits the villain", and the AI on you computer makes it into a glorious 8K sequence of frames of the glorious battle. Depending on the model you leased of course, premium custom or regular one, etc. And there is a startup here to turn book pages you would read otherwise immediately into a movie.
And one of the lead authors is named Corina. Ominous!
Well, that's one problem... another is that people often use it as an excuse for thinly veiled prejudice.
Yes. My bad. :)

I haven't been a professional Rubyist in some years but my habit here was to use inject.
Not only is that not what Web 2.0 was about, the idea that web 3.0 does "permissionless" versions of read & write, and also somehow "own", is hilarious.
I suppose if you had some strong smelling leaves and threw it into something fatty like an animal carcass before applying fire, things might get wild
More like trillions of lines of code, from probably millions of developers, dating back to the 90's.

"The total code size of Zope 2 and its dependencies has decreased by over 200,000 lines of code as a result." - from the 2013 Zope documentation... how many lines of code was it before then?

Python really burned its bridges. It's shown that it's a toy language now, and demonstrably unfit for any real production-quality projects.
> I’m in an awkward position of figuring out how my young child can spend time with them in a safe manner

I'm assuming this person doesn't actually have covid, they just didn't get the vaccine which makes them slightly less likely to transmit covid if they get it, and much less likely to have a bad case of covid. And I'm assuming your young child doesn't normally need special accommodation and so has an incomprehensibly small chance of having any complications from covid. Yet you look down on this family member as having a "lack of rationality".

I don't mean to say people shouldn't be encouraged to get vaccinated, but healthy, vaccinated people treating unvaccinated people as some kind of plague carrying monsters is at least as irrational as having questions about vaccination.
I don't fully follow your comment or necessarily know what you mean by a "branch", but the NSA is explicitly part of the DOD.
If you're not using Wen Ho Lee as a counterexample this is misinformation.

I was watching this at the time and... yeah, ex Q cleared at the time, and NYT revealed some of its underlying profit driven sleazy motivations with that hack job.

The others could be legit, I have no idea. But be careful before the evidence gets brought to trial and a guilty verdict is obtained.

Snowden showed and I can confirm, from decades earlier, there's a lot of workarounds going on daily just to get shit done. Some were absurd.
Honestly, only if you think there will be day to day volatility as to up down or a huge crash day.

In only go up or only go down situations it performs well.
Small nitpick:

> What we want to ask is: Given the ratings I have, there is a 95% chance that the “real” fraction of positive ratings is at least what?

> Score = Lower bound of Wilson score confidence interval for a Bernoulli parameter

There is actually a 97.5% chance that the "real" fraction of positive ratings is at least X, because the Wilson interval is a confidence interval which excludes a tail at each extremum.

I personally would prefer to use a Bayesian derivation and just compute a one-tailed statistic, rather than applying a CLT approximation out-of-the-box with no tailoring as is typical in frequentist statistics.

Regardless though, the principles are much the same and the sorted result probably would match very closely, so if this computation is significantly faster than stick with that.
That really is amazing. Is it true, even "usually", for most types of code? Both forwards and backwards compatibility.. it's like the holy grail.
How are the two not exactly the same in that respect?
The Fennoman motto attributed to Adolf Ivar Arwidsson was actually coined by Johan Vilhelm Snellman: "Svenskar äro vi icke, ryssar vilja vi icke bli, låt oss alltså vara finnar."

"We are not Swedes,
We do not want to be Russians,
So let's be Finns."

EN Wikipedia
HeidelTime is a multilingual and cross-domain temporal tagger
It's extremely hard, expensive and take very long time to give up US citizenship. Reason? Lots of people are doing so.

Plus you'd have to pay immediate capital gains on EVERYTHING accumulated so far - AS IF you sold it.
Rules are brutal, irreversible, little known and expensive.

Think twice. US citizenship could be very expensive mistake, unless person earns very average salary or sits on a welfare.
National lab scientist here. All the janitors in my building have Q clearance. Half of my team does, and people really use it once every 2 years.
Depends on your age, if you're young, you do want it because your risk tolerance should (in most cases) be much higher than someone who is close to retirement.
The interesting bit I picked up from that article is “A neutrino could easily pass through 1000 light-years of lead, so an ocean would pose no problem whatsoever.”

That is crazy no wonder they are so hard to detect.
https://www.medpagetoday.com/PrimaryCare/DietNutrition/50978

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

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

TLDR: omega-6 fat ratio to omega-3 used to be 1:1 now it's 15:1. And there are many indications that this is the cause of many modern diseases as rise of diseases correlates with rise of seed oils not industrializations.

"It has been estimated that in developed countries, the ratio of omega-6s to omega-3s is closer to 15:1"

"It has been claimed that among hunter-gatherer populations, omega-6 fats and omega-3 fats are typically consumed in roughly a 1:1 ratio"

https://en.wikipedia.org/wiki/Fatty_acid_ratio_in_food

also

https://www.healthline.com/nutrition/is-canola-oil-healthy
(Controlled Unclassified Information)
Direcor
I wonder if per-tenant cache structures might become more popular in the future. It isn't unimaginable that different tenants will be running different things anyway, so split caches might still keep a reasonable amount of effectiveness.
Have a look at Apache 1 (C) or KDE 1 (C++); it'd be interesting to see what you think of those codebases, and they can certainly predate 2001.
The first thing schools and libraries need to accept is people will have kinky sex in them and there's nothing they can do about it. They are even more 3D than VR.

There's lots they can do about it. I don't see a lot of kinky sex in Call of Duty? I'm sure it exists, but I don't see it. I don't call tea bagging a kill kinky sex though.

Meta will not be whatever people are making up in their heads.

The question is what Facebook has made up in their head is equally delusional and unable to pivot.
Have you used BeOS?
Getting a dose of vaccine happens a lot faster than losing weight.

It's not a bad idea to lose excess weight, but it's a weird response, it takes months to lose weight and ~1 hour to get a shot. I got my booster in about 10 minutes because they offered it to me at a scheduled appointment.
Just to be clear, what I considered creepy was:

1. Talking about how you can identify women who sell naked pictures by looking at them

2. Boasting about how you're never wrong in the above judgement

3. Introducing, however circumspectly, the above subject in conversation to score links

4. Mentioning in passing that some of your coworkers are "sex workers" on the side

5. This sentence: "My new go-to supporting a direction of empowerment that conveniently matches my carnality is 'support local.'" As if your desire to masturbate to naked pictures of "local people" is about "empowerment"
I lean on client-side pooling these days. It works and is easier to reason about for me, e.g. this client process gets 2 connections. Specifically knex has client pooling.

Provides good back pressure and hasn't fallen down yet. Any reason not to do it this way?
> keyboards have improved massively

Features such as RGB lighting/doubleshot keycaps, Bluetooth, and USB are nice, but for me the massive improvements have been retro features from the 1980s (or earlier), such as electromechanical switches, tactile feedback, keybed curve/sculpting, and well-made, swappable keycaps (including ones made from PBT as well as ABS plastic.)

And excepting Apple laptops (I still have the "butterfly" keyboard as well as the trackpad with poor palm rejection.)
Heh. Tulip, what a surprisingly relevant typo when talking about crypto.