skysight-inc/HackerNews huggingface dataset:
Sheesh. This is an awful response.

It does give me an ambivalent feeling I'd like a word for:

It's when someone/something you consider evil commits another wrong and it comes to light. You hate to see it happen and feel for the victims, but as a result more people also come to distrust them. I guess it's similar to "I told you so", but not smug and with less conclusion.

I won't give Microsoft a single chance until they let you make a local account on W10 without walking out of the range of the wifi you accidentally taught it the password to. It really needs to be opt-in, but I'd settle for the opt-out being plainly accessible.

(On a tangential note Apple needs to stop nagging to enable Siri if it hasn't already. Not anywhere near as bad but still dumb.)

/rant

I do feel that they really didn't need to fuck this up so badly. Just apologize properly and give the man some big fat credit, maybe with a notice in the CLI. Only developers use this, they'd love to see Microsoft properly attributing the idea.

I'm going to migrate my github accounts this first week of June as a small protest.
That’s totally incorrect. .pyc files just contain a representation of the _code_ and not any values that don’t exist in the code.

So a snippet like “os.environ[‘my_super_secret’]” won’t contain anything else than the bytecode to fetch that environment variable.
In Days of Discord, a President Fans the Flames
> Well, that's fucking illegal as shit.

Nonsense. As far back as 1970 the infantry and armed cavalry of the Ohio National Guard fixed bayonettes to the M1 semi-automatic rifles and shot 13 unarmed students at Kent State university - killing four.

You will note that students were indicted for the riot (Kent 25) but NONE of the soldiers or chain of command.

And the USG has been defending this action as recently as 2012.
On documentation:

I've seen dozens of articles on this site about hiring practices from large technical companies, and Google in particular.

I don't remember seeing anything suggesting they even verify that the people they're hiring are capable of writing basic documentation, let alone that they appreciate the importance of it being complete, correct, and up to date.

Every indication is that Google vastly undervalues documentation, both for internal and external purposes.
I wonder if it might be possible for OS's to provide a fast, asynchronous way of deallocating memory.
Operating systems have a lot of inertia. Linux is close to 30 years old. Performance characteristics, threat models and a lot of other things were different back then. New operating systems solving this issue will generally fail because of missing drivers and userland code, not because they are technologically worse.
That sounds like poor advice with unclear rationale behind it. There are definitely project specific ignores that you’d want to set up, and if you’re working with projects with multiple different languages, “one gitignore to rule them all” fast becomes a mess.
I find a part of the problem to also be that it simply doesn’t have a good channel for many of the problems I find on the maps themselves.

Got a typo in a business listing, wrong opening hours, &c.? Sure, you can fix that.

Got a road segment slightly wrong? OK, you can straighten it out.

Any other case where the underlying map data or presentation is wrong? Nope, you can’t report it, and any attempt to report the issue by the channels that are available will fail to have any effect.

And that’s the problem, Maps just doesn’t seem to be interested in providing, y’know, maps. It’s focused on being a business directory instead.

Take https://www.google.com/maps/place/Navarre+VIC+3384,+Australi... as an example: that pin and label on the map is almost 5km south of Navarre, because they seem to have taken the entire suburb area (which in rural areas is regularly many kilometres across) and picked a point on its boundary—I dunno, maybe the furthest point south, maybe just the start position of the polyline—rather than taking a sane point that represents where the town actually is (e.g. its post office) or even a midpoint in the suburb area.

When you look through rural areas you find a substantial fraction of the labels are wrong by several kilometres. Head south to the next town, Landsborough, and it’s marked 4km down the road from where it actually is. I’ve seen some places 10km off the mark.

I’ve attempted to report the Navarre case six or seven times over the last few years while living there, by three different ways (none of which is properly applicable), and it’s still stubbornly in the wrong place.

(Yes, I’m mentioning this here on the off chance that someone relevant will see it and pay attention.)
Ahle Taqwa Ki Nishanian
Nice to see this here, yes in what concerned the 8 bit world and the 16 bit home micros (PC, Amiga, Atari) C compilers just sucked.

Anyone that was writing code where performance mattered was using Assembly.

Even on 16 bit platforms, although high level languages were already quite common, in what concerns games (or demoscene), they were our "Unity".

Good enough for prototyping, but also full of inline assembly.

I once saw a game submission to a Portuguese newspaper (for a MS-DOS game), which the only C that it had were data structures and function declarations, the bodies were 100% inline Assembly.

And by the time Pentium arrived, unless one was buying Watcom, there wasn't a good C / C++ compiler that could take advantage of the pipelines and instruction scheduling in a proper way, as described by Abrash books.
I feel like both would be useful, given that batteries typically have a limited lifetime and I'd rather not have to tear apart my car to replace them when the time comes.
Nice project! There is "Automatic HTTPS Upgrade" in the iOS Safari (experimental) settings. Wouldn’t that do the same?
Maybe aim to see things in a different perspective. You making that code usable by others means others will benefit from your work.

So
1) you benefit from the work by having fun
2) others benefit from your work by using it to solve their problems or building things they find fun

