skysight-inc/HackerNews huggingface dataset:
How to set an editor to use big visual indents for spaces?
To backup files every day
As long as general websites load in under a certain time period the sites seem to maximize bloat up to that point. Reminds of the commuting time period—-if more highways are built to reduce traffic and speed up commutes, more people will drive, eventually more will relocate so that the average commute ends up being ~40 minutes again. Whatever tolerance is true for the vast majority of users can often become the standard, and if so then non-vocal small opposing groups are forced to adapt...or just complain.
Legitimately one of the reasons it’s hard to keep top talent: they save for a few years and either retire or start their own companies.
We used YAPF[0] before we used Black[1]

I really liked it, a lot. What set Black above is it is most of the decisions (if not all, really) makes is how we setup YAPF anyway. I do think it does some small things better, like reformatting function arguments in certain cases (as is highlighted elsewhere in this thread)

If you need configurability, YAPF is the best choice, in my opinion. We still use isort though, because it sorts imports in a much more readable way.

I just wish I could find a suitable replacement for C# development. StyleCop is okay, but I find we have to use `<NoWarn></NoWarn>` .csproj settings on so many little rules and it doesn't auto format (in as so far as I can tell). If your editor supports it, it will use it as a formatting source of truth, though. I just want something that also has a runnable console binary we can use in CI. Maybe I haven't looked at it closely enough.

[0]https://github.com/google/yapf

[1]https://black.readthedocs.io/en/stable/
I browsed their github and their linked docs, and it wasn't obvious to me what benefit cranelift has over LLVM. There was one section on implementation differences, but I'm not familiar/smart enough to infer from that what use cases cranelift enables.
Olympia's Zero Fare Transit Experiment
Windows 10 runs on Raspberry Pi 4 and 3
I did similar, once. I had a script where I misquoted and ended up with a directory starting with ~

It was the only directory starting that way, so I typed "rm -rf ~<TAB><ENTER>"

Hit control-C a half second later, but the damage was done. Fortunately most of my important files are backed up.

Lesson: when deleting files with tricky names, write the command without flags first, then add "-rf" after the path is confirmed correct.
> Imagine an MS executive

Which is the problem.

Like politics, the people driving the bus have no idea what happens under the hood. That's an incredibly stupid way to run society!
I generally agree with a lot of these points, but I’m not sure I agree with using the placeholder for hints. If you put in a couple characters and forget the hint, it’s now gone. The ‘bad’ example there actually seemed better to me.
Don't feed the trolls. Being fearful of blocking unwanted calls, so you allow the calls to continue just feeds them. You are telling them this is acceptable.
Could you help me understand which parts of the article seemed to you to be "demonizing every non-leftist opponent as a deplorable, mouth-breathing, lying Nazi"?
A very conservative estimation! And it's not only documentation of software but also the requirements and other parts of the whole lifecycle. It's incredible how many companies hold meetings after meetings to keep up the oral tradition only to run in circles. Instead of POs who churn out dozens of irrelevant tickets, we need people who can tell and write stories - real stories not "user stories". They offer insight, motivation, engagement and the right understanding to break down the work into reasonable and deliverable bits.
It's been so long that I do not instantly remember minor numbers not referring to point releases. Long live to the Debian project!
Not really cron, but I made a systemd unit that checks a directory and syncs it to my s3 drive when there are new files
Thank you for that tiny glimpse into a different world.
Lightwave 5.5 was about 6x faster than Pentium 66 at the time I used it configured with 256 megs of memory. Which was already faster than what I used at home which was just an
Amiga 3000 25 mhz with 16 megs of memory.
Right!

So you agree now that structures are not "usually 64-bit aligned on x86"?
Optimize Hand Wellness
I joke that I only have two real skills. Asking questions and identifying good ideas.

In the latter category I have heterogenous load balancing, segregated by traffic type. For example, if you have a read-mostly web application, often the most expensive parts are in the administrative functions. If they run on separate hardware, then a regression doesn’t affect everyone, and a client side bug or flood of traffic doesn’t automatically lock people out of the admin workflow.

