skysight-inc/HackerNews huggingface dataset:
My mom grew up in South India, so in our house rice has always had a more central role than in many other north Indian households (and other southern Indian dishes). Always kept things interested.

Aside: I wasn't in India in 1984 but recall being glued to the BBC world service after it happened. Crazy times
Pete Hunt, one of the original developers of React at Facebook, began work on a Cassowary-like layout engine at one point and came to the conclusion (whether rightly or wrongly) that arbitrary constraint-based layout is too user hostile to pursue further.

I too like constraint-based layout, but I have to admit flexbox is nice in that it has very predictable behavior. The main hangup I have with flexbox is that it doesn't allow for layout based on aspect ratios, but Yoga has extensions that resolve this issue.
I hang out a lot on /diy/ and /out/ and some on /pol/ and behavior is definitely driven by board culture not technology, as the underlying technology is obviously the same. The worst I see is on /out/ is the mora knives nuts, sure I get that you like that knife for outdoor work thanks for telling us the 10000th time now go away. The worst I see on /diy/ is, well, nothing, maybe some half-baked electrical advice sometimes, well intentioned maybe but if you're doing something weird maybe wiring your own subpanel if you have to ask /diy/ how to ground it you should probably give the job to an electrician. The worst I see on /pol/, well no point going there here on HN, but you can guess.
Speaking as someone coming from the web, auto-layout is really awful. You're way better off making UI easy to reason about for web developers transitioning to mobile, because that's where most of the talent comes from. By DSL, do you mean something like HTML/CSS? React Native basically has this with JSX and style properties which use Yoga under the hood.
TypeScript has an easier learning curve (for people with a JS background) and it's really popular.

Elm is sometimes on the frontpage of HN but let's be honest, it's not really used.
Anyone knows any good resources to learn typescript? The tutorials on the official site are really... bad. Like I would not even call them tutorials.
Ouch, harsh downvoting :) Guess the 2.7-4-life folks are a little sensitive. Anyways, it's great to see python continue to move forward. I just wish more devs would admit that python 2 is not the future and move on to 3.
Analytics has become useless
That isn't a very empathetic perspective. Consider perhaps that it has nothing to do with ego and nothing to do with thinking that college has nothing to teach you. Instead, it might be the case that these individuals think either or both of:

1) Yes, college could teach me a lot, but my resources (time and prime years) are finite, and I'm willing to make a tradeoff that forgoes some valuable elements in favor of an arrangement that helps me achieve my personal goals

2) College is not an option for me because it's incompatible with the reward centers in my brain and things like entrance exams, prerequisites, and the rigor and structure of academia are environments in which I flounder, not thrive.

There are many experiences in life that have value, but it is up to each individual to decide for themselves what they should pack into a few short years. It could just as easily be argued that the egoism is on the other side of the table for being so dismissive of alternative paths to success.
Insomnia Month 5 Recap – First Revenue
Really awesome little library. Nice work. I'm always excited to see different approaches for making react 'reactive'.
You are allowed to share affiliate links on reddit. Well on some subreddits you could. It's all up to the subreddit. And even if reddit banned the link, that's nothing to do with Amazon. Amazon don't enforce reddit policies.
Cloud Security Scanner
recipe? I've never tried Indian at home, mainly because its intimidating and seems time consuming to learn what each of the cooking words means (for this very limited american palate at least). I dont necessarily have time to remember when atta or maida should be used (or what they are again), and what my convenient american-kitchen equivalent of a tava or tandoor could be...

Now... "put some yogurt, milk, water, AP flour and X,Y,Z in a cast-iron pan and fry it"? Yes that I can handle...and will probably come back to.

