skysight-inc/HackerNews huggingface dataset:
There's this mythical belief that programmers like to tell themselves: "I'm as good at math as I am programming."

It turns out that for many, this idea is far from the truth. The similarities are superficial. The notation is abstract artifice. Math is not programming. Programming is not math.

If you try to take what you know, and instictively use in one context, and try to walk it over to the other, and directly reapply it, you'll surprise yourself at the amount of disappointment experienced.
It's not you, it's just that he's answering the question by using a macro framework. I don't necessarily agree with his approach because China has unprecedented scale in modern economics.
In my experience, it's easy to just learn on the job. Some basic points though:

* Follow whatever formatting and style rules your workplace uses. It's religion and not worth getting into, as long as everyone uses the same style its a win.

* Dev/stage/prod is also workplace specific. Just go with the flow and avoid time wasting arguments on these topics, it's not usually worth it.

* Try to break your work into small commits. This is both easier to review and easier to estimate time on.

* Architect your code so that you can add unit tests. Make sure all your commits have this.

* Prefer longer simpler code to clever code, you're optimizing for newcomers to your code reading it.

* When a one line comment explains it to you, you'll probably need a paragraph at least for someone outside the
field to get started understanding it.

* Think about how you'll respond to someone coming to you and saying "something something prod something something your code is buggy." How will you get enough information to determine if this is true, and to debug it when it is? Logging is one good tool here, so consider what you log carefully.

Finally, don't be too surprised if you find people talk down to you. Unless you are in a FAANG company, which it sounds like you are not, developers can be very condescending towards academics (and people from other fields).
> Why and how is argv[1] at [esp+8]? I realize this is a Linux-specific implementation detail but would like to understand.

The kernel puts them there when the program starts; I believe this is part of the System V calling convention so it's not Linux-specific.

> argv[1] is "gotten" by reading from esi. You then proceed to poke eax and ecx. TIL that SI, AX and CX were implicitly linked. What specifically is going on here?

They are not linked, the lodsb instruction loads a byte from the address pointed at by esi into ax.

> How does the LEA usage here work? You're putting the address of "[ecx+eax-'0']" into ecx. First question, how is ecx not clobbered? Secondly, how does that dereference work? I see similar semantics used in the 2nd and 3rd instructions, it seems AX and CX are linked in some way (in this situation).

lea just does math, it doesn't dereference anything. ecx is being clobbered, but that's what we want: the lea is doing the equivalent of ecx += eax - '0'.

> So the jecxz is bailing out (to an assumed label, that's okay) if ecx is 0. Cool. But why do you now zero and then increment eax?

This will be the return value of main and the exit code of the program. Since you errored, you want to return a nonzero value.
Optical illusion – 18 lines of pure JavaScript
I can't see how an 80% plant based diet could lead to a low carb, high fat outcome. It in no way implies to me a one meal a day diet.

It sounds more to me like the DASH diet, or Mediterranean.
Oh, okay, my bad!

And wow, fibonacci using hand-rolled AVX :) that would definitely be a sight to see.

...although, I should explicitly point out, AVX is a set of vector streaming/processing instructions. Fibonacci is inherently a single-step operation, with no lookahead.

Okay, so I googled "fibonacci avx". The results were quite a mess but some careful wading found me http://www.insideloop.io/blog/2014/10/14/arrays-part-iii-vec..., which states: "A a consequence, the following code that computes the sequence of Fibonacci can’t get vectorized."

So, forgive my own (bullish!) naivete. AVX, and _possibly_ SIMD, SSE, etc _may not_ be applicable to/usable for Fibonacci computation.
In Forth language would be:

: fib 2dup + ;

2dup word duplicates n and n-1 elements and put it on the top of the stack.

+ word takes n and n-1 elements from the stack and sum them. The result goes on top of the stack.

Just start with 1 and 1 at the top of stack.
One of those is based in fact and reality, the other is not. The reason you're having a hard time finding "neutral" news is because reality is not inherently neutral.
You can't stop it from happening. But if you believe that it is likely, then you can at least prepare, so that you might have a better chance of riding it out.

