skysight-inc/HackerNews huggingface dataset:
As a supporter of RTBF, what do you think about its impact on startup search engines?

I'm advising a startup in Europe -- 3 people, self-funded -- and am not looking forward to them launching and hitting a buzz-saw of RTBF requests.
One of my go-to interview questions is "Can you tell me about a time when you've used an explicitly-modeled state machine in your programming?" Our work, heavy in embedded devices, network protocols, and parsing, is so full of state machines that I wouldn't want to hire someone who wasn't comfortable using them.
Certain Minecraft and Factorio players have done things like this often.
That is the usual number given as "responsible". And these days? A reputable bank would not even consider approaching 50, let alone 60, per cent.
Dumb question, never used lambda before, how often is this triggered? I can’t tell at first look through the code.
This was between 1989 (when we started in my living room) and 1999 when I left. By 1999 we had about 160-170 developers working on gcc, gdb, binutils, glibc, Cygwin etc. The money was a mixture of 1> ports (typically paid for by the manufacturer), 2> maintenance (mostly paid for by the corporate end user -- for $100K/year we'd fix your bug whether we spent $100 to make a trivial fix or $300K on a major problem) 3> maintenance on very old versions that people had to freeze on for one reason or another and 4> the public tree (we wouldn't work on non-free software, apart from a few abortive experiments after I had left).

Making sure everything we wrote was compatible with the public tree was expensive. In the end, one of the last things I did saved a lot of money and improved code quality for everyone: I forked gcc from the FSF (and made the egcs tre the de facto, and eventually de jure version).