Usability is also a problem worth solving. It's just a different problem.
That's possible with 3.8's PYTHONPYCACHEPREFIX, yes?

Perhaps it's worthwhile for someone to blog about this more/promote this as a best practice? Though what's missing is the hook to connected it as appropriate for the given platform.

I see now that "OS-specific" was meant to be interpreted as "the OS-defined mechanism to find a cache directory", not "a cache directory which differs for each operating system".

I would not have been confused by the term "platform dependent", which is what Python's tmpdir documentation uses, as in: "The default directory is chosen from a platform-dependent list" at https://docs.python.org/3/library/tempfile.html?highlight=tm... .
It's the same in Belgium. At some point half of the deaths came from care homes. Here they even restrict workers to a certain floor or area in the care homes.
God damn remove this spam. What the fuck.
Install Arch Linux like a boss on VirtualBox
Reagan was quick to pass the Mulliford (sic) Act

Reagan signed the Mulford Act, but it would have become law without his signature anyway. It was passed in the Assembly and Senate, neither of which was controlled by his party.
What Chris Lattner might desire and what Apple wants isn't the same thing, specially since nowadays he doesn't get much to say on where Swift goes.

Had he stayed at Apple overseeing the language design I would agree.
I wrote z80 asm from the early 80s to the early 90s and definitely never felt the need to grab for a higher level language. Friends told me to try C/Pascal, but I found them clunky, slow and inefficient. Thing is, you could not write very large programs anyway: I could get up to 128kb but it was very rare to have code that large; most of it was game data for instance. If I would have a Z80 now with megabytes of memory (which I do by the way), I would still write asm for it if the project was for fun; if it were serious, then I would try (probably) a commercial compiler. Maybe Forth, as was mentioned here; I really like Forth and use it on new embedded devices to go spelonking.
Fully automated voiceover software to transform any text into real human sound
I've been fascinated by the semiconductor manufacturing process, design tools, etc. and found it be very opaque and inaccessible. There are a ton of books that go into the history of software and the Internet .. any chance, you have come across something similar for your industry? Not looking for ASML for which there is a book (ASML's architect) but a bit more general. Maybe I should dig more into Intel's history.
>It’s also rather annoying to type them

I wonder how mathematicians do this, I suppose they use latex notation most of the time, inputting ASCII which is formatted as the symbol instead of looking up tables
I still think its strange to create an OS that officially supports only 2-3 languages for development. Sounds rather 1980s to me.
Citation needed...

I don't think laws are ever that prescriptive about what you have to do. As far as I know, the only requirement is when the tax inspector arrives, you need to be able to produce a complete and accurate list of all invoices you have ever sent to customers.
Actually, SpaceX was founded in 2002, so closer to two decades than one.
Darkest Path
A bit tangential, but since OP mentioned abstraction, I'd like to add this:
One of the marks of a readable piece of code is that it does not mix different levels of abstractions.

