skysight-inc/HackerNews huggingface dataset:
It's a significantly leftist-paternalist outlet, that somehow seems to be seen in some quarters as a neutral voice of reason.

Many of it's day to day comment articles either obsess over or take a political line on subjects that most people I live among would find eyebrow-raising at best.

There is no mention here of (just off the top of my head, and biased to it's British base):

Brexit

Immigration

Austerity

Trump

Scottish Independence

London Olympics

Depression (illness)

Instead - with a couple of exceptions - we seem to have a few middle-class-liberal echo chamber subjects, by anointed writers, which may well be worthy of discussion, may document genuine traumas with important impact on individuals and families in small numbers, and may be the ethically (as well as politically) correct view - but it bears little relation to the world as lived and discussed by most people I know, and certainly doesn't define a decade.
If UBI still doesn’t exist when 2M drivers will be jobless because of technology then yes, what you described will
One example doesn't tell you much.

This week a local freeway was shut down when a driver travelling down it noticed smoke coming out of the air-conditioning. He started to slow down, but then it caught alight. The scary thing was fire took hold so quickly he suffered burns before he could get out. That is the only time I've read about such a thing in the mass media. Which is an interesting statistic in itself - because I heard anecdotes about others peoples cars catching on fire while they were driving them several times. This particular time it shut down an inner city free way for a few hours - so it made the news.

And so it will be with this particular failure. I'm sure the only reason we heard about it is because it's a Tesla. Modern internal combustion engines are entirely computer controlled. They are far more complex to control that battery + electric motor, so the computer systems and sensor networks they have are commensurately more complex. They will not be going anywhere if that computer system fails - jump start or no jump start, so this sort of failure is not peculiar to EV's. Given the millions of cars out there I have absolutely no doubt coming back to a parked car only to discover the ECU has failed has happened many times. I also have absolutely no doubt I would not have heard about it. After all no one died, and "car won't start" is hardly news worthy unless it is a Tesla.

It may be there is a systemic fault with Tesla's - but there is no way you can tell from this one blog post. As for the bad dealer - I'm sort of surprised you think it is somehow exceptional.
Rust has "interior" mutability, meaning that shared references are not true 'read only' references; they can be used for writing if the type supports such an operation. What makes Rust data-race free is the combination of 'interior' mutability and the Send and Sync traits, which control moving or referencing objects across threads.
I agree that reviewing the statistical methods before judging the soundness of the conclusions is a good idea, I disagree that being published in a reputable peer-reviewed journal is sufficient validation for many well-known reasons and others that may be less-known.
It did because literally all I got was a name and a URL. I made multiple requests for the info and got nothing. It seems like they can probably get away with doing this unless you're a big company.
Casting around between the type of the first struct member and the type of the overall struct is okay under strict aliasing, but unfortunately sockaddr violates it because sockaddr isn't a member of sockaddr_in. Not that I knew this at the time, it was just a mysterious rule.
I was wondering that too. A keyboard like the Kinesis Freestyle or a competitor is specifically designed to address OP’s post. If it doesn’t work, send it back.

Apple’s keyboard may be great but definitely doesn't put one’s wrists in the least-strained position.
You could rent an ICE car for your long trips. Depending on your regular usage it could still be cheaper for you than paying for gas.
> Right, I'm aware of the issues on Windows. I was asking about XNU-based platforms which are known for having very low latency and excellent realtime audio perf out of the box.

I have never seen a mac box achieving reliable lower latency than Linux or Windows on the same hardware. Macs are nice for the plug'n'play experience - even though more often than not you still want to install your soundcard's driver.

But when it comes to doing actual work... https://www.dawbench.com/win7-v-osx-6.htm
"Most malware writers target Windows as the most popular desktop OS, so it has the biggest number of viruses among all other OSes (over five thousand new viruses daily)."

I thought the article had the aim to showcase solvable issues.

Yet it seems to more often just point out the same issue (e.g. privacy),

minor issues(inconsistency in legacy apps)

and even suggest harmful practices (disable security software, never upgrade...).
A simpler argument:

It is unlikely that you truly have nothing to hide, but it is even more unlikely that every single person who has any influence over your life has nothing to hide. Protecting their privacy prevents exploitation that could hurt you too.
Survey of British Social Classes (2013)
Interestingly the storage on my phone was used up and Google Keyboard kept on crashing, so I had to use voice for one whole night.
Combine this with city areas which contain up to 78% of molecular nitrogen poisoning, as a recent study showed. It’s transparent, also has no scent, like these microplastics. Who know how they react together?
Cool, you just need to join the list with '\n' before printing ;)
Rust's compiler checks a mathematical proof that, if your types are valid (e.g. you didn't do anything bad during `unsafe`) you do not have any data races. It is a guarantee about your program per se.