I guess I've never found the right "bridge" to Indian cooking... any links would be helpful.
Thanks for the advice, I have reached out to all the executive teams that I could think of but I have not yet received a response
http://micheleincalifornia.blogspot.com/2015/08/how-aflac-go...
I like that second idea, perhaps a mention on the python-ideas mailing list?
Going one level deeper, the underlying truism is that computers make better bean counters than people, even programmers. Type systems are good insofar as they free up cognitive resources of the programmer. Conversely, type systems are bad when they make programmers burn attention resources without enough return. (This is a difficult thing for people to evaluate, because sometimes the "return" from a type system can pay off many years later.)

Again, it all comes down to cost-benefit. A new, modern 21st century language should be designed with the above in mind. The type system should make the resulting apps more stable, stay out of the way of coders reading code and writing new code, yet enable powerful tooling that doesn't need a heavyweight background process running a O(n^4) algorithm to collate meta-level information to enable all the IDE features. (Ideally, the tooling should be able to parse everything it needs to parse at some small multiple of the time it takes to read the source files off the drive.)

Again, it's all about cost-benefit! "Elegance" or popularity with tech hipsters be damned, what's the cost, and what does it get you? (The nickel-and-dime costs of waiting around for lugubrious and unresponsive tools not only add up, they operate with some huge multiplier effect.)
Basically. I get that there are several, but having just moved from developing on a mac to Windows, I didn't find one I liked. I just needed super basic - single pane.

Also I wasn't a fan of how every client looked like they were straight from XP. I used this as a way to get familiar with Electron, as well.

Lastly, it's open source so people can add whatever they want to it. I have a few ideas that I would love to be using myself (image previews, in-client file editing, etc), and I'm sure other people have their own features they'd want - and they can add them now.
Yeah, that was Bill Gates' answer. He takes "classes" all the time. @4:35

http://www.bloomberg.com/news/videos/2016-10-17/the-david-ru...
I'm near expert level in one or two categories. Its difficult to post about my views because they're academic and involve history, the debate, popular consensus, etc. My comments just get downvoted because the hivemind just wants simple answers. Those simple answers are easier to digest, easy to know if you agree or disagree, etc.

This is also why /r/askhistorians is so heavily moderated. If you just let it run itself the top comments would be low-effort junk like "Tesla god; Edison devil" and other nonsense with almost no discussions that go counter to the grain or discussion of the many shades of gray between "good and bad" and "right and wrong."

>Afterwords, there were posts about how "reddit saved the day again".

I feel sorry for the people who post incredible things, especially some of the short story writers, but the press narrative becomes "Reddit did it again!" It wasn't "reddit" it was a single author. I really wish there was more of an emphasis on individual contributions there and the people behind the usernames.
Why does svg need this kind of special handling (could be done for a div inside a div and just work for svg)?
So you're a media dsitribution contractor in Washington, DC and you don't see how covert editing of social media posts is upsetting, overreach, abuse, or illegitimate? And you're making fun of expectations of the integrity of social media posts?
Not very well. They're very good at coming up with new ideas, but very poorly applying them to their situation. Amazon gets credit for trying, but they should get more credit for propping up bad ideas with operating losses for long enough that outside observers eventually think they might be good ideas.
Whaaaaaat is going on here? This article is from the Atlantic.

Edit: Saturday Evening Post

http://www.saturdayeveningpost.com/2013/03/06/in-the-magazin...
Yea, in fact I think it's the second law (no entropy decrease) rather than first law (energy conservation) which is the restriction. Devices up-converting photons to higher frequencies require power input.
Bit of a misunderstanding here, I was referring to LinkedIn's feature of Export Profile as PDF
As a counter I think there are /leftypol/ users who sincerely hold Stalinst or Maoist views. Jokes are made about gulags, Holodomor and the Great Purge, just as /pol/ will joke about 9/11, the Holocaust and mass shootings.

How does this make it a better place of discussion?
How Ethical hackers rating calculating
Or we can keep Java so the entreprisey outsourced projects use that, while the hype 3lit3 tech use something else.

That makes it easier to self select jobs and to recruit =)

A win win.
Wow. That's a weird issue I never noticed since I have the credentials I use memorized.