Nowadays forking is considered routine, and even beneficial, and projects have steering committees that are responsible for master releases. At that time, forks were considered a tragedy, and it took me over 6 months of discussion with various people to build a reasonable consensus (you can see the people's name at the bottom of the letter I wrote announcing it ( https://gcc.gnu.org/news/announcement.html ). It's been a good model. Note that RMS's name is not on the letter -- he was furious and was sure this would destroy the FSF. Instead it has strengthened it.

By the way, to compare these numbers: Red Hat went public with, AFAIK less than 10 engineers and when Cygnus and Red Hat merged, though both companies had about 200 people, Cygnus had over 160 engineers while Red hat had a couple of dozen. Of course we had a lot more revenue, and in the years since RHAT has invested heavily in free software development. But their company value at that time was something like 3X ours -- a very valuable lesson.
I really don't like state machines because if you need to add a new event, each of the states need to be updated to handle that event. If you add a new state, you have to figure out how to handle each of the transitions from other states. So as your states grow, the maintenance on the developer's side grows faster than linear.

Additionally, I find that I cannot understand how the program works without actually drawing out the state machine diagram if I come across it the first time, so there is a bit of a learning curve. It's also a nightmare to test because of all of the states that need to be tested.

So in summary, not a fan. Like recursion... if it feels natural then use it, but I don't go and try and turn stuff that isn't a SM into one or turn something that can be done as loops into recursive function for fun.
Compilers and games are two areas I've used them a few times in.
See here for other people with the same idea (and others): https://groups.google.com/forum/#!forum/idealos-design
And it's trusty sidekick The Blockchain (TM)
This might be, but state machines are so common in imperative code, you could say they are common idiom there also. Pattern matching over ADTs only drives transitions; different representation of transitions can lead to different constructs being more convenient (e.g. if your transitions are just based on a finite set of values, you can use just dictionaries).
The lambda doesn't have a schedule within because doing so would split the concerns poorly; rather you would hit this lambda on your own schedule.
Ah, so you ping the lambda to have it ping the coded in website?
[video] AI learns to play snake using Genetic Algorithm and Deep learning
If you look at modern Java web application code, there’s barely any object orientation to speak of.

(Now it’s mostly Annotation Oriented Programming, especially with Spring. Which brings its own difficulties.)
After playing around with some state machine libraries, I find a simple switch statement against a State enum to be the most straightforward approach. Especially if your language can guarantee an exhaustive switch.
Crypto exchange operators could and likely look at their own books and trade against their customers (insider trading).

Manipulating customer margin calls becomes trivial if you can look at the books and calculate if buying/selling x amount of the order book will margin call y amount of funds and decide its worth it.
.. as a service!
Much like what we have seen with the opioid epidemic I suspect that people will pay more attention to stories about well-educated, affluent (read white) members of the upper middle class suffering from drug abuse. If the end result is more humane drug policy and enforcement then maybe it's a good thing?
Yes, npm installs libraries locally so it avoids the need for something like virtualenv in the first place. Coming from Python, that immediately struck me as a better approach to package management.
Both of your concerns seem to be nicely addressed by statecharts (nesting to constrain relations + visualization): https://medium.freecodecamp.org/how-to-model-the-behavior-of...

(haven't used this yet)
>Basically, Rayon makes data parallelism really easy in a way that few if any other languages do.

Syntax-wise, there's OpenMP which can turn a for-loop into a parallelized for-loop (independently scheduled iterations) with just some syntactic sugar on top of the loop.

OpenMP has support for at least C++ and Fortran, and is not hard to use.

I wonder how Rayon compares to OpenMP.
IIRC the avrasm2.exe assembler, when plucked from an Atmel Studio installation, also works surprisingly well being run via WINE on Unix.
url could be set via an environmental variable: https://docs.aws.amazon.com/lambda/latest/dg/go-programming-...
This looks fantastic as well! I'm a computer graphicist as well, and I always enjoy seeing gentle yet thorough introductions to the topic.
that sounds right. education, experience, doing things, trying.
A Startup Is Working to Predict Where the Tides Will Rise
It is exponential in the number of nested loops, which is what's important for the realization that adding more nested loops is bad.
Problem with Japan's housing, last I checked, is that there is no resale market. This is due to their culture were they want it new so they usually don't buy used houses. Not sure if that has changed but it would be something I would want clarity on.
I drink three cups of English Breakfast a day. If I try going without it I get a really irritating headache.

If Im feeling extra sluggish I'll upgrade to the strong stuff - PG Tips!
Is there something like this for 2D instead of 3D? I see there's a little bit at the beginning of Part II here.
> If the HN experiment has worked for so long ...

HN is relatively good for an Internet forum, not for scientific literature. It's not even good professional IT work product - that's not an insult; it's not what the forum is intended to be. I'd be very concerned if the quality of scientific research and review dropped to this level.
I love these old-timey videos.
Thanks SO MUCH for this article. I hate it when questions like that go on answered in stories like this one. I am most threw the magazine across the room, but your research skills calmed me down.
Really... so you wouldn't take out a mortgage to buy your house?
Is there a formal name for this?
Back to naturopathy school for you.
A reducer store is not a state machine since both the transitions and states are loosely defined. That said, at this point I think it's actually better for UI, despite the verbosity and lack of formal correctness.
One would have expected that the arithmetic assignments operators would have been faster as

a += 1 would only compute the address of "a" only once and then duplicate it, whereas

a = a + 1 would compute the address of "a" twice. For more complicated examples the first should see an even faster speedup.

So, from my perspective, there is a serious problem here in the optimiser.
There was a reference to a Shopify blog post that 404s, the new url is https://shopifyengineering.myshopify.com/blogs/engineering/1...
Order/bid management in markets is also a case where they shine.
> "Where Peter Thiel lives is of at best marginal import to anyone but him."

This is not first rate journalism. Does Zachary Karabell not realize that people go to Mr. Thiel seeking investment? It's not simply a matter of Facebook. SpaceX and Stripe each had times when they couldn't raise investment from anyone but Thiel.
I use state machines in UI.
I would hazard a guess that there are decent state machine libraries for most languages that you can use

I think this is already part of the problem of complexity --- when I think "state machine", what comes to mind is a loop and a switch with some gotos in the cases. Definitely not a library. If you think "I need to use a state machine" and your next thought is "I need to find a library for that", then IMHO you're definitely doing it wrong.
Thank you, I'll make sure to meet them in a public place.
Or you could invoke the lambda on a schedule using Cloudwatch

https://docs.aws.amazon.com/lambda/latest/dg/with-scheduled-...
Stimulants aren't my scene so I don't really know how prevalent they are in tech (but it's never been in my face, at least not compared to when I was in high school). However, marijuana and alcohol are freaking everywhere. Second week at a big company and I had a coworker showing me, among other things, pictures of his pot plantation. Plenty of folks vaped at work (some to the extent that they were incapable of doing their jobs).

As for alcohol, San Francisco is a hard drinking town. In other countries if you get a cocktail it will be very carefully measured. Here? Outside of some artisan hipster joints you get hilariously unbalanced drinks. We had a drug/alcohol free policy at work but still had a beer fridge or two. Off-sites were generally open bar. 1:1 meetings? Often at the nearest bar (which typically lasted 1-2 drinks). Weekly team off-site lunches? Booze. First day on the job? Let's go to Kozy Kar (ugh) to celebrate with our high profile investor. Friday night? Let's go to Martuni's and get blitzed. CEO is too drunk to stand? Don't worry he's still good to drive. Hardly Strictly with the coworkers? Sure, let's make a pitcher of margaritas first.
I have been following Elie and his team's work for a while now, and enjoyed this read, but I am curious as to why it was posted on his personal website as opposed to Google's Research Blog (https://research.googleblog.com). He is one of four authors and this was clearly not a personal effort of his. Not to mention, it would reach a larger audience if shared by Google directly.
Or control systems (which is remarkably similar to game programming, really). Basically anything that needs to model on control a system which changes state over time. Sometimes it gets a bit too much, though, and people start seeing every task as a nail for a state-machine hammer.
PlanGrid (YC W12) Is Hiring Front End and Back End Engineers and Technical Recruiters
I'm not going hard on you at all, only on what you've said. The evidence about BPD is that it affects women far more often than men, the clinical data overwhelmingly supports this, and so does the genetic research on the topic. Instead of considering this evidence, you've tried to find some seperate evidence for gender bias, you found the one paper that examines this, and that paper doesn't even really draw any conclusions.

Any time a question is asked about 'why are men and women different in regards to x', you'll have people lining up (like yourself and other commenters in this thread) to say it's gender bias. When the answer is often just because men and women have differences, which is exactly what the evidence points to in this case.
Cable service will serve an entire household, a Dropbox account will serve a single person.
I had the exact opposite experience, in that getting shoes with more and better support helped really correct my gait and give my knees much-needed relief without much other change to my routine. I also have orthotic inserts but I had those before.
> do large mining operations network their miners so that they don't overlap their hashes

Interestingly, it's hypothesized that Satoshi did this:

> He suggested that Satoshi had access to 58 machines for mining, so to avoid checking the same nonce twice he gave each machine a different id, which was stamped in the LSB of the nonce.

https://bitslog.wordpress.com/2013/09/03/new-mystery-about-s...
"When you say "brain health" do you mean actual neurological changes taking place in the brain, or underlying mental health issues like depression and anxiety?"

I've been looking closely at this distinction between mind and brain for over a decade and I have to say the evidence is very thin as to nature vs. nurture wrt anxiety and depression. Moreover, ask any professed expert about the differences between chronic stress and "generalized" or otherwise anxiety, on the one hand, and sleep disturbances and depression on the other. The more certain they seem of the answer you more you know they are not honest arbiters.

The most recent work on sleep suggests a glymphatic system that washes toxins from the brain especially well during sleep. More to your question, the best work I've seen suggests that many mental health concerns can not be treated well if there's an underlying sleep disorder.

Taking a step back, if any person is under a lot of stress AND not sleeping well, and for years on end, the distinction between mind and brain and body would seem to matter little. They are suffering and in need of serious help and likely to self-medicate. However, doctors still today do not know how to treat sleep or stress concerns and specialists are all over the place, from therapists to neurologists to psychiatrists and behavioral health specialists.

Feel free to reach out to me personally. My contact info is in my profile.
Erlang OTP’s gen_fsm and gen_statem are great for implementing state machines.

Mind you however, the immutable nature of variables really helps.
My flat feet made me walk splayfooted, which then eventually started giving me knee troubles when I began to walk a lot. I find it a little puzzling to read these kind of takes, testimonials for Five Fingers shoes, etc. If nature could fix everything with no intervention we wouldn't need to brush our teeth either.
RISC-V Gains Its Footing
Dressing David Bowie as ‘Ziggy Stardust’
A result of articles like this one which describes experiences of people with autism is that many of the readers without autism will attribute some of those adaptation behaviors as an indicator for autism.

It would be nice if the article provided more detail on the actual condition, the tests for it, and how it differs from the common 'i am a human' anxiety. Virtually everyone, men included, has experienced the same things that the article describes as being experienced by women with autism.

I think there is a risk with these sorts of articles that many people will make a lot of unwarranted assumptions about other peoples' abilities and behaviors.
I personally know engineers at Google who drink very heavily and do drugs including ketamine, coke, shrooms and acid.
I used to do VHDL for FPGAs, where you basically have to use state machines. LabView is that way too, being a dataflow language. But I don't know how much LabView I've seen that I would call beautiful. Maybe if one considers spaghetti beautiful. ;)
> "It is exponential in the number of nested loops, which is what's important for the realization that adding more nested loops is bad."

Adding more nested loops is bad, but it's not exponential. It's polynomial.

As you nest more and more loops, the big O complexity goes from N to N^2 (quadratic) to N^3 (cubic) to N^4, etc... N^(any number) is polynomial. Exponential would be 2^N or 3^N or any number raised to the N.

See: https://en.wikipedia.org/wiki/Exponential_growth
This is why Quora is a complete waste of time
I’m sure any future historians working on a scale where these delistings would be relevant would be working with tools that would be able to do the equivalent of a content-aware fill on the missing data.
We tend to use state machines for massively asynchronous operations like order management (with days between updates), as well as a home-built library for handling the task. It's incredibly fault tolerant and offers really easy abstraction and automation.
That could very well be. My brain tends to map problems to ADTs with very low friction.
node_modules will muck up jall the big filesync applocations. It's not cloud based, but Resilio Sync supports an IgnoreList file that I use for all my dev folders (whcih are also typically backed up with Git).
How I predicted it:

Started reading short seller message boards. Got deep into the weeds with credit default swaps. Found that you could actually see prices for credit default swaps on markit.com. watched priced for BBB- credit default swaps increase dramatically in early 2007. That was the signal that it was over.

Got back in in early 2012 when the loan rate resets from the housing bubble all tapered off.

Moral of the story: in every bubble the money is coming from somewhere. Figuring out where it is coming from will let you predict the big market turn. If you don't know where it's coming from then you probably shouldn't play with bubbles.
I would've done paging before task switching because TSS is such a broken way of doing things. Processes should live in their own separate address spaces.
Do any cars come with DIN slots nowadays? Looks to me like they're all custom-moulded into the dash. Very irritating.
There's a lot of truth to this statement in my experience. I just finished rewriting my homework for my operating systems course and the first version looks awful compared to when I rewrote a chunk of it as a state machine
Or maybe another way to put it would be that the given language is hardware-antagonistic.
Is it pretty hard to pick it up for an average programmer?
Since you like the idea of wiring Sketch designs with logic, but you want a solution created for a UX designer, it sounds like you'd like Haiku. We're in the same YC batch as Pagedraw. https://www.haiku.ai/

Haiku focuses on connecting UX designers with developers through shared version histories (git & npm), on a foundation of animated & interactive code components. Haiku supports Vue, plus React, native iOS and native Android.
Unsolved Mysteries: The Death of Dave Bocks
Sony launches a7 III: Sub-$2000 24MP full frame mirrorless
I don't understand the issue very well... If you have a new event, you either have to handle it in the state machine or some other way. Any place where the event doesn't apply should cause an appropriate failure. Same with new states - you have to write those transitions in some way. You can use macros/abstractions/whatever for simplifying many cases. But none of that code really disappears when you don't use SM.
> if you need to add a new event, each of the states need to be updated to handle that event

Depends on your formalism. I never use state machines of that form for exactly the reason you say. Rather, each state defines the conditions which cause a transition from it. Receiving an event in a state in which it is not expected (say, an I/O completion in a state which should not have outstanding I/O) is a straight-up hard error.
I’m a big fan of simple markdown-in-vcs wikis. If its a git repo you can stick Gollum in front of it and you have a web UI but can still allow devs/ops to clone and edit locally.
Why It's So Hard to Dose Weed
Those languages are however supported mostly by (accidentally or deliberately) being similar to C/C++. Not only does the IR need to be able to express certain constraints of the language semantics (IIRC, there have already been changes to better accommodate Rust), but the kinds of IR patterns the compiler frontend generates might not get optimized if they are too un-C-like.
I design in code ... grab a bootstrap template and quickly design/code in the browser via Inspect element; save it as I go along.

What are front end devs so busy with nowadays that they dont have the time to code the UI?
A CSS grid framework using Flexbox. Only 321 bytes (Gzipped)
Adding to this. If two miners both discover a solution it is astronomically unlikely that it will be the same solution.
The most trying thing about traveling to Korea and visiting my wife's family, for me, is the extent to which you're expected to sit on the floor and eat, sleep on the floor, etc.
Yep, Chicago’s discount over cities of similar stature is pretty staggering. And if you want to live the same frugal lifestyle you would in SF (roommates + hour commute on public transit) you could spend $600 on housing and potentially burn less than $15k/year. That would be some incredible progress towards savings goals or financial independence at a Chicago tech worker’s salary.
Another good link for people looking for something like this: https://wiki.osdev.org/Main_Page
That seems like a problem such a startup would love to have.

In any case, one cost-saving advice would be to piggy-back on Google's process: simply check if they delisted the search result and follow. I can't think of a specific law this would actually infringe.
I’d imagine the types of payment required will dictate some of this.

A client uses amazon pay, PayPal and has started looking at Braintree. None are without their own issues.
Just curious, it’s also fraud to understate your income, right?

So if you made $95k, but put $94k, that would also be a felony, right?
A more analogous vision example would be the ability of people (especially children) when not wearing glasses to force focus which requires effort and temporarily decreases their ability to keep eyes in alignment (if they have amblyopia or strabismus.)
I hate to burst your bubble, but the phone the FBI was trying to break into didn't have a secure element. And the approach they used to finally break in was supplied by Cellebrite, not Apple, and only worked because it didn't have a secure element.

Also, this has nothing to do with PRISM, it's just a consequence of a recent Chinese law. Apple has two options. The first is to hand control of the data over to a Chinese company (which is what they're doing). The second is to pull out of China entirely (or at least, completely disable iCloud in China), which would suck for Chinese iPhone users and wouldn't make them any more secure.
I.e., the tools will make up a plausible story, such as the story that best fits the available evidence excluding the forgotten bits? That's not very reassuring for those who worry about the loss of history.
Eh, I've been on HN a long time and you are definitely on the wrong side of the consensus on this issue.
I had to do it to implement a 16-instruction loop for the TI RM4's High-End Timers, which are programmable timers that you can offload arbitrary pulse-train generation to, among other things.

http://www.ti.com/general/docs/litabsmultiplefilelist.tsp?li...

Every instruction was a state and I had to model each of the transitions between instructions to understand the program flow.