skysight-inc/HackerNews huggingface dataset:
I avoided having to learn Javascript in-depth because I thought its type system was like coding in the dark.

Your IDE would either return all possible methods of all possible objects in your whole project, or wouldn't return anything at all.

You need to either memorize the API of whatever object you're currently working with, or have its API open in a separate window to always see what's what.

Wait, no, I still think this is true. I discovered Typescript a while ago and it is a joy to work with. I don't understand why developers would subject themselves to the modern equivalent of coding in notepad.exe when they could use a language that actively helps them.
Well, I've linked to your story from Twitter now: https://twitter.com/txtpf/status/1102324815757799424
A few years ago I had a personal project where I needed to load some of Wikipedia's tables into MySQL on a cheap computer. On my first attempt to just load the downloaded SQL scripts, the computer churned for 3 days before I called it a quits on the attempt. This article inspired the alternative approach: strip the first few lines down until the first Insert collection of inserts, use sed to convert '),(' to \n, then use sed again to strip the first opening and the last closing parens leftover from the earlier operation. Now we have plain CSV. Import it into MySQL. The whole operation took about an hour or two, including importing into MySQL. Yes, I lost the indices, but it was a prototype, so nothing much was lost.
A volume dampener for each and every car stereo within a 50 yard range, as long as they are in that 50 yard range.
Well it depends how the AI operates, is distributed, etc. Any AI that affects people and populations in multiple regions will need to adapt to the laws in those different regions. Which could mean a lot of extra complexity, even if you limited it just to the US.

You can't assume the same AI setup that'd work fine in the US would work in the UK or vice versa, because the laws aren't consistent about many elements. Either way, it's still a complicated thing to figure out.
Type-level programming. It basically guarantees more correctness at the cost of steeper entry barriers. In consequence you end up with (some extension of) Haskell and a probably correct implementation that no one can start to implement ;).
Much prefer Flutter.
You can pay someone the exact same target-compensation, while still shifting it away from cash, and towards stock. For example, giving someone a stock grant of 1000 shares of GOOG, instead of paying them $1.1M in cash.
As someone who recently worked with QML a lot, resizing is definitely a pain point. I have yet to see a great pattern for handling this, as there's definitely no one-size-fits-all within QML.

For multiple pages, you can create multiple Windows / ApplicationWindows for one app. It definitely could have more support though - as for now you have to control these via C++ Qt code.
That's how. The question is "what problem do they think they're solving"?
Java by default has a hard memory limit which when hit causes services to hang in a semi-responsive state rather than exiting cleanly, requiring every user to hand-tune limits and carefully setup health checks and monitoring. Two decades in, they added a non-standard option to instead exit.

If they had instead made the default to act like almost everything else it would have worked with standard process monitors and limits with no effort required and a substantial fraction of the downtime I’ve seen for Java applications would never have happened.
> You don't know more about the person's situation than the person himself.

Considering he had a job somewhere else, obviously he is employable.

> As long as "wherever they are" means "somewhere he can go by foot".

Or people can come pick him up. Family can buy him a bus ticket. Friends can give him a ride.

> No, the invisible hand of the market is stopping him from living his life because of his negative "money score".

Nonsense. It might be limiting his ability to live his life in a way that is comfortable/convenient, but it is not prohibiting him in a way that actually limits his personal freedom.
The State of Facebook Business Model in 2018
"Any sufficiently complicated C or Fortran program contains an ad-hoc, informally-specified bug-ridden slow implementation of half of Common Lisp."

In the Emacs case, Stallman just made that explicit, implementing Lisp from the start.
So what?

If I rent out an apartment in Paris, does it really matter if I collect the money as Pierre Francois, a french resident, or Pierre Francois LLC, a Delaware corporation? It mostly doesn't - I'm bound by French rent law, and pay french taxes related to rent either way (Income is more complicated).

Such a law is very simple: "You pay 5% of ad/media sales for the privilege to send data to french IPs", residence of person/corporation collecting the money not important.
A Chat with Sex Toy Entrepreneur, Lora Haddock
Dave's Basilisk
Can't help but wonder if there is a "trickle down" morality effect from the leaders of such powerful organizations like FB.

Can the character of executive leaders be echoed down throughout the organization all the way to its users?
Arctic ice loss threatens indigenous Alaskans' way of life
It's been awhile, but if memory serves tons of stuff was using the nightly compiler.

So, yes buyer beware. But when the whole ecosystem does it...
You can do both. It's not an either-or scenario like you are describing.

Also a very tiny amount of people are working on space right now (maybe 500,000 between NASA, SpaceX, Blue Origin, ESA, ISRO, JAXA, etc). That's 0.00625% of the world's population.
"So Buddha walks into a pizza parlor and says: "Hey, make me one with everything."