This is a lesson that people learn fast when it happens to them, and retain for the rest of their life - my grandma was a small kid in German-occupied Ukraine during WW2, and to this day, when something on TV spooks her, she goes and tops up her larder. Most people from her generation do the same... but not the younger folk. Why worry about something that has never happened to you? Starvation is something very abstract for most these days.
I named the biggest achievement I heard cited from Democrats seeking reelection.
That is a wonderful point.
There is no replacement for an on-the-job experience
as the understudy of a more experienced professional.
I have experienced this first hand and can vouch for it.
I kind of wonder how much open office really is about cost. I mean, it definitely does matter for startups, but I don't think that's a factor at FAANG. I mean, look at this new FB office, https://www.youtube.com/watch?v=FmTZJRLtA30, there is a ton of open space, they could probably sacrifice just a bit of that for individual offices, or even keep it how it is and add offices.

Because probably only larger companies (very difficult for startups to innovate here!) can actually afford individual offices, and it's not exactly trivial to re-arrange, I think it just takes a long time for the conventional wisdom to change.
s/Newspaper//g
Yes, meta-tracing really works!

On the other hand, I think it is somewhat deterimental to the success of the idea of meta-tracing that really the only working production grade implementation of the idea is RPython. RPython is very idiosyncratic, to say the least. I think a good implementation of meta-tracing on boring technology (say, C++) would greatly help popularize the idea.
It's a shame that that is the quote they decided to use in the article. But you can ask any Twitch streamer, if you take a vacation expect to lose large amounts of your subscribers.

On YouTube, if you stop posting videos for a while, YouTube will severely punish you in the algorithm. It'll take weeks before your videos start showing back up in user's subscription boxes.
Nope: https://en.wikipedia.org/wiki/No-communication_theorem.
Herpes sheds asymptomatically, and it can still infect neighboring cells as a result. Just because an outbreak isn't visible e.g. because the immune system counteracts it early on doesn't mean the virus isn't still spreading.

Like I said, unless the viral dna is excised, you'll always have it.

As an aside, you're aiming for the term "functionally cured." Since the virus could still shed... even that's not achieved here.
How WhatsApp Destroyed a Village
I didn't remember hearing about choline before.. I'm vegan so I looked into it.[0] "Humans make a small amount of choline in the liver. ..no reports of choline deficiency in the general population... the choline made by the body (assuming a dietary intake of zero) may be enough" There are many plant sources. So not sure why you're saying choline can't be gotten from vegan sources. That seems both untrue and misleading (It seems nobody may need to get choline from food sources)

B12 is a different matter, but as it seems a standard additive to soy milk, which I often have on breakfast cereal, I've never worried about that either.

No supplements needed. (Anecdata: I've been going strong for almost 30 years of vegan diet)

https://en.wikipedia.org/wiki/Choline#Dietary_sources_of_cho...
How would /home/linuxbrew/ be writeable by a non root?

Using /home/ like /opt/ is just weird. It seems the installer picks ~/.linuxbrew/ if the user doesn't have sudo privilege but no idea how it got to the conclusion of using /home/linuxbrew/ otherwise.
This is the correct answer right here. The only deviation of this is cooking services. When I did a cookout 2 weeks ago, I just told the vegan that she should be aware that the grill is heavily seasoned by meat. She used the stove and no one cared.
on a slightly different tangent.. if a small group of people successfully develop an AI to sucessfuly perform some task such as driving vehicles.. and it is so successful that it becomes the standard for all cars, when it makes decisions that no one can understand, how are its actions accounted for and is it not therefore possible that because only a limited number of people were involved in its design that it may not (by its actions) represent what a democratic society would normally be happy with regarding its decisions as there has been no option for review and debate over what is important to the majority of people and no chance for open review of the software because it is not open source.
Things are changing. They're changing (at least in part) to what you've seen 30 years ago, but that's not a good sign, when you look at what was the norm during those 30 years.
Royalty free music
1) It's an ICO
2) See 1
I don't think such black and white thinking is appropriate here. Most websites are neither or something in between. It would be intellectually nice if there was such a simple distinction, but it's entirely artificial, a remnant of an information society that no longer exs
ists.
> Would you or anyone else here also agree that it is generally easier to write mathematical notation than to read it?