Here's a contrived example:

if (a < b && c == d)
createUserProfile();

Instead, do this:

if (userIsAuthenticated())
createUserProfile();
How to Safely and Ethically Film Police Misconduct
You’ll have to excuse me if I’m a lot less concerned about white collar crime than I am about a government that systematically targets people who look like me.

But speaking of which, the government is also run by a President who actually quoted a segregationist governor about how to deal with protestors.

As far as crimes, he also was fined for both running a fake charity and a fake “university” and members of Congress basically got away with insider trading pre-Covid.

But your statement kind of demonstrates the problem. Unarmed Black people are getting killed by police and it getting covered up by corrupt government. When I have to worry about my son who has grown up all of his life in the burbs being seen as a threat because he is a big Black guy living in a predominantly White city, I really don’t give a damn about a corrupt CEO compared to a corrupt justice system.
It’s 2020 and password-cracking is done on GPUs nowadays. The multiple rounds of PHPass do nothing against the speed of modern GPUs. You need a password hash that also requires a lot of RAM to compute to limit parallelism, like argon2 or scrypt.
Those journeys usually had an economic motive, e.g. find a quicker route to Indonesia, and accidentally discovered new lands (to Europeans).
She's the CEO of Hamilton Technologies: http://www.htius.com/
This mission bring to life, literally, "per ardura ad astra".
Congratulations to all from someone who gets tears in eyes everytime i see a rocket launch. Its an amazing beautiful thing that goes beyond the science and engineering.
Safe journey guys and thank you to everyone that got your there and inspire everyone from small kids to oldies like me.
Ask HN: Is Anonymous Back?
Depends on the game/cheat we are talking about really.

Some cheaters try to fool server/other clients. For example in a game of chess, a client can try to move his pawn like a queen. In this case a server would run the "game simulation" it self and would detect that the client is making an illegal move and a cheater. But this is not always possible/feasible. In an mmo for example it may not be feasible to run physics simulations on server and maybe a server can trust clients when they say "I moved from my old point A to new point B" but in reality there may be a wall in between point A and B

Not all cheats are about fooling the server. Some runs on entirely on cheater's side. A board game example would be battleships. A cheater can decide to "look" other side of the board and cheat by looking at opponent's ships. This kind of cheats are solved by only sharing necessary information with clients. For battleships, this would be server only responding the bombing coordinates a client sends and the answer would be a simple "hit/miss". Again, this is not always practical. In a game like counter strike, ideally you would share enemy positions only when they should be visible on someone's screen. But due to lag or not being able to detect this visibility information, a server can choose to always share this information and clients can cheat by presenting that information

A harder to catch cheat would be aim hack. In this case a cheater neither fooling the server or benefiting of an information it doesn't have. They usually catch these by checking programs that does this or via player reports or automated systems that catches players that are too good to be legit.
What's non-pc?
Yes, it is.

But it seems to had another use. The W66 warhead has been used in the Sprint anti ballistic missile, to intercept and destroy ICBM.
Perhaps all you need is somebody with a compromised immune system.
Of course not, that would mean env vars are hard-coded into byte code at compile time, which would be completely crazy. A pyc file is just a parsed series of op codes that the interpreter could dispatch directly, so that it doesn't have to parse source files every single time.

It's very easy to verify:

secrets.py:

import os
SECRET = os.getenv('SECRET')

Then

