skysight-inc/HackerNews huggingface dataset:
"Learning a new language via Advent of Code turned out to be a great idea. I highly recommend it."

I'll second this: Using a set of progressive problems is an excellent way to get used to actually writing code in a language.

"My first stumbling block was parsing. Almost every AoC problem starts with parsing lines of text from an input file."

Scheme. Guile. The PEG parsing module. (There's no kill like overkill.)
Absolutely. You're not saving money buying a brand-new $9k car with zero resale value. You're honestly better off just buying a used Corolla and paying for gas or a used EV like you mention.
I deleted my personal account and created an anonymous one purely for FB Groups.

The first 3 days took a lot of getting used to - like quitting smoking. I realized I had a hand-fixation of pulling out my phone, hitting the home button and going to the app. With no social connections, it became only for reading new posts in the Groups I'm attached to now (retro computing) which are not nearly as frequent nor as acidic.

It's sort of the new version of Forums, really. And since they are moderated, the conversation is very interesting/helpful and on point.

I'll never hook up the personal social graph again.

And yeah, after about 2-3 weeks of being unplugged I wasn't twitchy about it anymore. I thought I'd have a giant gaping hole after using it for 10 years. I was wrong.

Life is better without it.
Melting glaciers reveal ancient landscapes and long-dead diseases
Or until the user switches to alternate browser like I will if Firefox doesn't autoplay soundless animations.
Does the meaning of the statement change if you interpret “the WebAssembly specification team” as referring not to the formal group that got together once it was decided that WebAssembly was “a thing”, but rather to the group of people designing the binary representation of asm.js back before WebAssembly existed? I would think that they were indeed “flying blind”, in the sense that the only “compiler” they were working against was the JS interpreter, and in the sense that they weren’t yet conceiving of there being a formal abstract machine separate from the JS interpreter (this formal abstract machine being what “WebAssembly” essentially refers to) but rather just compiling to “a subset of JS” in a way that seems to make the code run efficiently.

I.e. just change the one word “WebAssembly” to “asm.js” in the sentence you quoted. Consider it a typo. Does the history now read correctly?
then again the original comment is also in either bad faith or ignorance since he's comparing humans to plants when they have completely different metabolic systems.
https://www.reuters.com/article/us-italy-crime-food/italian-...

https://www.oliveoiltimes.com/olive-oil-basics/mafia-olive-o...

https://www.forbes.com/sites/ceciliarodriguez/2016/02/10/the...

From the last link: "It's reliably reported that 80% of the Italian olive oil on the market is fraudulent."

Combine that with Camorra dumping toxic waste and poisoning vast areas of the Italian countryside and it's pretty obvious that Italy has a huge problem.
The native service discovery can be enough for small deployments with a handful of services where the complexity of operating a service mesh is not really worth it.

I've seen plenty of those from smaller startups.
> The climate skeptics don't say tree trunks will get wider, they say there will be more plant biomass.

Speculating that plant biomass might help mitigate global warming doesn't really deserve the label "climate skeptic." It's already confirmed that rising CO2 affects crop growth rates.
Sure, if you've remembered to do it. And again for your laptop, your phone, your tablet, your work computer, your partner's laptop... and then again once you've updated your OS, or rebuilt your computer.

I feel like I'm turning this setting off about once a month, usually after it has done something embarrassing or highly irritating on public transport .

This should have been the default since browsers were first able to play audio.
Having background video headers, and small videos (instead of GIFs) on websites is super common.

There's also simple animations between text, and alike.

There's no point in breaking those, since they don't emit any sound when they're on a background tab anyway.
Russian spam accounts are still a big problem for Reddit
Why not try Firefox today?
That sounds like a bug, but knowing Google, it's a "bug".
>granted at a 28mph top speed they don't need much production(sic)

I have to disagree. When it comes to crash safety I am usually much more worried about a large SUV with bald tires than I am about crashing my own car. That SUV is on the road regardless of what you drive unfortunately, which drives the arms race of ever safer (and bigger and more dangerous) vehicles.
Stop watching mainstream television.
Why not use resistive braking to warm up the battery pack?

This is how locomotives implement braking; the drive motor operates in regen and the current goes to massive grid resistors. There are no brake pads.
The old fashioned way - remember their birthdays and anniversaries, call and talk to them regularly (once a month or two is fine), meet them if they come to town or you visit their city, make an effort to be with them during important events (death, birth, marriage, new job etc.) as much as possible.

It doesn't matter if they are too busy sometimes - just do this diligently.
Partly that is because you need to allocate money for upgrades and maintenance upfront otherwise you will get stuck in a pit of having no money because of old infrastructure and having old infrastructure because you have no money.

The only way to make it work is to hold the private sector accountable of the quality they produce.
From what I can tell, the previous crew did not get lucky, they just followed the checklist which would have solved the issue in this case.

Auto-trim beyond the elevator authority is not a problem as the pilots can take manual control of the trim by grabbing the trim wheel (its in a very obvious spot on the 737).

The actual fix is hard as adding another alarm can get tricky from a UX perspective during an emergency. Probably the only “fix” is to reinforce the value of following the checklist.
Progress is the reality for most of the world. War and poverty is much than it was ten, a hundred, thousand or ten thousand years ago. On pretty much every metric humanity is succeeding and moving forward.
Five Things That Scare Me About AI
People do good things and bad things. If in the presence of a combination of good things and bad things, you focus on the bad things and the bad things dominate your subjective experience of existence, you are probably suffering from depression.
You actually hit it nail on the head. I'm a British guy who married an American woman and I've been in the US about 3 years now. I live in Gary, IN (the nice beach community, south of Lake Michigan) but the I hear the daily horror stories of things that occur here. I doesn't bother me too much, I think shit happens everywhere and we're good people (as in, we're not looking for trouble), and I was raised to have my guard up (out of sight/out of mind etc). But, I think you're right. I've never felt more doom/gloomy since I moved here, and I literally have the best life I've ever had.

I plan on having kids here, but hopefully moving back to the UK at some point, to benefit of our healthcare, schooling, etc, but we'll see.
Deep Dives on Xanadu and Ted Nelson
This is a major part of it. They get the military toys and just left to run wild. Even the most basic points like not point a weapon at someone you dont intend to shoot are missing completely.
I think there was a lot of naïve belief that with a love of open standards and "Do No Evil" as unofficial mascot, even with all that data they might be reasonable "overlords".

I know in some of my circles we didn't start to feel trepidation until they acquired dot-com era mustachioed villains DoubleClick, and certainly the point of no-return for me was G+ killing Reader and XMPP access in Talk.
Yeah, I probably visit YouTube to read the comments.

And Giphy.com to admire their logo.
> Many people feel bonded to a community and its values even when engaging with a mythology that is obviously fictitious, as for example when people go to the desert to burn the man every year; or dress up like aliens and head to Star Trek Vegas.

Seriously? You are including hobby clubs of sorts into the definition of religions in order to support your claim that many religions do not ask for faith?

So, atheist associations with regular meetings are religions, too, then, I suppose?
Didn't chrome just do this as well?
> I would humbly suggest you look for historical figures who had a hard-headed and realistic view of the world, but who were also positive and healthy in their outlook

For example, the Meditations: http://classics.mit.edu/Antoninus/meditations.html
Not according to Apple. They say it is “1334-by-750-pixel resolution at 326 ppi“[0]

https://www.apple.com/iphone-8/specs/
> A frozen battery will barely regenerate at all, at 0°F it’s actually disconcerting when you lift your foot and the car just... coasts. The display does have a gauge showing how much regen is available, so it’s not a surprise but it literally feels weird.

Nondeterministic regenerative braking as described here seems like a serious bug in a vehicle.
Every day I see people behaving in shitty ways, not giving any consideration for the people around them or the place that they live. It's like the tragedy of the commons pervades every public space in a city. Nobody feels ownership, nobody cares, nobody feels responsibility for their actions.
Cyber Warfare – The Leading Countries
Airports are publicly funded?
I've been following this project for roughly the whole time he's been working on it.

He's made some pretty incredible progress - from scratch, he's done the following:

* A complete WE32k processor emulator

* A complete 3B2/400 Emulator

* A complete BLIT (5620) Terminal Emulator

The fact that I can have a complete SysVR3 system now, which is important for unix history, is very very cool.
American Colonists made a little ice age
because it's too easy to typo:

`if foo == true:`

as

`if foo = true:`

which results in horrible subtle bugs
Several of the reports I've seen have said we will get more biomass, but most of it will be plants we generally refer to as weeds.
> Microsoft's Chromium-based Edge can't arrive soon enough.

What about Firefox?
Apple's brand of 'evil' was the capricious rules of the App Store walled garden and Apple's rent seeking on iPhone/iPad accessories. Then there was the whole wage suppression thing.

At least with Apple, they never seemed terribly interested in world domination.
Cost plus contracts are a huge problem for efficient public funding of projects. Also see NASA'a SLS rocket versus SpaceX's falcon heavy. SpaceX's next generation rocket is going to be so far ahead of the SLS in capabilities and cost it is ridiculous to continue the NASA program. I would not be surprised if the SLS program will even survive the first launch of the BFR. Hopefully they will be able to cancel it at that point and use the funds for funding sending people to mars using SpaceX tech.
> low density of purchase power

I think the commenter was referring to the fact purchasing power is not dense (ie, dense areas don't have as high a purchasing power)? A little confused by this too.
Didn't downvote you, but while I've heard similar recommendations before, that's not a reasonable response to existential depression.

On the one hand, you're correct, one's outlook on the world does impact your mood. Humans are emotional and easily confused, and shifting your viewpoint can change your mood in powerful ways. Perhaps those books present a position from which to view the world that's useful in lifting one's mood, which shifts your attention away from things which are depressing and towards things which are uplifting.

On the other, if there are genuine facts which are important and which cause me to be depressed, it is important to me in my core values to believe those things to be true, neither blinding myself to their existence nor incorrectly believing them to be false. Changing a viewpoint will not cause those inconvenient facts to become false: They exist, they cause depression, I am aware of them, hence I am depressed.

I am willing to add facts to my worldview which are uplifting and counterbalance the depressing ones. I am willing to adjust priorities and weigh the importance of the depressing ones less and the uplifting ones more, in proportion to the degree that they are or are not important.

I might be willing to cheat a small amount, and allow myself to lean my viewpoint slightly to the happy side of the correct position if that position is more productive, but there's a fairly low limit to the self-deception I can tolerate, even if it causes me to be depressed.
>The more you know about the world and tech especially, the more you will get depressed, IMO, maybe I'm wrong.

The problem is that you can't say that today -- depression has to be all about BS "chemical imbalances", and never about the sorry state of the world and/or people's personal affairs.

Even something as simple as artificial light or enforced working hours, and commutes are nothing like people have evolved for millennia to live with -- even less so screens, sedentary work, constant barrage of psychological manipulation through ads and tv and social media, and so on. Add to that all kinds of crazy rules we impose to our lives, and societal pressures unheard of in older times (where the main concerns if you've made it to adulthood were mostly getting by with enough food), and its a wonder not everybody is depressed.
Job loss due to AI – How bad is it going to be?
You think others are being illogical when they make decisions that don’t appear logical to you. However a more logical conclusion is that others are acting in a logical way and you lack all the information they have about the decision.
Or, you know, not all periods have a balance of "good things and bad things".
I wondered if anyone would pick up on that. :-)
The Model S and X have a dedicated battery warmer, the Model 3 does not as a cost cutting measure (it uses the motor windings to heat the coolant loop, but it appears this solution, while clever, is inadequate).
There is no way these will be street legal in US.
Just 0% chance.
Selling something street legal is a huge hustle in US -> is why there is exactly 0 Chinese car manufacturers represented here (hell - no even european renault and peugeot can get established) -> just a huge lobby & big & politics & patent war stacking up against this.
This feels very Perl-y in the example given, in that it requires that you know what yet another operator means to read code that uses it. Since Python is supposed to be “executable pseudocode” (roughly), this kind of new operator might increase the amount of learning that a beginner has to do to read others’ code. I hope that this decision does not pave the way for more like it, because it would make Python code much less readable to someone who hasn’t studied the new operators yet.
Go away Russian shill
To reduce the chance of creating an assignment expression when you intended a simple comparison. Yes, there's already a different operator for equality, but it's easy to mistake = for ==. Forcing you to use := makes it a deliberate act, and makes your intention clear to the reader.
Thank you for populating your articles with graphs and sources at qz, that makes it one of my favorite source of information!
Social media is not a platform to consume news. Nobody is vetting the content.
Ugh. :-(

The reason why the stack_ptr global approach is so great is that it’s only needed for frames that point pointers at stack allocated storage in a manner that eludes SROA. That’s rare. In fact I once saw results from A:B tests of some llvm based stack protector that used a thread-local stack_ptr thing for exactly the same cases to create some (more) secure shadow stack. The results suggested that this kind of instrumentation is perf-neutral. I think that it’s perf-neutral because it’s an uncommon case that tends to happen in large procedures in which the prologue/epilogue execution frequency is too low for prologue/epilogue instrumentation to have measurable cost.

So. It’s cool to complain about seeing atrocious machine code emitted from pathological code examples. But in the end it’s all about end to end performance and to my knowledge stack_ptr is neutral on real code.

(Edit: added details.)
10% of users will be thrilled and the rest will switch back to Chrome where the internet still works how they expect it to.
One of the best things I've noticed about aging is no longer caring what other people think. Some of this is due to having built some financial security, but I believe there is more to it than that.
This is why I use Brave on mobile and Firefox on desktop
A culture-hack for startups/scaleups [Launch]
Startup Culture Building Solution:
As an author/entrepreneur with domain expertise in people, culture and learning, and as someone who shares the maker ethos, I have been deeply interested about startup culture. cultureboom.co is my effort to actually create a system, which is scalable, and whereby founders can get a service that is 1/10th of the alternative and has 10x the effect.

Would appreciate any constructive opinion.
http://cultureboom.co
This can be a vicious cycle, and one which I'm actively struggling to break. I feel terrible because I eat junk food, and I eat junk food because I feel terrible. "Just stop eating junk food" is easier said than done in this case, unfortunately :|
Equifax can directly affect people's mortgage rate and everyone in the United States is forced to interact with them. US political figures can be concerned with both, but I'd say Equifax is a higher priority.
I like the basic script template that the author provides.

However, when I start development of new code I always use a script that starts off with traceback and pdb, something like this:

#!/usr/bin/env python

import traceback
import pdb
import sys

def main():
# some WIP code that maybe raises an exception
raise BaseException("oh no, exception!")
return 0

if __name__ == "__main__":
try:
ret = main()
except:
traceback.print_exc()
pdb.post_mortem()
sys.exit(ret)

This means that whenever an uncaught exception gets raised, I immediately get told what happened (full backtrace) plus I get dumped into the debugger, from where I can inspect why this happened. I liberally sprinkle assert()s through my code, so this gives me a good edit-run-debug cycle to work with.
Long and Foster goes straight for Amazon HQ2 buyers and renters
https://medium.com/@eventbrite/mobile-safari-whyyyy-73cf6103...

Here's a fix and description of the issue, but yes. The bottom of the screen will take trial and error. I've been messing around with fullscreen modals for interactive content, and iOS is the main problem, 100vh != 100% != position: absolute; bottom = 0; top = 0;
Downvotes are probably related to Jordan Peterson
It feels like the difference between today and projects like the hoover dam is a combination of:

* Private sector grift/contract savviness

* Government corruption or lack of authority to deal with above

* Individual safety prioritized over all else - work
stoppages for the most relatively minor of unsafe situations

* Environmental reviews/lawsuits

* Cost of modern materials/manpower

* Lack of will over the past 30 years to fund necessary maintenance

As a total layperson who doesn't work in either construction or government, I'd love to hear whether I'm on the right track here.
Apparently more oxygen does make bugs grow larger.

https://www.sciencedaily.com/releases/2010/10/101029132924.h...
I think that's a poor application of tragedy of the commons.

Also, in your example, I don't know how other cities' use would impede the funding city's use.
Applicant side: "What's the biggest struggle that you're currently working through?" coupled with "Tell me a bit about how you're working through that struggle."

I find this tells me a lot about the person who's interviewing me and the current climate they're operating in. Asking follow-up questions helps a lot here too. It's a good way to find out if the interviewer (frequently the hiring manager) is struggling with an unmotivated team, overly-onerous bureaucracy, lack of funding, staff turnover, outdated software, etc.
Ask HN: What have you found the worst interview question to be?
The opposite of the thread here:

https://news.ycombinator.com/item?id=19076131.

What are in your experience the worst questions, both as interviewee or interviewer?
Something magical happens when you have a one page reference for a language or tool. I just end up learning it much faster.

For me this is the best quick reference for Python (2.7 unfortunately):
http://rgruet.free.fr/PQR27/PQR2.7.html
Honestly i don't think it's going to be that bad. I work in a group where we do end to end IoT to AI. AI and statistical significance is a BFD. I'm not seeing anything indicating that AI is going to become a human brain equivalent in the near term.

Really that's when we should be afraid. Ultimately jobs will change in style and you may be do something different than you were originally because we're solving the problem differently.

AI and ML have become buzzwords mostly thrown about for VC and by people who don't really understand it.
Rust is a bit like Haskell: a very strong but also complicated type system that enables you to encode a lot of the logical restrictions into the API.

This is most notable immediately around the Result and Option types with their many modifiers (map, map_err, and_then, ...) and how strings work.

This can feel pretty awkward and cumbersome compared to other languages and that could be what you are describing.

It's not that way just for fun though:
Most languages hide the underlying complexity from you and 'punish' you at runtime if you violate invariants by eg throwing exceptions.
Rust forces you to deal with the invariants at compile time.

This makes you write safer code and prevents many errors, even "business logic" type errors if the API is right.

This is why "move fast and break things" aka prototyping is hard with Rust. (Note you can also circumvent many of these restrictions by using "unwrap()" et al a lot)

On the other hand, it gives you a high degree of confidence for writing and refactoring code: if it compiles, it probably works. (Assuming you were writing idiomatic code)

Rust is certainly not a good fit for every domain: the manual memory management is often overkill, and in very business logic heavy code like your typical CRUD apps, where most errors happen in logic that can't really be encoded in the type system, the value is limited.
you're just repeating the previous comment
Show HN: Wifilocations.co, a community driven WiFi locations map
How exactly do you fast? Is it like the extreme fasting of muslims where you don't eat or drink anything from dawn to dusk, or is it like the hindu fasting where you only eat fruits and vegetables?
So cooking is unnatural to you? Uh huh.
When Firefox goes Chromium-based, swarms of locusts will erupt from the ground, the moon will turn red as mars, and apparitions of RMS will be seen wandering the streets, telling people "I told you so."
Different when they consider one another, but not so different to an outsider that has seen places.
People are constantly constructing internal narratives to explain their actions. From the perspective of the narrator, with a life’s worth of context, those actions fit into the narrative in a perfectly logical way. From the perspective of others who lack that context, those actions can seem illogical. Maybe you really are more logical than the people around you, but on the other hand you can’t read minds - maybe you can’t simulate the brains of the people you meet with sufficient accuracy to reconstruct their internal logic.