Similarly, you have server side rendering for web crawlers and anyone with JavaScript disabled for Angular and other interactive frameworks, which generally involves running a small quantity of specialized services on a few machines.

Shunting all users who smell like a bot to a small set of machines doesn’t lock them out, but it does preserve the experience for everybody else.
Hyperview is a mobile framework inspired in part by HyperCard:

https://hyperview.org
Physics, Engineering, Math, Science, CS were obviously prized backgrounds. Over the last 10 years, I think JPL is diversifying but I couldn’t be sure. When I joined as an intern in 2002 out of college, there was a huge push for youth. It used to be that more than 40% of The Lab had 20 years or more experience at The Lab. 33% were due to retire within 10 years. My first mentor there retired after 42 years with The Lab. It was an amazing place to learn and grow in my 20s. Awesome problems to work on and even more amazing people, humans, to work with.

You can see what they’re looking for here https://jpl.jobs/
Ask HN: Where can I find a detailed comparison of Linux distros?
The volume and surface area of a ball are about 1/2 that of the box it came in.

This comes in handy for back-of-the-envelope calculations.

Source: http://www.vendian.org/envelope/dir0/ballbox.html
If time and date are unpredictable, what's the use? Suppose you switch to conservative investments now -- say, bonds. You're going to be hit less hard by the recession, but you also will have missed out on gains.

So, unless you believe you can time the market, it doesn't appear like there is much to do except to make sure you have a rainy day fund.

All my other money goes into the system.
There are two distinct sets of restrictions on file names: those of the OS API (in United, that means no null bytes, / is a directory separator), and those of the file systems in the path, which can be (almost) anything.

Quite a few file systems require names to be valid text in a specific encoding, not arbitrary byte sequences.

Also, note the use of a plural in “the file systems in the path”. A file systems mounted in another one can change the rules halfway-through. There is not single fixed set of restrictions to file names.
Sadly, Ian committed suicide in late 2015. It's great to see that the distro is still going strong.

I remember back around 2005, I missed meeting him by a ~week. My college Linux users group was having a birthday party for Debian, and Ian was an alumnus of that school, so he was going to attend. It was right before the semester started, so I was out of town.
> You can't fix it with barriers. You need a lock or LL/SC loop.

Agreed on this point.

> No, they can't (without widening char to 32 bits). The code you have shown modifies the adjacent elements. Anyone that write a nearby byte in the window between the load and the store will have their write silently clobbered.

I guess my misunderstanding was that C++11 gave this guarantee. That's pretty cool.

I guess I typically expected specific bitwise operators (ex: atomic_and or atomic_or) to be necessary in these cases. But if DEC Alpha is really the only processor in (somewhat) recent memory that doesn't allow 8-bit granularity, then it makes sense to just standardize upon 8-bit granular reads/writes.
Try Googling for comparisons between Linux distros (e.g., Debian vs. Ubuntu) and you get dozens of hits that are about 200 words and talk about the GUI and package installer. I want to know more than just the topical issues. I know that some distros compile with different networking #defines, others have different service control, and important low-level stuff... But it seems there isn't a deep-dive out there, just lots and lots of chaff.
Hah! I use exactly the same model as pictured. It's just so pleasant to write with. And even works for lefties like me.
Well, 32-bit aligned in this case. But its not 8-bit aligned :-)
I think the implication is that if you wanted to function without a SIM card, your only way to do that would involve eschewing all above-board fiscal infrastructure and working with the grey/black market instead.

It's like being an outlaw, or a member of an untouchable caste: sure, you could just hide in a hole forever and wouldn't be breaking any laws, but in order to do anything you'd have to do it in a way that breaks a law.
This is a really good read, I'm surprised by how little the code needed to be adapted. Is it because they aren't using AoT compilation and therefore the classes can still be dynamically loaded?

Does that mean the JavaScript essentially gets compiled to a Jar?

How does graalvm bundles non jvm dependencies when your using the JIT compiler?
I completely agree with ALL of your points here.