I'll try to figure it out.
I read the whole article and had a real problem seeing where the genius was. The companies the students founded are relatively uninteresting and many other startups/more established companies have done similar things.
Can i use this in react?
Could we take heap snapshots as well? With some trigger in client side code, it might be possible to detect memory leaks.
Parent was referring to the current version of IE which still has partial support. I wish it were better supported today. It would sure make my life easier.
Matrices under addition? I know very little of Haskell, but I think this blog post is quite interesting; it's not obvious to me how you would translate the 'join' operator (->) into a matrix formulation that preserves nice structure (you'd have to be weird about dimensions and such).

Sure, the 'add' operation is nice (+) since it's just an OR over F_2 (e.g. 0+0=0, 1+0=0+1=1+1=1 [1]) in the matrix representation, but even this involves some bending-over-backwards by noting that you still have to extend the dimensions of the matrices in question in order to even make sense (think about, say (1->2) + (3->4)).

I think the minimal axioms are quite elegant if you ask me.

------

[1] Over F_2, this isn't quite the same addition; I define

a+b ≡ a⊕b + a·b

where ⊕ is XOR and · is AND, which are the usual, defined operations.

EDIT: I guess I didn't mean to say it's not obvious to do these things per se, but rather, a simplistic approach without defining a universe of possible vertices and a mapping from these into indices can't really be done in the linear-algebraic picture.
I assume you mean lookup types rather than mapped types; the latter has nothing to do with strings.

In general, in application-facing code I think you're absolutely correct: using strings as lookups is a hack that should be discouraged. (Though sometimes it's convenient when dealing with other JS libraries).

However the feature brings some strong metaprogramming abilities that wouldn't be possible otherwise. For instance I'd have to imagine that mapped types were implemented by using those features, and the ability to define types as variants of other types (beyond ordinary generics) is something very powerful.