I don't know what/when this happened to Slashdot, I remember that most of my life I have been avoiding the comments sections of almost every website, and then I met HN :) and life changed. This is perhaps the best self-curated forum and I believe that the main reason is that we all "got better things to do with our time", and we are coming here to exchange opinions and views with similarly productive people. Maybe this is it, most of us are productive and respectful of our AND other people's time and attention.
I just love it when I enter a store and someone who followed me go tell the seller all the shops I visited, what I shopped, for how long, what I searched and what I read

We have to stop this non-sense, and stop calling this « innovation »
It's a layer of grass under long exposure. It looks exactly how I would expect.
Your code is doing something pretty different from the examples above. You're just calculating the nth fibonacci number, not creating an infinite fibonacci _sequence_. Eliding the explicit recursive structure is the point of the exercise!

Admittedly Python's facilities for doing that with some mutable state are pretty nice:

from itertools import islice

def fib():
a, b = 0, 1
while True:
yield a
a, b = b, a + b

list(islice(fib(), 10)) == [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]
They may see it that way but I'd argue it's a pretty myopic view. The US and the EU do most things better despite their political issues. Only focusing on their flaws is like rejecting free cash because some of the notes are dirty.
I think you have misunderstood me. I see it the same way as you do. I’m ready to spend it all while trying, trying, trying... But people in a similar situation as mine keep telling me that I’m bold for taking such a big risk, that they admire my courage, and that they don’t have the same risk appetite as I have. What I’m trying to communicate though is that what I’m doing is not risky or bold. I’m not risking anything consequential, even if I lose 90% of my wealth.

From my own anecdotal observations, people with little to lose (no wealth, early career) are much more willing to start their own business than someone with a successful career and $1M in the bank. This was the point of that paragraph you quoted.
Your Dusty Computer from the ’80s Could End Up on TV
Each SRB consisted of 11 cylindrical steel sections. After flight and recovery, these were dismantled, refilled with solid rocket fuel as appropriate, and then reconnected to form a new SRB with all of the O-rings, etc.

So also a complete rebuild, with reuse occurring at the segment level, not of the whole booster assembly.
Should We Do Philosophy Through Dialogue or Debate?
The specifics get a bit annoying and pedantic. I'm guessing you were dealing with Qt4, PyQt, and Python2? PyQt was a separate thing written by Riverbank Computing (sip was the binding interface). The bummers were it wasn't open source and had separate licensing. In 2009, the Qt people (Nokia at the time) released PySide. Shiboken is the new binding interface. It was mostly compatible with PyQt, open source, better license, and was more idiomatic with Python (Python unicode strings instead of QString, more decorators on functions instead of having to call specific functions in a specific way).