> we are about to see over a billion people displaced over the next 50 years

Yes. And this is worrisome because stable countries won't be able to "let them all in" (sorry not sure the best way to put that). Long-term it's going to be more sensible to stabilize unstable countries.
Oof. I honestly don't know which is less secure: SMS or e-mail confirmation. Probably the former, but the latter is probably easy to downgrade into plaintext, and can/does does go through random middle boxes. You can add mitigations all over the client but I'm not aware of any requirement for strong authn+z in the protocol.

As a second factor, SMS is better, unless that 2FA e-mail is allowed to be different from your primary e-mail, and you only every sign into it from your phone.
A number of studies here in Canada have found that resumes are more likely to get a call-back if the person's name is typically Anglo-Saxon as opposed to pretty much anything else. I think the effect has been shown in the USA too.

Employers are probably biased towards hiring a "John Watson" over a "John Adeyemi" or even a "John Kaminski", all other things being equal. So people change their names. It's pretty common. I doubt show business is any different.
I think an important question to ask is how they got his number in the first place; it's possible that they could find the new one in the same way
What the Self-Esteem Movement Got Disastrously Wrong
Show HN: I redesigned Hacker News and gave it a cyberpunk(ish) feel
Of course, you miss out on real estate for a number of years while you do this. Time in market and leverage are important.
It seems you're insinuating that Alberta is somehow more (U.S.) 'American' than the rest of Canada.

