skysight-inc/HackerNews huggingface dataset:
As someone with considerable experience in using x86 Asm (over a decade), it's always nice to see more articles on it, but there are a few things I found odd about this one.

The basis of the algorithm to use was decided to be a space-optimised method using a dynamic programming approach. This effectively means using an array on the stack to hold our values while giving O(n) time and space complexity.

That isn't "space-optimised" at all --- when I think of a Fibonacci example I think of O(1) space. Unless it was chosen specifically to demonstrate array indexing (in which case it would be better to use an algorithm that actually requires an array, like sorting), the choice of algorithm is unusual. The same applies to finding the length of argv[1] before doing the equivalent of an atoi() on it --- if you're going to read the bytes of the string through, might as well accumulate and convert, and oddly enough the length appears to be unused too.

The unexplained and useless nop is also puzzling. Why is it there? What is it for? The same goes for the many other instructions which aren't actually contributing to the calculation, and initially made me think it was compiler output when I first glanced over the code. Writing a program that performs the given task is relatively straightforward even in Asm, but your solution is unnecessarily complex.

Making things easier to understand using function calls

I consider this a premature abstraction. A comment or even label will do just fine to delimit the blocks of functionality, as your "functions" are called only once. Your task has 3 parts [basically atoi(), fib(), itoa()+output] so you will have 3 blocks of code. It cannot be any simpler than that. Better is "making things easier to understand by avoiding unnecessary code".

Here is how I would write the first 2 blocks; I wrote this without testing at all so it could have errors, but it is really quite simple:

mov esi, [esp+8] ; get argv[1]
xor eax, eax ; clear the upper bits
xor ecx, ecx ; will hold converted value
atoiloop:
lodsb ; get a character
cmp al, '0'
jb fibinit
cmp al, '9'
ja fibinit
imul ecx, ecx, 10
lea ecx, [ecx+eax-'0']
jmps atoiloop
fibinit:
jecxz invalid ; can't do fib(0)
xor eax, eax
inc eax ; eax = 1
cdq ; edx = 0
fibloop:
xadd eax, edx
loop fibloop
; now eax and edx will contain fib(n) and fib(n-1)

Observe that I chose the specific registers for a reason: esi/al will be used by lodsb, ecx by the looping instructions, and edx for xadd. This is one of the things that compilers are not very good at, and also why carefully written Asm can easily beat them.