Qt5 was released in 2012. A lot of the user-facing focus was on QML. QtWidgets (the only part I'm familiar with) are now considered "feature complete." That means they're not deprecated, but not getting any new development. PySide2 is PySide with Qt5 support. That took awhile (especially to get Python2 support) and PySide2 was later branded "Qt for Python" even though the imports are still "pyside2." During this time many people transitioned to Python3.

Sorry to throw out so many things. A lot has changed, not all of it might be relevant to you, but I figured I'd mention them so you have a reference point if you want to jump back in or look more into what has changed.

Now to actually address your question. Pyside2 is a pretty big step towards making Qt more idiomatic to Python. I can't speak definitively on the rest of the transitions, but I don't think much has changed. Maybe QML and Python3 are more idiomatic?

After using them for a decade, I feel like idiomatic Python just doesn't have the constructs needed for an event driven gui so it has to lean on C++ and other things Qt built. Or Qt integration was done so long ago, it wasn't built around newer Python things like asyncio. I also can't speak too much to Python3 since my day job still uses Python2/PySide2/Qt5, but I've been looking at the new Python3 packages for years. Unfortunately, I feel like a lot of the async stuff added to Python isn't as terse and elegant as seeing something written in C ported to Python. Maybe I need to recalibrate what I think of as "Pythonic" when I get to use Python3 day-to-day?

As an anecdote of Python lacking necessary constructs, I've stumbled on co-workers using parts of QtCore outside of any GUI because it was the best library they had handy. I wish I could remember some of the use-cases, though.
I've long wondered whether it's possible to buy social status. It's tricky because having wealth gives an automatic status increase in most places. Of course, people need to know about the wealth, hence the prevalence of fancy cars, jewellery etc. So those things are used to broadcast wealth and thus hopefully increase social standing. The social networks mentioned in the post don't create status directly, but rather are used to advertise the status or wealth that was already there, which may have a compounding effect. But none of these methods are very efficient, I wonder what a more direct method would be? Something like "rent-a-cool-friend" or any of the Fyre founder's various (fraudulent) schemes.
It's a shame the author never actually ran the code, it has bugs.

For example, the Factorial next() function should be:

return new Factorial (index + 1, value * (index + 1));

And of course the iterate line should be:

Stream.iterate (Factorial.SEED, Factorial::next)
> What's the correct way to use typescript...

You write TypeScript the same way you write JavaScript. It just enforces a lot of the proper discipline and practices that JavaScript doesn't, and it doesn't let you incorrectly use APIs.

> you're explicitly asking for things you know you have in your document, but it reports an error

I'm not 100% sure what you're talking about, but I bet you'd get a great answer on StackOverflow by posting example code and the error message.

First of all, TypeScript doesn't know what's in your document unless you built the document with TypeScript objects. If it's HTML, TypeScript can't read or understand it.

My guess is that you're using something like "getElementBy..." and then TypeScript complains that you're using a value that might be null. You just need to check if the value is null and (for example) throw an error. Once you do that, any line after the null check will assume there's a value.

There are other workarounds when you're 100% sure you don't need TypeScript's error checks (like // @ts-ignore flags), but I strongly recommend against using them.

> using minimal jQuery

Why are you using jQuery at all? It's a solution for a problem that doesn't exist anymore. Just use vanilla JS.
SIMD in WebAssembly – tales from the bleeding edge
I don't think any country on earth is currently wholey self sufficient due to the nature of globalism. Nobody can cut off all exports without losing access to some necessary components or materials. A colony on Mars would have higher and more advanced needs to support and protect human life.
That's not what I'm talking about.

I'm talking about fields where one study includes 40 tests each of which has a 1 in 20 chance of being statistically significant by random chance, and the 2 results that happen to pass that laughably low bar are published.
This (and WebEngine) is why we switched to Gtk.

I'm sure it's a nice book, though.
Here's the problem though:

We are many who remember far more talk about the next ice age than about global warning in the eitghties.

Blame it on media and schools, but for each scientific article you refer to we'll tell you about two instances of media and schools and what not who said otherwise.

And while I and you might agree it doesn't help when average Joe (with good reasons in his opinion, as well as support from certain politicians) feels like media and "the left" and "scientists" and what not are out to make hiss life more miserable.

And I must say: if anybody wants to argue against AGW, proponents are serving golden arguments on plates of silver everytime they:

- refuse to discuss the matter in terms of percentages and tons of CO2 (because people are supposedly to dumb)

- fly around to climate conferences in private jets (yes, I know the amount of CO2 released from these hardly matters, but they are rubbing it in on poor people everywhere: we can live a life in luxury, it is you who'll have to lower your expectations.)

I'm not saying you are wrong - and personally I'm living more than carefully when it comes to climate (I repair stuff, I buy used, I travel by train, last time I took a plane is years ago. It actually like that lifestyle and it makes sense in a number of ways. I've also worked significant parts of my career in greentech.)

I'm just so fed up with people here and elsewhere not bothering to even try to understand what it looks like from the other side.

You should. Because if you want a chance at all then you need to win the hearts and minds of those people.
"No astronauts or humans were on board the maiden flight"
> Considering he had a job somewhere else, obviously he is employable.

I'm sure there are ways for them to improve their situation, but I'm also sure there are ways to improve your social credit. It would make for a bad incentive if not.

> Or people can come pick him up. Family can buy him a bus ticket. Friends can give him a ride.

Restrictions exerted by the market are easier to bypass than China's social score system, but nevertheless they exist.

> Nonsense. It might be limiting his ability to live his life in a way that is comfortable/convenient, but it is not prohibiting him in a way that actually limits his personal freedom.

Limiting someone's ability to live their life in the way they desire is what limiting their personal freedom is.
I addressed this in another comment, but it is not always possible to start something on the side with a full-time job. In my case, my employment contract prevented me from doing that. And even if it didn't, it would have been hard to find the time between work and family. If I didn't have enough savings, I might have taken a different approach - maybe start consulting or freelancing while boostrapping. But in my situation, I preferred to just focus on my business. I still have the option of doing freelancing/consulting if the circumstances require it. And obviously, I also have to option of going back on the job market if I don't manage to pull this off.
I agree. I didn't seek it though, I was barraged with it.
This article might be missing its intended audience here because the word "Spark" in the title was accidentally changed from "SPARK."
Part of it is also that HN is a bit of an echo chamber and unpopular opinions get cast aside very consistently
Maybe China can invest a lot more into the technology of today because it doesn’t have old, ailing infrastructure and debt to worry about. The US’s infrastructure was the envy of the world too when everything was new.

I’m curious how China’s pre-UHV power grid investments compare to the US’s. Did China build its conventional infrastructure at prices already reduced by the global market and therefore pay much less than the US did when it was trailblazing, like China is today? How is China going to manage it’s by-then outdated infrastructure 50 years from now?

Maybe more important for “long term thinking” isn’t how can we build the coolest thing today, but how can we do a decent job of keeping pace with innovation.
I realized just how useful shell scripting is (bash) when it occurred to me a simple five line script I wrote to erase and reclone my main work repo is the single most useful piece of code I’ve written in my first year as a web developer. God that’s a time saver.
As someone who appreciated C and C-style languages I hated on python for a long time.

I disliked python because of syntactical annoyances,mistakes I would notmally iron out at compile time now happen at run time and version fragmentation with no backward compatibility at times. On that last point,new java versions for example would deprecate features over time allowing the programmer the option of enabling these features. I still think the simple things like mixing tabs and spaces shouldn't have caused a hard failure,warnings or ability to override the deprecation would have been nice. Not only that,I hated how I would ship a python program having tested it in one python version and five years from now the default python version on linux distros (or default installer for windows) would install an incompatible version,I hated how users of my program would have to figure out the correct version.

But I no longer hate python mostly as a result of having seen how easily it has helped me solve different types problems that are otherwise difficult or time consuming to solve. At the end of the day,it gets the job done well,is easy to learn,harder to screw up in and has saved me a ton of time.
Unfortunately trees can't reclaim co2 at the rate we release it though. Seems like supplementing that strategy with novel solutions like this makes sense.
OpenAI Shouldn’t Release Their Full Language Model
Except, if you've looked at enough of these, you know that they are often very misleading, especially to the untrained eye. It's a fantastic tool for people to pretend that they have "proof", but all it takes is showing the ELA of a photo you know to be real to realize that the tool is more complex that it appears at first.

Here's two taken from NatGeo's best photo's of 2018 [0]:

https://fotoforensics.com/analysis.php?id=a29db81cd8bfc2e23a...

https://fotoforensics.com/analysis.php?id=7a9b396c6b9ee467d3...

To make things worse, you used the low-res/low-jpeg-quality version of the photo from the blog, which inherently have more error. If you use the original 2100x3100 photo [1], you get a much different result:

https://fotoforensics.com/analysis.php?id=c6c3a0784144868a56...

[0]: https://www.nationalgeographic.com/photography/best-of-2018/...

[1] http://time.com/3992951/iss-photobomb/
he 'complained' about people calling the shots fake, not about the processing done after the shot was taken. The shots are real, but the result is photoshopped. That's a different thing.
perhaps the loopholes should be exposed to the general public then so that we can hold the public officials accountable to fix them.
The market decides how much to produce, capitalism scales up the best producers.

Producers want monopolies but somehow we need to keep a flow of promising new producers launching so that doesn't happen, because it screws up the market (the monopolist produces less and takes more for it).
I made the decision to do that project in C, in part to be better at it (I did a bunch of small things with it, but nothing serious). Since I had to interact with Redis' C API, the choices were basically C or C++. I hated C++ much more than C having worked with a lot, so C it was. I can't say I didn't miss things like having shared_ptr and, you know, having destructors, but all in all it was a good experience. (side note - I now work a lot in C++ and sort of liking the newer stuff like lambdas for example)
The big ones since the 50s are Medicare, Medicaid and COLA-adjusted Social Security.
I'm curious why this authorization service is CPU intensive. The article says it's basically deciding if you're authorized to publish a package. It sounds like the sort of thing that would talk to a database, or a cache like redis, and therefore mostly be IO bound itself.

Is this maybe parsing data structures itself?
I completely agree with all of that, but I don't see what that has to do with your choice of editor or OS. If you use Vagrant/Docker, all your build tools should live there, so it doesn't matter what OS you use. I don't see what "never-ending loss" you face when people use different OSes or editors; I've never faced that in practice as it literally doesn't matter.
"Newsom’s shorter bullet train plan likely to run out of money before completion" (79 chars)

"CA governor's bullet train plan likely to run out of money before completion" (76 chars)

"California governor's bullet train plan likely under-funded" (59)

> modern digital news styles

A lot of modern headlines, even in highly-reputable publications, have been affected by the BuzzFeed full-sentence-clickbait style, which makes it a lot harder to skim for topics you want.

This works well on publications' websites because they have columns, categories, tags, and by-lines that help identify the topic better. HN has none of these, and the host domain next to the title is becoming less and less useful (mostly due to Medium).
Modern editors such as VS Code have type inference and you can add special comments above the functions to list they types