Go's race detection says (with a high probability) you do or do not have any data races in the paths actually taken during some execution of your program. It is a (probabilistic) guarantee about how you ran your program.
Because Nissan has pretty poor thermal management of their battery packs. Tesla's batteries are doing much better.
One more anecdote... our company makes things entirely in the US by choice. Our competitors bring knockoff garbage in from China, they have been hurting, we’re doing very well.
I love this book! I bought the physical copy years ago and it has frequently been a go-to book of mine. So many tech books (not all, of course) either do a great job of theory but are of little immediate, practical value or they are "cookbook" style and give you lots of useful tidbits but fail to help you grasp the big picture. While there are valid reasons for both of these approaches, of course, this gem is one of the few that are able to do both in one text. You learn a new computer language in the first part, and as soon as you have a foundation in the basics, you immediately jump into practical applications that can benefit your life almost immediately. Very well done, IMHO.
Implementing Autocorrect with 14 lines of Python code
Doesn't it depend on what you're trying to do?

I think there's a huge difference between research and learning enough to scrap something together for a hobby project. The deep maths can come later.

I don't need to study compiler theory to use GCC.
I'd argue that Redux is so downright trivial to learn, there's a good chance that you already know it. The part that takes a bit of study is learning flux. You should already know how a reducer function works from Arrays, and all that makes the Redux approach special is your accumulator is read-only.

The implications and advantages of all this are huge and take some time to really appreciate, but you shouldn't lose much time being confused and unproductive. The flux concepts of one-way data flow, action creators, etc. are the bigger ideas that take some study.
Main author of DuckDB here, I did not expect to see this mentioned here. DuckDB is a relational DBMS geared towards efficiently handling large analytical-style workloads locally. It is similar to SQLite in the sense that it operates locally on your machine, is easy to run and install and has zero dependencies. However, DuckDB uses modern processing paradigms (vectorized processing, columnar storage) that make it much faster when processing large amounts of data.

It's still in an early stage currently, however, most of the functionality is there (full SQL support, permanent storage, ACID properties). Feel free to give it a try if you are interested. DuckDB has Python and R bindings, and a shell based off of the sqlite3 shell. You can find installation instructions here: https://www.duckdb.org/docs/current/tutorials/installation.h...
I'd say the languages are largely equivalent. Roughly the same level of abstraction, roughly the same technical trade-offs. Highly productive, lots of people enjoy them, not very strict.

What Python does have specifically for automation in my eyes is that it is often the default language for most Raspberry Pi-related hardware libraries. So if you want to build home automation on accessible and easy hardware, the Pi is very welcoming to Python just in terms of making things easy, providing libraries.

It is also heavily supported for machine learning and computer vision which is related. Again, this is generally just a matter of library support.

I don't know the Ruby ecosystem well enough to say if it has equivalents to all the Python scraping, fuzzy matching and such libraries out there. But I expect it does. So that bit is probably a wash.

Hope that gives a perspective.
> When the rich get richer, and the poor don’t

Why?

> one can expect that prices rise for things that rich people buy (stocks), but not for things that poor people buy (food, gasoline, rent).

Is it bad if things that poor people buy don't increase in price? Also, these things are fundamentally different - I can sell a stock after I have held it for some time and used it to get the dividend - I cannot sell food, gasoline or rent after using it. And not just rich people hold stocks - maybe they are more likely to hold it directly but even in a country like South Africa where I'm from some of the poorest people benefit from gains in stock market through pension funds.

> Maybe stocks aren’t really getting over-valued, maybe it’s the dollar that’s getting de-valued.

One of the best measures for value of stock, PE ratio, is not even mentioned in the article - so I would take it with a grain of salt.
A city isn’t a machine.

Ambiguity isn’t sloppy in this context, it’s needed to allow room for contradictions to resolve. People make art out of trash, but the dump isn’t a museum, a museum is.

Christopher Alexander has arguably done more than any other human to help us understand why our built environments (physical and software) take the forms they take. 10 minutes flipping through A Pattern Language will clarify the underlying basis for the linked essay.
Interesting and confusing facts about time / time zones
"Do you really believe that people would "cut" legal marijuana with "dangerous chemicals" and sell it from their dispensary?"

He specifically said, "black market products".

"This barely ever happens with illegal marijuana."

While it isn't the result of "cutting", the poisons applied to illegal pot kills animals (inluding bears) within minutes of ingestion, is destroying ecosystems, and will undoubtedly be impacting the health of innumerable users in the decades to come, destroying lives, and impacting the cost of healthcare.
https://www.usda.gov/media/blog/2017/08/21/cleaning-illegal-...
> Blocking means making some sort of system call that will cause the scheduler to put the thread to sleep – could be a wait on a futex, waiting for data, or an explicit sleep.