I'm primarily an F# user and have been begging for something like this there. The ability to define variations on record types (without and id/timestamp for inserts, with those fields otherwise; hashed/raw password fields for your various user records; etc) in a typesafe manner without a ton of repetition is a game changer.
I believe it comes down to procedural vs declarative. Relational Algebra is fairly procedural (do X, then Y, then Z). Where as Relational Calculus(https://www.tutorialcup.com/dbms/relational-calculus.htm) is declarative.
There were quite a few commercial games written in Pascal/Delphi back in late 90s and early 2000s. Original War was quite successful RTS game that comes to my mind.
New York City's Grim Climate Change Outlook, Mapped
Thar Garmin watches are so much more expensive and do an excessive amount of stuff. In Canada, for $150 I could have a pebble time with a color screen, great battery life, sleep tracking, step tracking and that can do notifications. That's all I use it for, I might like a heart rate monitor on occasion, but paying way more for extra stuff I'll never or rarely use doesn't appeal to me at all. The only Garmin smartwatch I can find in stores is over $800. This isn't a real alternative.
Other languages don't do much better once you start to have a few dependencies.
Not yet (other than react native)

Which is a shame, since the lack of aspect ratio support is one of Flexbox's failings (and apparently resolved with Yoga)
Await is the new black: ES7 await/async showcase
This article _creates_ a reason why the OS might not be able to use huge pages for a calloc.

If substantial count of people will read this article, believe what’s written, and [re]design their software under the wrong assumption calloc returns sparse copy-on-write memory buffer at no performance cost — the OSes will no longer be able to use huge pages for a calloc. Because doing that would dramatically increase physical memory usage for such software.
Woo-hoo! Thanks so much for saying so! (And I see you've passed 4 years of beeminding recently, which is maybe an even more powerful testimonial!)
I'm wondering, how does the aging Russian early warning system for incoming missile strikes not pick these up as threats?
Show HN: Micrograph – GraphQL automation lib with middleware support
This has been a pretty controversial article, because the evidence supporting the author's claims is not terribly good. One of his key studies relied on people who volunteered, while in med school, to participate in a study that would continue as they aged and died. It's not hard to imagine this group was more comfortable thinking about mortality than most doctors.

Certainly more doctors than members of the general public have things like living wills that simplify end of life care than the average person, however more people who make as much money and have as much education as doctors also have living wills more often than the general public. I haven't been able to find numbers for doctors compared to, say, lawyers or professors.

There does seem to be a subculture among doctors who are looking into how to die well, and may be better at it and act on their beliefs with greater confidence and urgency than those who don't encounter death as often, but it seems like many, if not most, doctors cling to life and try to delay the inevitable like the rest of us.

For some additional data, see here:
https://www.sciencebasedmedicine.org/doctors-and-dying/
Locked on the Psych Ward
Since about 1972 when C adopted that as a convention.
AutoLayout basically directly exposes that algorithm and all of its complexity to the developer. That makes it the most powerful, but also the hardest to learn. Flexbox is a nice middle ground where you can express most things in a sane manner, but it's not the single layout engine to rule them all.
How to Make a Presentation in LaTeX
TypeScript seems to have been very religious about following "Bracha's law" (types shouldn't effect program semantics), and I'm unaware of any translations they do beyond supporting some new features on previous platforms (e.g. classes on pre-es6).

It is kind of annoying sometimes actually, in that typescript can't support niceties like operator overloading or extension methods because that would require de-sugaring.
This looks great! I really like the old school style.
Redux at Knewton
I love reading posts like this. Reading about the challenges you face is really inspiring and informative.

Looking forward to your next post. Good luck on getting to $100 MRR!
It's more like the opposite of being innovative (unimaginative?)... They bring a product that could previously achieve that locally to a remote server and the quality is not any better.... and they want to charge you by the character... no thanks Amazon... hopefully it's free with Prime.
Oh god I nearly bailed as well. Some things were a huge pain to get working.

That's why the code is so messy. A lot of old code left over from trial/error - and a lot of terrible loops to prevent dual FTP connections (which would error).
Are the Goclever products actually released? They look quite interesting to me.
There's this phrase, right? "Don't reinvent the wheel". I think it's central to the development experience. Don't re-do work your ancestors have already done, lest you waste your time.

I think there's a very valid exception -- well, there's many, but here's my favorite: "Don't reinvent the wheel unless you are trying to learn how the wheel works."

See I like that phrase. Gives you a lot more creative license to just redo what has been made if you are curious about it. What if at the end of that learning experience you have a nice, fairly polished wheel and you'd like to share it? Maybe for e-cred, maybe for criticism, maybe just searching for praise.

I'd say that the underlying motivation is irrelevant. We as a community should be less skeptical about this stuff, we really need to learn to just be happy for people, maybe even give out some praise.

So on that note. Nice job OP! I really like the font choice, and colors. UI wise this might be the best FTP client I've seen.
Which post # in the discussion did you have in mind? There's some misdirections in that thread with ideas that didn't survive the javap test (which I think rather makes my point). I may do Scala again in the future and would like to know how to avoid this (without factory methods as I mentioned).

If you mean Paul P/extempore's self described "if you can handle a little perversion" method then - "no thanks", that's pretty bad, I'd rather just do factories.
Can anyone explain what value does 'monadic' give to react?
This is very interesting, but not all that surprising to me. Graphs are closely related to binary relations (on a single set). We can build a binary relation R such that x R y iff there is a directed edge from vertex x to vertex y. It is well known that that the binary relations with the union as the addition, and relational composition (the arrow in the article) as multiplication form an idempotent semiring. If define another unary operation as the reflexive transitive closure of a binary relation (adding a directed edge from a vertex to each reachable vertex) we even form a Kleene algebra, which allows to reason about graphs in terms of regular expressions and regular sets.

Another interesting way to represent directed graphs is using matrices over boolean matrices (also forming an idempotent semiring). Matrices over min, + algebra (also a Kleene algebra) allow us to represent direct graphs with weighted edges and allow us to derive many interesting algorithms, such as the Floyd-Warshall (if we replace the min, + algebra by regular sets we get Kleene's algorithm instead).
VSCode, the "Find all references" and "Rename symbol" work out-of-the-box, even if your code isn't typed.

With good coding practice, references, "senders" and "implementers," and renaming worked well in Smalltalk. Where I missed types was during refactoring, and that also worked well about 99% of the time without types. It was that one last thing that we couldn't be 100% sure of that blocked the big refactoring we all wanted to do badly -- that's when I missed types!
You raise a lot of good points here for sure. My main beef with reddit has been the lack of uniformity in application of the rules. It's better for everyone if there are clear rules, and the enforcement isn't capricious.
TypeScript and Flow have the same behavior with regard to removing types, and TypeScript and Babel have the same behavior with regard to downleveling ES6+ code to ES5-

If you target ES6 with TypeScript and only write ES6-compliant code (plus types), you won't get any downleveling of features, so your code will always be the same as you wrote it (other than the removal of types).

If you use TS-specific features like 'enum' or 'namespace', there will necessarily be some rewriting of your code to turn it into usable JS, but those features are entirely optional.
Thanks! Hopefully you found it useful :)
Is there a plan to add support for the extensions (especially AspectRatio) in React web? I would greatly welcome them.
There are distinct notions of monad. Just a note.
> I can see someone going back to school to study something like mathematics/literature because they love the subject but not

I happen to like business! Kind of like if I decided to go into Medieval Literature. That fact an MBA is useful to my career is second to that I enjoy it.

With that said, if it does help me grow my next company larger without having to hire a CEO, or if it gets me a CTO job at a fortune 100, just a nice bonus.

Also, a lot of MBAs are a little smug when they talk to Software Engineers. Like "You need me." It would be nice to throw that back at them. Granted I know us Software Engineer throw it the other way just as often. Every technical founder things they don't need a business founder. And every business founder thinks they can outsource the job of technical founder.
My personal experience would suggest that this isn't a 60% allow workers telecommute whenever they want, but rather allow workers to telecommute sparingly when circumstances require.
Testing in Angular 2 – DiscoverSDK Blog
If you use autoprefixer you can reliably use flexbox, with a few minor exceptions which, IMO, aren't huge dealbreakers.
One of the main reasons I went with the Pebble over other options was that I could use sleep tracking with it via a 3rd party app, without any need for their cloud. Sleep as Android has your back there. It's the only sleep tracking tool I like because it's able to keep your data locally on your phone or sync'd via a few mechanisms.

As for the step tracking... yeah, not sure.
I'm not convinced that's any better than specifying the language version as a compiler command line argument.
I like the concept and the C# code is just hands down the best example out of all of them (yet another reason I miss coding in C#).

I'm curious though, will this be eventually ported to JavaScript? Yeah yeah I know "flexbox is already on the web!" but if you could write a layout in this fashion versus using style sheets then you could take it and directly apply it to any of your applications (even if you have to convert between languages the exact same setup is still there it's just a straight up conversion).

Overall cool idea and implementation. Curious to see where it goes from here.
With flow you can do one better: type comments! https://flowtype.org/blog/2015/02/20/Flow-Comments.html

You actually wrap the type annotations in comments and flow will recognize them. You can use the source with the type comments in your browser!

As an example, the flow checker will read the annotations from `function f(n/:number/, s/:string/) { ... }` but since they are commented in the source code your JS engine ignores them.

This is amazing for typing existing code, since at every step you are merely inserting comments into your code. And your existing minification step will strip them out :)
I'm impressed that they're spamming you via the search terms. It's like a new unblockable form of native advertising.
Something like a browser add-on is probably a better choice if the creator has a need to use web technologies.
You do tell TypeScript which runtime you're targeting, and that's how it decides how to compile it. You either set `target` in your tsconfig.json, or you provide `--target` on the command line.

Docs: https://www.typescriptlang.org/docs/handbook/compiler-option...
Why is routing so complex?