Yes. In my estimation, it's due to a much higher density of conceptual ideas being expressed. I honestly prefer imperative code for stepping through a new idea because it simply can't be expressed in most dense and compressed form and probably because it's what I'm most familiar with.

> One could argue its much easier to read a novel than it is to write one, and i'd agree :)

I think it's because novels assume you're starting from a position of ignorance. Probably why I could never read Pynchon.
This makes me think of how moot (creator of 4chan) was against receiving donations from 4chan users, presumably because of this type of issue. He later started selling "4chan passes" which added certain specific features to the site. I think that was a very clever way to go about it: the people who bought them couldn't demand moot's attention. They got a very specific thing out of their money and everyone knew that.

Considering these cases, I think it makes sense to make sure that whenever one accepts donations, they make it very explicit what the donator can rightfully expect. That could be as little as a token set of extra features, a badge on their user profile, or just warm fuzzy feelings without extra attention.
Ask HN: Men's fashion/style/grooming advice for software engineers?
In the areas of fashion and style I'm.... your somewhat typical (?) software engineer -- I think I might know some of the basics but don't really give it much thought.

I'm looking to change that and I'm keen to hear if there's any good fashion advice / guides geared towards us engineer-brain types? Ideally something starting right from the beginning / first principles.

What online resources have you all found useful?
"Users do not expect sandboxed apps to get this level of access to their systems, but it is important to note that when an open file dialog is opened by a sandboxed app, if you use it to open your home directory, the app can potentially get access to lots of private information including browsing history, iMessage conversations, e-mail messages and more."

The macOS sandbox isn't like other sandboxes I've used (JVM, ECMAscript, Tcl, etc). Even if the user hasn't extended it by explicitly selecting a file, and even if the app has no entitlements, there seem to be a lot of holes in it -- and they seem to be intentional. The Mac sandbox can be one piece of a security solution, but you should never count on it to protect you from untrusted applications.

Of course, if you choose your home directory in a file picker, all bets are off.

The matter of user expectations is the main reason I wish Apple would revert the sandbox requirement for the Mac App Store. As a user, it really does seem like the sandbox should protect me from malicious code, just like Safari protects me from malicious JS, but it really doesn't. They want the MAS to seem safe, but it would be better for everyone if they made it clear you still need to trust the app.
Some things in p2p hypermedia (dat) that's not possible with http/s:

* You can generate domains freely using pubkeys and without coordinating with other devices, therefore enabling the browser to generate new sites at-will and to fork existing sites

* Integrity checks & signatures within the protocol which enables multiple untrusted peers to 'host'. This also means the protocol scales horizontally to meet demand.

* Versioned URLs

* Protocol methods to read site listings and the revision history

* Offline writes which sync to the network asynchronously

* Standard Web APIs for reading, writing, and watching the files on Websites from the browser. This means the dat network can be used as the primary data store for apps. It's a networked data store, so you can build multi-user applications with dat and client-size JS alone.

I'm probably forgetting some. You do still need devices which provide uptime, but they can be abstracted into the background and effectively act as dumb/thin CDNs. And, if you don't want to do that, it is still possible to use your home device as the primary host, which isn't very easy with HTTP.
Meeting Referees
> Humans make a small amount of choline in the liver.

I thought old “Element 17” was made by fusion in stars.

https://en.m.wikipedia.org/wiki/Stellar_nucleosynthesis

<Oops: choline not chlorine!>
The Boat Linux Missed, and How It Can Swim (2014)
Most people will survive just fine for 2 weeks if they have access to reasonably clean water.
I'd go a bit deeper, honestly.