Speaking of which, do you know of a tool that would allow to ensure that e.g. your RT threads won't do bad things - short of putting a breakpoint on every syscall-like thing ? I wonder if at that point the audio community should not look into developing some clang-based static analyzer to enforce that.
How can we punish African governments for shutting down the Internet?
I had a good one, but I moved it to my other monitor and it got cropped because ShareX doesn't know about HDR and blows out white pixel color ranges, but you get the idea https://i.imgur.com/cYbxStI.png
The list as a whole reflects their curious priorities in a definition of the decade.

As for Gone Girl itself, I'm struggling to see it's importance.
The war game that could have ended the world
More like 14 lines of code that export 2 other far larger libraries to do the work.
C++ relies heavily on error handling using out-of-band exceptions. f(g(h())) needs h and g to return meaningful values rather than errors, constructors can't return errors at all, and member initializer lists can't check for returned errors.

You could make a dialect in which every method returns an error and every object has an init(...) method instead of a ctor, but it would be closer to imperative VB than idiomatic and readable C++.
I disagree somewhat - even within a society with a mix of cultures, there we be both tendencies to shared experience, and particularly notable events and themes within that.
Or you can enforce it with readonlys in TypeScript. Not enforced by the engine of course, so there's always the danger some 3rd party component could get its fingers in your objects, but any of the devs on your project will be prevented from modifying their objects directly.

TS and immutablejs work together surprisingly well. One enforces immutability via static analysis, and the other creates (relatively) efficient datastructures predicated on the assumption of immutability.
When you think about it for a while is not only illness that can happen, actually everything could truncate your life in a second. So try to enjoy every second you have, I think it’s the best advice.
I haven't looked.
I may misunderstand something here. How does this help OP?
Probably not, but not having to depend on such factors is good engineering and security best practices.
It's not a mathematical proof in the literal sense (yet), because there are known soundness bugs in Rust that are yet to be addressed; moreover the interaction of borrow checking (including interior mutability) with the traits system is poorly understood and has not been proven to be correct even in a simplified model. It should yield a meaningful level of checking, and if nothing else, the ergonomics is way better than just running a static analysis on C/C++ code (setting aside the question of whether current static analysis tools can even check for possible data races); but you shouldn't rely on it to that extent.
Yes, this is how Python works. Thanks for reminding this obvious fact.
Show HN: A simple, yet powerful micro journaling app
I mostly write javascript now for my day job... But python is nicer for scripts... The asynchronous nature of node makes it a pain for me
There's no reason why they couldn't go to the IRS though. They could quite easily maintain this information and make it easy for you to update it come tax time if it's changed.
Yes, I know about Python's extensive ML libraries.

Didn't know about it being the default language for Raspberry Pi libraries.

Thanks. I've been planning to look at both learning some ML and doing some small Raspberry Pi projects. That's good motivation for diving into Python!
The argument is incorrect. I may want to say something in the future but I may not want to hide something because one is legal and other is illegal unless there is a dictatorship.
Wednesday: God’s Timescale
While I applaud the entreperneurship, there is something wrong with the numbers here. 16 spin-outs in one year, at least 16 "founders" of biotech companies...last time I checked most research labs have more than one PhD-trained scientist. We can't all be founders. Someone has to work in the lab!

Starting a company can be hugely educational but probably not if it's just an exercise in PR and fundraising, which all biotech companies are until they can actually start selling (usually years after inception).

So, not to be negative, but would like to see something a bit more critical and less gushing from Nature. It's a thinly veiled PR piece for the Church lab.
Thanks. I really don't have any idea about the asyncio syntatic sugar that you mention. Can you point me to some books / articles?
Apple cuts 10.2-inch iPad price in China by up to CNY500
I wonder how many of those replacements would have been unnecessary with obesity-preventing lifestyle changes.

"What's more, the demand for [total knee replacement] surgery seems to parallel the rise in overweight and obesity in America. In fact, the study showed weight problems account for 95 percent of the increased demand for knee replacement.
https://www.medicinenet.com/script/main/art.asp?articlekey=1...
India’s Democracy Is Facing an Existential Threat
Entire Shrek Movie in Just 8MiB with AV1 and Opus
It's a shame that there's no mention of the migraine related breakthroughs. Two new types of drugs that target CGRP (Calcitonin gene-related peptide) were approved and brought to market. One type is sold as injections and is used to prevent migraines, the other type is a tablet that's used to stop an acute migraine.

About a billion (!) people are affected by migraines, so any new treatment has the potential to be very beneficial.
Honestly, variations of this question has been asked too many times to be taken as an “honest question”. See also: Rails developer hijacking Django thread.

It’s weird lots of Ruby developers feel the need to shout “don’t forget ruby!” when nice things about Python are posted. Just take your pick, who cares.