I have lived in Alberta for over ten years, and though culturally distinct from the rest of Canada (as is every other province I've spent time in) Alberta's brand of rugged individualist / conservatism is still very Canadian.

And though we may look very different to the urbanites of GVRD (Vancouver and surrounding) and the GTA (Toronto and surrounding), you'll find many more similarities between us and those living in rural Canada with resource-based economies, like the people living in B.C.'s forestry-dependent areas, the northern prairies or NorthWest Ontario. The difference for us is that we have very vocal, oil-industry-controlled politicians and a population that is immediately suspicious of any time an easterner tries to tell us what to do.

Sometimes the easiest way to see our distinctiveness is by contrast - immediately evident when crossing over to even the closest border states.

I love Montana and its people, but boy do you know you're not in Canada anymore - roadways lined with advertisements; cops everywhere you look; huge rich/poor divides; razor wire, visible drug problems and ghettos in even the smallest cities; and a love of all things military.

All that to say, there's far more to being Albertan than oil, guns and god, and those three things don't make us a 'murican.
FAANGs are not homogeneous monoliths nor do they have a Borg-like hivemind. Your experience at a FAANG company will vary greatly from team to team, let alone between FAANGs.

I will say that the FAANGs are much like the transition many of us experienced from high school to college: the bottom two-thirds of the talent spectrum are not there and where we might have been top of the class in HS, we may find that we are merely average or even, sadly, significantly below average. Also, since the financial rewards are much, much greater, competition between individuals is correspondingly greater, along with all the negatives that implies. Depending on your level of technical ability and political / social skills, you may indeed find yourself working harder or fighting harder for promotions than you would at a non-FAANG company.
One minor quibble. Intel pushed Itaniums hard at on point. The machines were huge and I had to have additional power routed to my office to run it. Thankfully AMD introduced the x64 architecture and the PC industry was saved. Between the power consumption of the Itanium and how hard the IA64 assembly was to debug. I atleast welcomed the X64 architecture.
I thought the ink drying speed was an issue for lefties and the resultant smear. These pens don’t seem to solve it... same ink after all.
You can make phone calls. The call quality is fine. I don't think its VoLTE yet, but its the same quality you get on an Android phone.

You can also start a text via contacts too now. There's been a lot of progress in a month.

Source: I have a Burch phone, and made a phone call.

I don't know if you realized this, but that's exactly what they did. They made a kickstarter on their website to finance making the phone. They released some of the hardware iterations to earlier backers, and made sure they understood that its a beta product now.
Not OP but meaning inventing/discovering new theories in math. Basically research in math that’s theoretical as opposed to applied.
"Debian 10 Service Pack 3."
I read once that we share 99% of our DNA with Chimpanzees but we also share 95% of DNA with fruit flies. So if the viruses are 89% similar does that mean the difference between SARs and nCOV is bigger than the difference between a human and fruit fly? Who knows what this analysis might be telling us.
That's basically how all technological and science progress works. You take a few existing dots and connect them together. Connecting dots between fields that are further apart is less common and often has more impact.
material design distinguishes between: label (the one that moves to the top when the user focuses the field), placeholder (which is visible inside the field when the user has not entered anything yet) and help text (below the text field). The label should describe the field (eg. Name, Email, Phone number), the placeholder should indicate an example of a value that one has to enter (eg. your.name@gmail.com, +01 234 56 32), and the help text should provide additional context (eg. Must be at least X characters)
Yes, this. I have early-stage cateracs, which by-and-latge is not an issue on my 40 inch monitor. But it does mean that my astigmatism drifts around monthly. My prescription changes faster than I can get new lenses cut. The BIGGEST ergonomic issue for my with Python is single versus double quotes. Double quotes are the difference between happily coding all day versus a headache at lunch time and 5% less done. Fuck Black.
In 2019, PDFTron, a Vancouver-based tech company, received a USD $71 million investment from Silversmith Capital Partners (a Tier 1 growth equity firm).

Vancouver’s tech scene is exploding, with a number of top tier tech companies being based here (like Clio) and majors setting up dev offices (Shopify, Amazon, Microsoft).
Canada is already nearly as big as Mexico for cars: https://en.m.wikipedia.org/wiki/List_of_countries_by_car_exp...

I’m not sure why you’re upset with the CBC over this, we’ve been a branch plant economy since the 1960s. A lot of this has to do with Canadian temperament and mindset, which isn’t particularly entrepreneurial due a dearth of leadership from its investor class.

There have been many tech darlings out of Canada over the years (top of my head - Shopify, Hootsuite, Flickr, Matrox, ATI, BioWare, Eidos, iStockPhoto, Nortel, Corel, BNR, Cognos, Delrina, Hummingbird, Newbridge, Jetform, RIM/Blackberry, OpenText, Mitel, Newbridge networks, QNX, Sierra Wireless, SMART technologies, Redknee, PointClickCare, Solace) but often a reasonable exit lies with pools of capital outside of the country such as IPOing in the US capital markets.

Which gets to my confusion over your complaint. The problem with Canada over the last 50+ Years is that its capital holders are extremely risk averse and largely old money. That’s changing with recent funds, but it takes time for that to lead to improved VC and other funding. But we see this problem in every industry. A major chunk of Canada’s Oil and Gas interests for example are owned by foreigners. I’m not sure what your suggested approach is — Government subsidized entrepreneurship? We already have that to some degree.

Even in the USA we are increasingly seeing grads taking the FAANG paycheque instead of doing a startup. The stress and market barriers are too high to make it worthwhile relative to the alternative of making $150k at age 22.
I volunteered for A/B testing, and they hired B to replace me.
I REALLY like this bash idea! Thanks!
> The more interesting question is whether requiring that additional barrier buys more performance in the typical case where you're not touching shared data.

Probably yes, i.e., there was some hardware reason for it. You can find one explanation [1] floating about that explains the effect was due to the cache banking design, with separate invalidation queues for each bank. Presumably that was better in some respect than the alternative designs available to implementors.

That said, the difference is probably fairly small and if Alpha were around today they would almost certain want to abandon that particular reordering since they are the only one doing it and there would be a lot of pressure on them to make it fast (this comes up in all sorts of non-trivial scenarios like double checked locking, reads of final fields in Java, etc).

That's generally the pattern, I think: if you are the odd man out with the weakest model, and you aren't the dominant player, you will have a lot of pressure to at least offer fast ways of lining up with the stronger models. So even if a weak model is a better design point in a vacuum, it might not be true when real-world implementation pressures are considered.

---

[1] http://lse.sourceforge.net/locking/wmbdd.html
Neat article, but the author doesn't provide an actual reason you'd _need_ to pass a NUL byte into something like a socket address, or command arg.

Is there an (perhaps obvious, or not) common usage of NUL byte literals being passed around, not for the purpose of terminating strings? Just terrible ye-olde file formats?
I’m putting in more at the start of the year to reach the cap faster.
I spent a few years in Singapore in the 90s aged 5-8. We were taught to cross the road with a hand in the air. I think this is still the case for children in SG today. It wouldn't help so much in a driveway situation but at pedestrian crossings it can be the difference between getting home safely or not.

Kids should be taught to be aware of their surroundings and that if you can't see the driver of a vehicle, then they likely cannot see you either.

Ultimately though, all that is really just a last-resort safeguard against driver inattention and/or poor parenting. The driver of the vehicle should be 100% responsible for their actions, regardless of safety assistance features like cameras.

Even in my own experience of rear view cameras, pedestrians crossing close to the rear of the vehicle are obscured by the rear pillar until the last second, so it doesn't make mirror checks optional. I imagine similar issues exist for forward-facing cameras where a child walking towards then across the front of the vehicle could be obscured by the A-pillar until it's too late to stop. Again, the driver is responsible to check those areas by moving their head or even getting out of the vehicle and physically checking the blind spot if there are any doubts.
Not a Canadian, but Canada is leagues ahead of the US in a lot of important ways. In my opinion, at the level of nations, it's much better to be boringly mediocre than outrageously good or bad in any one way or another. Toronto is a first class city, like you said: what more "exceptionalism" do you need?
Watch Free Movies Online on the Best Streaming Websites (2020)
I'm not sure if it's an exact fit, but dropbox used to have pyston: https://github.com/dropbox/pyston

The blog posts by Kevin Modzelewski went into the internals: https://blog.pyston.org/

Also by the same person, a good article on Python's performance: http://blog.kevmod.com/2016/07/why-is-python-slow/

As a side comment: On the subject of type inference, I really come to like python's type hints. I don't use mypy itself yet, but already had a habit of adding types in docstrings, and like it when I can add a clue that a signature/return is dealing with a something that's not a basic type.

There are some nice little things out there for advanced typing, being added now and then:

- TypedDict and Literal: https://github.com/python/typing/blob/master/typing_extensio... (TypedDict was accepted in PEP 589[1])

- NamedTuple had variable annotation added in Python 3.6: https://www.python.org/dev/peps/pep-0526/

I wonder if typings are added to a codebase, we could give LLVM one more shot. It'd be pretty crazy to build able to build a large graphql server and build it into a statically linked binary like golang.

[1] https://www.python.org/dev/peps/pep-0589/
Looks like you got downvoted to hell and that makes sense to me...

After all you’re on hacker news the site for people who are obsessive about things no one else cares about.

Threading models? (Or any programming thing you’re into) Sure. Whatever. Won’t save you from 2019-nCOV or global warming or nuclear war.
GatorBoxes (an AppleTalk<=>Ethernet Apple File Sharing / NFS bridge) would let Mac users create files in the Unix file system with slashes in their names (presumably because of NFS shenanigans going on in the kernel).

Macs let you use "/" in file names, but instead used ":" as the path separation character.

It seemed to work fine and dandy at the time, until you ran "restore" and discovered your backups were corrupted!

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

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

Just for fun: guess what happens when you create a Mac file name with a slash in it today?

It works!

Or it seems to work. But behind the scenes, the Finder and Mac user interface libraries actually convert the "/" to a ":", which you can see with "ls". But at least it doesn't corrupt your backups!
As someone that still fills a notebook roughly every three months, these pens are actually pretty nifty. Most regular ballpoints aren't ergonomic at all (I don't know how to describe it, but they take way too much force to write with and that leads to hand cramps in a long writing session). Rollerballs are way easier on the hand, and I tipped over to buying refillable ones because someone introduced me to J. Herbin ink and now I hate writing with anything else.

I'm still very much a pen noob though - I just like vivid ink and not having a cramp after half an hour of steady writing.