If you want to learn more Asm I recommend any assembler besides GAS, and looking at some examples from advanced users: http://www.hugi.scene.org/compo/compoold.htm The demoscene in its smaller-size competitions has lots of particularly knowledgeable users too.
A file that’s both an acceptable HTML page and a JPEG (2012)
There must be a research paper somewhere looking into the reasons why we like the sound and feeling of mechanical keyboards so much.
Well, I think this cyclical pattern shows exactly exactly why the thinking around the war machine is so important. Thinking about this very naively, to get closer to the kind of smooth space that D&G conceptualize, it is necessary to have some kind of homeostatic system that recognizes abstractly when power (and I'm using this term in a very naive, non-Foucauldian way) is being disproportionately concentrated in any one body, and corrects accordingly.

That said, as from my previous comment, I'm not totally confident that this kind of decentralization is even optimal, but that's a story for another time.
What market are you in that it takes months finding a new job? I know terrible programmers who are receiving 2+ offers in weeks, above their previous salary, after being let go (fired).

The current job market seems very irrational to me. Salaries seem to be trending unreasonably upwards, companies are hiring anyone with a pulse, and output doesn't seem to matter.

What strategies are you using to find these positions? Are you working with any good recruiters? Are you applying for a very niche set of positions?
25% being math and science might be a lot to you, but I think it should be closer to 50%.
To some extent that's what this does, it has a to-don't list of sorts; the list of sites you'd like to block.
I'd suggest just deleting all social media accounts, you won't miss them. Email is still king.
He isn’t. He explicitly references that at one point.
Googling "bios s3 suspend" gave me good non-AWS results.
What does that have to do with "lower level OS-dependent APIs"?
The Algernon Argument (2010)
WSL does very well for me.

Lack of booting services can be irksome, no underlying support for docker, no KVM etc. (Not having to deal with systemd is a bonus IMHO)

However pretty much everything else I've thrown at it works.

Even running X apps (you need a Windows native X server, but that's fine.

You can use up all the disk space, other drives, as much RAM as you need ... It's all available.

The minor annoyance for me is the lack of specific file system support (fuse would do at a pinch) and maybe libusb support too. But those are easily solved with spinning up Linux in your favourite hypervisor.
Perfect looking with unnaturally long shelf life, yeah. Tomatoes certainly aren't the same thing I remember them being, for instance.
Been using rclone mount for something similar, curious how this compares
Why Your Business Models Sucks and What You Need to Do About It
> The hosting cost for things like Facebook and Twitter are a pittance compared to the cost of employing all of the engineers/designers/etc who enhance and maintain those services.

Facebook had $20.4 billion in operating expenses in 2017. Less than 1/3 of that was the cost of its 25,000 employees (at the end of 2017). Facebook is spending more on its infrastructure than it is on all of its employees combined (and that much more when you reduce it to just engineers). Engineers are maybe 1/5 of its operating costs, including their all-in costs.

Both Facebook and Alphabet had roughly $15 billion in total capex for 2017. Data centers, networks, electricity, et al. cost a lot at that scale. It's not a pittance. Facebook spent ~$7 billion in 2017 on capital expenditures related to their network, data centers, etc.

Facebook's first Asia data center is a billion dollars to just start up.[1] When they put up new data centers in places like Henrico County VA, New Albany OH, or Newton County GA, it's similarly nearly a billion dollars a shot to start those up. Once you have dozens of those operating, it's billions of dollars per year to operate them all.

[1] https://money.cnn.com/2018/09/06/technology/facebook-singapo...
Yep, Cold turkey is great. I use Freedom for IOS for similar functionality.
I haven't found anything that would satisfy this need. I really would like to see a service around this need.

Currently I use acrchive.org which is far from what you and I are looking for :(
It _is_ rare. But that doesn’t mean those who let your data leak should go unpunished.

You don’t need to figure out who was the cause of a specific misuse, you just punish the data being leaked in the first place.

Though I guess you need to figure out a way for companies not to hide the leak then.
I checked out Beaker Browser, and apparently it's based on the Dat project [1], which seems to be very similar to IPFS. Then apparently it follows that, just like IPFS, you can't throw random things onto the network and expect it to stick; you need to pay someone for hosting and bandwidth (that someone could be yourself) to have it pinned, and in order to have it available worldwide at all times you still need to pay for a CDN of sort — the Linux box in your closet, or worse, your laptop that sometimes goes offline just won't cut it. Eventually it's just another protocol to copy stuff around, where stuff originates from various servers (your browser basically embeds a server, capable of serving stuff), with the possible benefit of popular stuff may be p2p'ed (but if you're a business you probably can't rely on that anyway). I fail to see how it's radically different.

(Also, I'm not even sure how you could p2p private user data, unless you expect everyone to carry around one or more yubikeys, or implant chips into fingers or something; plus all devices need into buy into that. But I haven't given that much thought.)

[1] https://datproject.org/
>In a certain sense, though, most serious adult business still boils down to people seeing an ad, installing an app, buying a product, attracting investors, or teenagers clicking a like button.

I mean, yes, I'm part of the machine, and the machine does sell advertising. But I'm a little cog in a big machine, and there are a lot of other cogs between me and the teenagers and their like buttons.

A long time ago, I wrote a technical book. One of the weirdest things to me was just how much reading the amazon reviews hurt. Like, they were mostly positive, but the negative ones, even negative reviews that as a buyer I would dismiss as 'clearly nutso' really hurt in a deeply irrational way.

At my dayjob? not only is it someone else's job to worry about that sort of thing, the volume involved would make it almost impossible for me to consume the feedback in anything other than a statistically sampled sort of way, even if it was my job.
Yes, but the question we care about here is if we'd get a privacy preserving decision like Carpenter if Kavanaugh was on the court. I read that section of his opinion, and it certainly seems like the answer is "no".
Have to, unfortunately, agree with the low value of the Sunday papers, even decades ago. Toss out the piles of ads, sports, comics, gardening, and you were left with a sliver of generic stories they could have printed any time.

One thing I suspect has been a blow to the news is that they used to be able to pretend people would look at all those ads. How many people were genuinely looking at all that? Now it's extremely easy to learn that its just not happening.
I believe that you got contacted by a dumb reporter about a Japanese political story by an NYT reporter, but I also know that there are people like Tom Wright getting paid by major news outlets to cover Asia; the evidence I have suggests that those outlets do a great deal of important investigative journalism.
Like I said, "written in X" conveys pedagogy and integration. (Or, if we're being cynical, hip language clickbait.) It's not a very good shorthand.
And in most of South America, and many Asian countries
The fundamental difference is source independence. It doesn't matter where the data is, as long as someone has it pinned, you'll be able to access it.
> This doesn't seem materially different from then

It may not be materially different for some limited set of attributes, but it may be materially different for other attributes, like "how did this situation come to be?", or "did certain political decisions contribute to this situation?".
I'll mention Amaya here.

https://www.w3.org/Amaya/

The original vision for the web was that editing/creation had the same status as viewing/consumption, and that websites were writable as well as readable. This is what Amaya implemented. It never gained wide adoption, but is served as a reference implementation of the W3C's vision of the web. (In my experience Amays is not particularly usable because it regularly crashes, but that could be fixed.)

Is Beaker similar to Amaya extended to use transport layers beyond http, such as ipfs?
I think I might just try to get into a different field. I'm a "recent" grad yet to get my foot in the door, and I'm pretty sure I'm capable of programming... just not of navigating the absurd requirements at every corner and apparent dearth of entry-level openings.

Maybe I'm just underqualified and not that good at all, maybe I'm doing something wrong in my search or I need to move to the valley or something. But thus far all my applications have been a complete waste of time and it seems foolish to continue down this path.
I agree that the current generation has lost the lesson of World War Two: that war is never a good option. I personally believe that part of the success of the us post ww2, and part of the really nice culture we had (sans racism etc) is because a huge number of men walking around knew what the end result of violence is. Nowadays, men are very quick to get puffy and to provoke conflicts. They are fools. If someone forced all those belligerent idiots to hide in a fox-hole and watch their buddy’s head explode a few feet away, and all the rest, for months and months, they wouldn’t walk around acting like tough guys.

I have seen the most profound violence imaginable, the worst you might see in a war. It has done nothing else than to make me an adamant pacifist. I can not articulate it correctly — all I can say is that at a certain level, violence does things to your mind that you didn’t know about. It’s just not comparable with human existence.
> what you saw is not particularly unprecedented historically and I wouldn’t be too concerned.

Are you saying we shouldn't be concerned about anything provided it has historical precedent, or do you have other reasons for not being concerned about an increase in soldiers patrolling with guns?
If you're looking for a great Linux laptop, this is one. Very happy with the 5th gen.
Show HN: Asymcrypt – asymmetric cryptography
That's a similar model to Blendle IIRC. It's been some time since I used Blendle but I remember it being a cool idea, just the app was a little half baked back then. Not sure what sort of state it would be in now.
X11 just requires a Windows based X-Server. Then you can use your favourite xterm emulator and worry less about your ssh agent woes.

No Dbus - because no drivers.
No systemd - hurrah
No proper init system - sucks, but at least you get fstab mounting drives.

I think we'll see a better init mechanism in future, and I hope loadable module support for filesystems / usb devices
are there any plans to support S3?
Not the point.

You issue quest on hash A then hash B. Google guesses that because of other activity it has seen today, visits to a site marked by hash A followed by visits to site marked hash B means you are following a link from Alex Jones’ blog to a flat earth holocaust denial web site, and thus prepares to serve your IP address ads for tin foil hats and prepper magazines.

The chances of your traffic pattern of hash A then hash B colliding with, say, my browsing of the MLP fan club and following a link to cosplay photos from Dragon Con are pretty slim, even though the MLP fan club URL hash collided with the Alex Jones blog hash.

Google aren’t just looking at the one thing you viewed, they are following you everywhere.
How to Critique Bitcoin – A Guide
Extracting Secret Test Cases from Google Foobar Challenge
> but at age 35 I’m really happy that my job involves serious adult challenges

Highly doubt that if you are commenting on a social media platform. What's an "adult" challenge?

> and that my success in life isn’t depending on thousands of teenagers pushing a like button.

Sure it does. From journalist to software programmers and everyone in between.
Interesting idea. But is the cloud version a complete image (perhaps out of sync)? If so then it’s a performance disaster, if not it’s very fragile.

It seems to me what we really want is a cloud file system with local cache (like Dropbox or iCloud conceptually) so that if our local device is vaporized we have a pretty much up to date logical store alive and well (and we can work on any number of machines). The word “swapping” seems to me to be based on the virtual memory model which means that if anything goes wrong you have two disconnected piles of crap.

At a file level you could theoretically have a giant file that is never wholly local, but how useful is this as a feature in real terms?
Why Henry Kissinger Is Wrong That AI Is “How the Enlightenment Ends”
I looked seriously at veganism after reading a WHO report that attributes 13% of world greenhouse gas emissions to animal farming. [Strike that. The figure is 18%, and the source is a 2006 FAO study sponsored by the World Bank and the European Union, among others.] I built a database from the USDA's and whatever credible recommendations for daily micronutrition I could find, and then I built a diet around that database. All recommended micronutrients can be had from non-meat, non-dairy foods except two: it is not possible to be a healthy vegan without also taking choline and vitamin B12 supplements.

An athlete would face extra challenges. Tudor Bompa cites research showing athletes tend to be deficient in important micronutrients compared to the general population, likely because of the stresses of training. And though the position paper on sports nutrition published by the world's most important scientific journal on nutrition recommends that athletes consume up to 1.4g of protein per 1kg of body mass per day, for a vegan athlete this means consuming approximately 1kg to 2kg of beans a day, or even more if the food is less protein-dense than beans. It's hard to eat that many beans.

Sources:

Livestock's Long Shadow: Environmental issues and options, p.112, Food and Agriculture Organization, 2006

United States Department of Agriculture Food Composition Databases

Tudor S. Bompa, Periodic Training for Sports, 2015

"Nutrition and Athletic Performance", Dietitians of Canada, the Academy of Nutrition and Dietetics, the American College of Sports Medicine, December 2016
Gcloud also has a FUSE adapter for cloud storage buckets

https://cloud.google.com/storage/docs/gcs-fuse
Blog post in question

https://philip.greenspun.com/careers/women-in-science

It should be noted that the article doesn’t really talk about programming as a career. It’s mostly about how Science is a terrible career from the perspective of money or security and the professions are way better.
Sure. Especially if you were doing cross platform work. E.g. monogame, mobile development etc.

The move to the cross platform .net core would take preference if I was learning .net now however.
I'd suggest "The Pragmatic Programmer" by Hunt and Thomas. It's a compendium of advice on being an effective programmer compiled from experience. Also, take look at "The Practice of Programming" by Kernighan and Pike. It's a bit more narrowly-focused, but Kernighan and Pike are models for clarity in programming and in writing.
A Tale of Two Narratives: Money Crypto vs. Tech Crypto
Rejoice fellow americans: Trump is the proof you have a solid democracy with strong institutions. Russia messing around and mingling on everything and you still manage to stay on top. Kudos for you, with a little jealousy, because I am Brazilian, and we remove presidents every once in a while (twice since I started voting). For MUCH less.
So, effectively, three security questions, like this:

Favorite color? red

Favorite band? yes

First vehicle? car

In reality, they actually reduce complexity, defeating a 12 character password requirement with numbers, uppercase, lowercase and punctuation characters, because the total space of complexity can be possibly less than 9 case-insensitive letters.
Go to La Clandestina, try stuff and talk to them!
The article claims that "there's a new performance hack taking hold in the NFL — going vegan," mentioning Tom Brady as an example. Article later clarifies that "though not vegan, his personal diet is reportedly 80 percent plant-based." So the performance hack is just eating healthy food?
I find that once Youtube thinks you want divisive content, it serves it up to you pretty regularly.

As an example, I have plenty of "X riles up SJWs" type videos and also their counterpart "X angers sexist Gamergaters" despite not watching these and trying to actively say "don't show me these things". Unfortunately, one bad click from Reddit and Youtube thinks I want this tripe.

It's not solely related to "divisive" content though - the same is true of content related to Fortnite, Buzzfeed, and anything else that mostly consists of clickbait content. Youtube is just optimising for engagement, regardless of how that engagement affects the viewer.
> It's also popular among communists. The idea of getting rid of anyone who stands in the way of some ideology or belief so that a utopia can be established.

It's also popular among large portions of the far left.

> Not an athiest? Off to the gulag! Successful farmer or landowner? Off to the gulag! Too successful or competent? Off to the gulag!

Don't support globalization and open borders? Racist! At the very least, you should be fired from your job.
I’ve been using https://www.followthatpage.com for about a decade. It works, but it seems that development has long ago halted and I’m curious if I’ve missed any of the alternatives out there.

Ideally, I could submit URLs for monitoring with an authenticated API call, could receive both email alerts and webhooks on modify, and there would be an option to have the Internet Archive archive a copy when a modification is detected (and possibly attach a WARC file of the http request/response when a modification was detected).
I think I kind of made the opposite comment (or you replied to the wrong comment not sure).
One way to use this plugin would be to break tasks down into manageable pieces. It is usually easier to motivate yourself to knock out a 15 min task than to do a 4 hour task.
FWIW, the article mentions a possible followup "using ... MMX, XMM or SIMD". (To clarify, XMM is SSE.) SIMD is noted last as though it's the newest development, when that would arguably be is at least AVX, and AVX-512 to be specific.
"This is not going to happen in the United States—ever."

This should happen in medical/military/civic emergency situations, not in making commodity consumer crap.

I have no problem indicating I think Trump is a dupe, but he's a little bit right here.

Some innovation in manufacturing + some employment in under-employed areas would work in America.

If people are allowed to have the 'vision' that we can have electric cars or put people on the moon, they should be able to aspire to intelligent manufacturing developing in the West.
That's some awesome feedback. Thanks so much. As I'm teaching myself asm I'm learning as I go. I'll incorporate it all into a revised version soon.
Social pressures? You put other people's opinions over your own health? Honestly man, scuse my french but tell them to fuck off. I don't care if it's your own family, your wife, do whatever you want. Hearing stuff like that makes me sick, because you're basically saying you value other people more than you and you are who is most important. It's liberating to just not care.
Ask HN: What are good ways to prepare for an iOS Swift interview?
Perl is an elegant, artfully designed language based on linguistic context. If you don't grok it don't use it.
>I look upon this idea skeptically. In my experience, the content delivered to me is as divisive as the videos I've already watched. If someone is getting divisive content, that's probably the content that they want to watch.

Just a counterpoint, I think it depends largely on the subject matter. my 'disengage the brain' videos are mostly tool teardowns and slow-motion videos of milling machines, or reviews of '90s luxury cars.

If I let youtube pick the next video a few times in a row while I'm watching car videos, I end up in supercar land, (which is not very much fun for me, but not divisive or anything.)

If I let youtube pick the next video a few times while watching tool teardowns, I sometimes end up with more interesting tool talk, but I often get survivalist stuff, and sometimes 'sovereign citizen' stuff starts to creep in.