Btw, I know, assume good faith, yada yada.
Duplicating arrays of objects is well-trod territory as far as the engine goes. Your array isn't storing all the content, just a bunch of pointers to the old objects, so "a couple thousand" entries in the array is trivially small. Once you're dealing with millions you may consider using immutable.js, since that uses datastructures optimized on the assumption of immutability (eg less duplicating of whole arrays, more storing only the deltas).

If you're using jira's web UI as an example, you'll find the overhead of array and object duplicating to be a tiny fraction of the cost for actually rendering all those items in browser. Probably in the one-billionth or less range of the total cost.
Tree rings show the Americas are prone to catastrophic, simultaneous droughts
Hubble's data (for his "constant") was all over the place, he just drew a line AFAICT and ignored all the data that didn't fit it.
Edit: the article has been kindly edited, thanks to the author
Have there been any canonical or defining books on these topics? Most of them are still playing out so a definitive book would be a huge surprise, and in most cases downright impossible.

Austerity is a policy choice, so any exploration will be deeply and inherently political. Economically, there have been wider views of the current cargo cults in economics, such as Piketty's Capital in the 21st Century, or Keen's Debunking Economics. I'm a little surprised to see mention of neither.
I managed to run Pocketsphinx on a pi zero w in 2018, wake words only
Author here. Thanks for noticing the mistake! It's fixed now :)

Happy new year!
A decade wasted rearranging the deck chairs on the Titanic
This is a breakdown of where the money would come from to pay for UBI: https://freedom-dividend.com/
Make 2020 the Year of Less Sugar
I'm sorry but, I can't believe we're already on the 20s, and still one has to hear(read) opinions like this. Seems like some members of the opensource community will never learn the lessons from the past.

And I'm not talking exactly about all the duplicated effort that packagers use(d) to perform in order to distribute software for each distribution. I'm especially referring to the gatekeeper mentality of curating/releasing software.

Letting developers distribute their own software is not negative per-se. Can negative things happen out of this? Right, of course, whenever you give someone more power, there are more chances that it can be corrupted. But:

a) Thanks to the sandboxing technologies used in the Linux packaging solution of this century (e.g. flatpak, snap), one doesn't need to worry so much about how evil a developer is.

b) If a software project is truly opensource, there's no reason why the packaging efforts on top of it cannot be opensourced either. What does this mean? That its packaging approach can be forked in the same way as one would do with the sources of the project itself.

One could even fork the packaging of a project, not just because it contradicts their principles (e.g. an app that requires too many OS permissions for what it's meant to achieve), but also because it doesn't provide good stability (e.g. an app which keeps sending updates marked as bugfixes when in reality it's bringing new features that introduce regressions).

What my opinion boils down to is:

- There shouldn't be any difference between downstream and upstream. If you think a developer is not packaging well their software, why not send him a PullRequest instead of to other group of developers (packagers) that didn't write the software originally?

- Developers might suck at packaging, granted. But they also suck at UX/UI design, but end up doing the best thing they can. Ultimately a designer might join them to improve the project, why not letting also the helping hand of packagers contribute to upstream directly, instead of setting up their own cult?
Advisory Panel Says EPA Rollbacks Lack Scientific Rigor
I believe the supposed beneficial case of blocking vs spinning can't be captured well by those categories, as it's "contended, but not for long" and "contended, but for longer".
That's the reason for the "may have a bit of capped spinning before waiting in the scheduler".
Except no new money supply is created, hence little to no inflation.
xsv can be inserted into a shell pipeline at the drop of a hat, regardless of how much data you have. Using a DB is typically much more effort. Just look at the other comments in this thread. Tons of complaints about it being slow and trying to finagle indices to make it better.

Sometimes functionality isn't the only thing that's important. Expression can be just as important.
No, even on RPi 3 both pocketsphinx and Kaldi are very slow to the point of not being responsive enough for real use.
In regards to no. 3: I recently set up a new Win 10 laptop and was super impressed by the automagical driver installation.

A few days later I went on a work trip to somewhere where internet connectivity is a luxury and discovered basically all of the drivers were crap. Intel iGPU drivers didn't support QuickSync, trackpad scrolling worked in only half of my applications, the NVIDIA GPU was burning battery on idle and instead of even just using it in standard HID mode, it made my MX Master mouse switch over control of advanced features to the software, while not actually installing said software and opting to rather pop up a big ugly green dialog every 5 mintues, prompting me to install Logitech's garbage software utility.
Seems like this project uses sphinx as the actual recognition engine. This is just a wrapper.
also note that Java has checked exceptions, and a lot of programmers still opt to deal with errors in a lazy way.

Same for error codes, go has explicit error, and several programmers still opt to deal with errors in a lazy way.

I think the syntax and semantical contructs a language offers doesnt matter much when a lot of programmers dont have time and/or discipline and/or priority to deal with error cases.

Error handling is hard. Also, since programmers in general think less about errors, library often dont expose errors in helpful ways and/or well-defined ways.