$ python -m compileall secrets.py
$ uncompyle6 __pycache__/secrets.cpython-38.pyc
# uncompyle6 version 3.7.0
# Python bytecode 3.8 (3413)
# Decompiled from: Python 3.8.2 (default, Mar 10 2020, 12:58:02)
# [Clang 11.0.0 (clang-1100.0.33.17)]
# Embedded file name: secrets.py
# Compiled at: ...
# Size of source mod 2**32: 40 bytes
import os
SECRET = os.getenv('SECRET')
# okay decompiling __pycache__/secrets.cpython-38.pyc
They aren't editing an invoice, they're using a template to create a new invoice.
I would seek to automate this audit and enforce it with a commit hook or CI stage or something
Started in 1978. No longer program professionally (much) but still do it for fun.
Oddly enough, I think the software in both cases is written by the same company: Collins Aerospace.
So that makes it a lot better. It’s not like Reagan reluctant signed it. He said that he saw no reason why on the street today a citizen should be carrying loaded weapons.

But yes I am well aware that the Democrats have a racist past and were the major proponents of segregation in the south in the 60s.

You act as if my mistrust of the government only occurs if the government is run by Republicans.
Oil change needed every 100 miles?! What kind of car is this?
I am a little older and maybe a little more than 40 years experience. I still love it and program at home and work. I still get excited about new stuff or learning a new platform (I am setting up Hashicorp Vault at the moment, awesomely interesting). My first love was electronics, which I still do at home, so maybe my experience is a little different. The last few years I have been learning abstract algebra and some nuclear physics. At this stage I can't imagine ever stopping.
The only reason it works is _because_ it's unofficial. As soon as it becomes an official offering nobody will go there to upvote things.

Besides, this is so far from HN's purpose that nobody should even be considering adding this feature.
#no_hackers_here and #i_will_not_help_you_be_a_stalker
That sounds a very unimpressive amount to be called massive.
I'll quote someone

>I can sympathize with a lot of nihilist outlooks on existence, but just because a lot of these might be true, they're not the only ways you can view your flesh or your place in these patterns, as an animal or as a cog in a machine. There are other elements to existence, like imagination, that is a good example. Emotions are a great vehicle for building your own universe and reality, where your function as an animal or cog in a machine doesn't force you into some rote role that drags you into this stripped down reality of raison d'être being purely utilitarian and unchangeable. You mentioned imagination, but emotions make things real. Does it really matter if your imagined reality isn't concrete or factual? What matters is your happiness, right?
I think I am an experienced developer (not Python) and this would never cross my mind.
Kernighan is good at explaining things, so I'm guessing he wanted to make it as simple as posible, some of those just don't roll of your tongue as well as the aliased versions
Free book for easy and fun for Keto Diet
You can use `nginx -t && nginx -s reload` for that.

It will first check the configs/paths, and only then, if successful, signal nginx to reload.
It's interesting how I find it difficult to code in a dark mode, while at the same time I just can't use a terminal with dark characters on a light background...
> Every indication is that Google vastly undervalues documentation, both for internal and external purposes.

This just seems to be companies as a whole. Documentation is a low-status activity (no promotions or raises available for doing it) that still requires decent cognitive function, so it is not something you want to do when you are energized and ready to go nor something you can do when tired and not in the mood to work.

There are no automated tests to tell you that the documentation no longer works, so the engineers would need to periodically check. We have automated tests in code because engineers won't comprehensively check everything.

In my org we frantically document when an engineer gives notice. Otherwise, we can't even keep the URLs updated or maintain a running list of configuration variables.
Indeed. If you want to switch to a less efficient propellant, you also have to explain how to make the launch escape system work with it, otherwise you've traded the extra safety of not having to handle hypergols for a massive extra risk in a less capable escape system.
To the extent that there's native C++ I'm sure it will be somewhat straightforward to get other languages supported later by users/developers.
You're bagging on California for being proactive and not ending up like and NYC/NJ.
A Report on Most-Realistic Performance and Privacy Test of 35 VPN Products
I find it hard to focus without dark modes. Eye floaters are way more visible on light screens.
Fix your process then. Use a global ignore file. Add a language-specific gitignore boilerplate first thing you create a new project. Scan for files that don't belong in code review (do I even need to suggest this).

> never get to remove them from history.

Scrubbing specific files from git history isn't hard.