Peter Thiel is a avowed Trump supporter, and a billionaire who was a YCombinator partner from 2015-2017.

Combine it with this article

https://www.theguardian.com/news/2018/feb/15/why-silicon-val...

and "In 2016, Sam Altman, one of Silicon Valley’s most influential entrepreneurs, revealed to the New Yorker that he had an arrangement with Thiel whereby in the eventuality of some kind of systemic collapse scenario – synthetic virus breakout, rampaging AI, resource war between nuclear-armed states, so forth – they both get on a private jet and fly to a property Thiel owns in New Zealand."

I think this is pretty straight-forward that these hidden/flagged posts isn't some sort of bot army, but instead having a button on the mod-switch at the root console for this website. To me, it's clear that Thiel was the one who put his head out espousing Trump support, to see how the tech community would take it. But I think at least in the elites in SV, they're all Trump supporters.
The science suggests that food is becoming less nutritious because of more abundant carbon dioxide, not directly due to farming practices.
So don't eat cheese. I find anything with small amounts of cheese in it (e.g. pesto) has to me now a very unpleasant tang, like smelly rancidness or something, that I'd much rather avoid. (Long-time vegan, huge cheese-on-toast fan as a kid) ..I've never liked meat-alternative, fake meat, TVP etc food. There's a whole world of vegetarian cuisine out there.
Handshake.org is tackling this problem by decentralizing DNS and removing the need for (and vulnerabilities associated with) certificate authorities.

Disclosure: I founded Namebase which is a registrar for Handshake
I think partly another comment and partly misreading yours lol, sorry about that.

It is a pity that we can't all be perfectly rounded for sure.

In the future, it'd be nice if you Kahn Academy everything starting in highschool and choose out of hundreds of courses on interest for the few electives you have.
I can vouch for Clean Coder. We watched them in our company.
It's a small dev team so we took the time together.
Afterwards we implemented a 4-line rule amongst other things.

We don't always hold ourselves to it, sometimes 5-6 line functions make sense, but we strive toward 4. Sometimes it's as easy as breaking code out into a new function, but sometimes you just simply have to create a class for it. That way a lot of complicated code suddenly becomes very easy without much effort.
couldn't a lot of the same arguments be made about most grocery chains. they sell a lot of generics. similar arguments could be made about google.
> YouTube's comments are some of the absolute worst I've seen on the web. It's interesting that YouTube has made no effective efforts to improve their quality.

For lowest common denominator kind of content, I absolutely agree.

However, as soon as you step even a little bit off the beaten path, comments become a lot more reasonable and often interesting/useful. On all the videos on all of the channels I actually subscribe to, the comments are not bad. There are random assholes here and there, but they seem to be mostly shunned by the rest.
Any progress on the Linux version?
Minio can do disk caching
I would also add that lots of new people waste more time doing TDD wrong than they would save doing TDD right. There are lots of things you only really understand until you've done them wrong.
Could this have been harder to do if the insecure server inspected the HTTP content-type and response body in the response? Something like this (psuedo-code):

if response.content_type =~ /image-/i && !plain_text?(response.body)
pass
else
fail!()
end
https://twitter.com/expandrive/status/1000012200612950017

Yup!
It's "choline", not "chlorine".

https://en.wikipedia.org/wiki/Choline
> I know terrible programmers who are receiving 2+ offers in weeks, above their previous salary, after being let go (fired).

interesting. what location?
>> argv[1] is "gotten" by reading from esi. You then proceed to poke eax and ecx. TIL that SI, AX and CX were implicitly linked. What specifically is going on here?

> Where do you see this?

Here:

mov esi, [esp+8] ; get argv[1] value written to esi; okay
xor eax, eax ; clear the upper bits \ how is writing to eax
xor ecx, ecx ; will hold converted value / and ecx now relevant?!

> lea just does math, it doesn't dereference anything.

Right; I said "LEA usage"; the instruction itself I understand, but "[ecx+eax-'0']" is throwing me for a loop.
That’s “chlorine”, not to be confused with “choline”
A great starting point for me was reddit.com/r/malefashionadvice (and the associated wiki)