s/__pycache__ and ﹡pyc/secrets.py/g and people will also commit it in. PEBCAK.
Apparently 42% of the covid deaths in the US have been in nursing homes, which house .62% of the population. In some states, the share is as high as 70% of the deaths.

https://www.forbes.com/sites/theapothecary/2020/05/26/nursin...
A while ago I stumbled over a proposal to move a shared pointer (this was C++ code) to a thread in order to trigger the freeing of a legacy data structure there (the multi-thousand delete calls caused the watchdog of the main thread to fail).
However, keeping the shared pointer reference in the main thread for too long resulted in the possibility that the "clean-up" thread ran while the main thread still had a hold on the shared pointer... Resulting in a low chance of the "clean-up" thread doing nothing and the main thread still locking up. People here got taught to use shared pointers to prevent memory management errors, but it can really cause a lot of unexpected non-determinism when used blindly.
Related, and from the title I actually thought it was going to be this:

"A Time-Lapse Map of Every Nuclear Explosion"
https://youtu.be/LLCF7vPanrY
The map underestimates the actual damage that would occur by many multiples.

Its both American and Russian doctrine to rain down many (often > 10) warheads on each target.
What Is Contrastive Learning?
is asteroid mining viable compare to shipping raw material up the earth gravity well?
The Liberal World Order was built with blood
What about just reading the book once, and returning to it some day later if you want to refresh and maybe work it properly?
Programming can be everything.

I agree that most programming is craftsmanship.

Code like the Obfuscated C Contest is art.

The code that orchestrates your cloud servers is more like engineering.

Prototypes in language research is science.
High frequency traders will want the best connectivity humanely possible. It’s a zero sum game. If they can beat a competitor firm’s signals by the smallest fraction of a second, even a nanosecond, they reaps in the profits. So $100m for some better fibre? Go nuts!
Isn't that the difference between what is illegal on paper (according to the law) and what actually gets enforced as illegal? Kids are taught that the law is the law, but in reality only the law that gets enforced matters.
I am skeptical but curious. I honestly can't think of one. The closest one I can think is maybe you have some kind of macro that uses a temp variable? like a swap macro? But i think you can still have a unique variable name for that particular line if you want?

But if these cases are exceptional then you can use pragma to suppress those warnings for that particular block of code. If they are not exceptional perhaps you shouldn't have enable the warning/linter check for that warning.

But honestly I can't think a good reason for shadowing variables and would appreciate an example
PHP and Javascript both improved significantly, but both still have horrible legacy baggage that can't be rid of, namely weak typing (not dynamic, where a variable can hold any type, but weak, where "1"+2=3). For me, that makes programming in either language like running in a minefield. And still, I write Javascript daily, because myeusers don't care about weak typing :-)
Of course there are trivial solutions to this issue.

Nonetheless, this is a common mistake, whether you believe it or not. And if it is common, then it will be exploited.
People are complaining about Google Maps in absolute terms. They forget that products are relative. What is the alternative to Google Maps?

I am with you on not being willing to pay anything for the service.
> One example: back then it was a dozen people (literally) responsible for every single business's hours, category, and more for all of planet Earth.

And why is that? Google is not a poor company, can't they add a separate data support team for Maps which is a pretty important application? Is Google that cheap?

Why should feature engineers work on data support? I understand they implement automatic validation for data, but in addition to that there should be a separate data team which checks data manually.
Yes, on Reddit that's called a circle jerk.

Before that it was Uber, Facebook, Microsoft, Linux, you name it.
You're comment makes no sense.
Ask HN: Why is there no emphasis on training in tech culture?
Every tech company could meet their diversity goals tomorrow if they had a good training program. Your “very selective” (read: White, Indian, Asian) hires aren’t that great to begin with. Why not invest in underrepresented communities?
Right, although some press reports say "pardon", it was just a commutation to time served.[1] There's not that much difference in practice.

[1] https://www.cnn.com/2019/08/09/politics/kushner-rubashkin-tr...