Some advice: focus, above all, on fit. Learn what each of the basic garments should fit like for your body type. Even the most basic budget wardrobe tailored to fit well will look great compared to expensive but unfitting clothes. Then focus on fabric quality, color combinations, and experimenting with your own styles (pinterest is great for exploring this).

Good luck!
Maybe that's the target audience
I’ve found books.google.com be alright for this as well.
Cost proof doesn't cut in for those users - it's typically only put in on the Nth new signup within X hours from an IP address.
thanx...also free for personal works..
Looks really nice, but to me, it exemplifies everything that is wrong with modern web development.

It's a simple countdown timer. Back in the day we did that with a couple of lines of javascript.

Now it's a 170 KB JS bundle, requires npm to build, and uses a couple of external libraries. It's madness.

Looks lovely though.
My biggest impediment in adopting org for publishing, and knowledge management is the lack of really good UX on iOS. Does anyone know of other good editors/apps on IOS that support the org markup? (I’m ok with managing the publishing itself on my dev machine)
The story of these youtubers certainly has strong echoes of other show business type careers.

>creators feel disposable ... in the knowledge that there are younger, fresher people waiting in the wings to replace them.

That sounds a lot like actors in particular. Today's hot new star is tomorrow's has been.
I'm using the Namebase beta right now, it's great!
Which is the right attitude if you're not trying to make a living off of youtube. For those who are, they have to care about what the subscribers want.
What is? I don't think I gave any specific examples or are you implying that other side political propaganda is completely based of "facts and reality"?

By neutrality I mean the facts and reality. Reality is inherently real and not up for negotiation. I just want to know what has happened in the world without any additional comments/thoughts/propaganda etc. by the journalist.
I'm currently sketching out/prototyping a key recovery system with biometrics-
https://www.notion.so/Design-Spec-fa2b4e36d1b74d56bfca7a5062...
Capitalism has its roots in one idea: private ownership of the means of production. It doesn't say anything about who does or does not deserve something; it's just completely orthogonal to the ideology, such as it is. People still suffer as a result of those economic policies, when they're not unchecked - but it is not the intent, and you can absolutely have capitalism without any of that stuff.

Statist hard left ideologies (such as Stalinism, or Maoism, or even late Soviet socialism), on the other hand, have an ideological dogma that suppressing dissent by violence, even extreme violence, is perfectly okay, and even a revolutionary duty - the ends justify the means.

There are other political ideologies that incorporate capitalism (or parts of it) as an economic program, but pile other stuff on top of that to justify violent oppression of the opposition - like most right-wing dictatorships - and those would be legitimate targets for comparison with Stalinism etc. But people dying from lack of healthcare in US are not "victims of capitalism". They're victims of a specific oligopoly, that other capitalist countries don't even have.
nice stuff..
Red Terror was entirely about a perceived existential threats, and didn't make any claims of sub-humanity of those targeted. Was it not a genocide?
> even on the Browns

Sure, but what the hell is going on with the Bills?
That indeed is a fundamental difference. But on second thought I got confused. Source independence, content addressable are nice and all, but we don't build static websites that always have same hashes; "Ubuntu Server 18.04.1 ISO" could be ipfs://<static_hash>, but even "latest Ubuntu Server 18.04.x ISO" couldn't be that. You still need to query the origin server (or client, whatever you call it), the central authority, to get those addresses. So, frequently changing websites/webapps don't benefit from this; they may even be penalized by the overhead. Only aggressively cacheable objects could benefit, but the vast majority of those probably won't be popular enough to be cached/pinned by peers anyway, so you still end up getting whatever you need from the origin server (or paid CDNs).

Btw, I skimmed through Beaker docs, and it seems they resolve names through DNS (what else can they do) and even use HTTP for discovery.
If you think this is problematic, say, providing for teenagers to click like buttons rather than confronting global warming or extreme wealth inequality, the question then is why do things have to be this way?