Better HN
topnewbestaskshowjobs
Log inSign up

ryanatkn

67 karma · joined Sep 14, 2012 (14y ago) · 30 submissions

Submissions

1.

Show HN: tsv has fast formatters and parsers for Svelte, TypeScript/JS, CSS(github.com ↗)

2 points · by ryanatkn · 1mo ago · discuss

comment 11y ago · link · parent

"The study’s methodology is somewhat questionable, since it counts as French-speakers all the inhabitants of countries where French is an official language, which probably won’t be the case. And almost certainly, as a second language, English will remain the lingua franca"

Sounds like the study measures colonial vestiges and not real world usage.

comment 11y ago · link · parent

Doesn't almost every service leak users at sign up? There are ways around it but I don't think they've very common.

comment 11y ago · link · parent

Same. Flux is really simple and most of the implementations just remove some boilerplate and add some conventions. Given more time there might be a framework that has everything that I want, informed by comprehensive, mature, real-world use cases, but I haven't yet seen anything compelling enough in the dozen or so libraries I've looked at. I've found a lot of value in having granular control so I can explore different conventions and optimizations.

comment 11y ago · link · parent

From https://github.com/iojs/io.js

> Is it io.js or IO.js or iojs or IOjs or iOjS?

> The official name is io.js, which should never be capitalized, especially not at the start of a sentence, unless it is being displayed in a location that is customarily all-caps (such as the title of man pages.)

comment 12y ago · link · parent

> Haskell has what it calls types

I think you mean typeclasses?

One of the things that always bothered me about interfaces was the inability to define a default implementation, especially when developing UIs. A proper mixin system (like what's used by React's components) has solved this particular problem for me.

comment 12y ago · link · parent

LiveScript fixes scoping and adds a ton of other nice features including let and const variable declaration keywords.

comment 12y ago · link · parent

The only gripe I share is scoping, and that's fixed in LiveScript. I've started writing LiveScript in a fairly explicit style - for example I use parentheses where they improve readability and I always use curly braces for object literals. Qualitatively I think it's increased the readability of my code way beyond JavaScript. It's nice to have curly braces carry specific meaning instead of being littered all over the place.

comment 12y ago · link · parent

It's far from precise but I'd maintain it's useful to illustrate that if Oculus is a success, Facebook made a great buy.

comment 12y ago · link · parent

I qualified it as 0.666x projected sales (intentionally not rounded >:), so yeah that 10M was a projected figure, which unfortunately I can't find the source for. By the end of 2015 I think Oculus will look like a steal, unless the goodwill is shot.

comment 12y ago · link · parent

No, revenue. For example Google's P/E (the equivalent profit ratio) is currently 31.4, and that's not including the control premium.

comment 12y ago · link · parent

A premium? Figures I saw were 10M units at $300. That's 0.666x projected sales, when 2-3x is the norm for mature companies.

comment 12y ago · link · parent

Another interesting one is RequireBin[1]. It lets you require npm modules from the browser via browserify and browserify-cdn.

[1] http://requirebin.com/

comment 12y ago · link · parent

I'm curious how the OP found his startup partner(s) and what the irreconcilable differences were.

comment 12y ago · link · parent

JS devs rely heavily on libraries to do things that most programmers would expect the language to handle. $ and _ have been adopted as toolkit identifiers and are littered throughout most JS codebases. Highland does much of what one would expect from _ via Underscore/Lodash. I'd bet most people think they improve readability.

comment 12y ago · link · parent

Not sure why this article doesn't include a seemingly important detail, but it was widely reported that Justin ended his comments with "LOL" and "JK". Mens rea indeed.

comment 12y ago · link · parent

cljs <-> js http://himera.herokuapp.com/synonym.html

comment 12y ago · link · parent

Seems the main criticism is sample size - what was it?

> showed “no evidence of fraud or intentional misrepresentation of the data”, said a statement from Elsevier, which publishes the journal. But the small number and type of animals used in the study means that “no definitive conclusions can be reached”.

The type of animal is the same as used in the compared Monsanto study, so that seems shaky.

comment 13y ago · link · parent

"Ten Years After Decriminalization, Drug Abuse Down by Half in Portugal"

http://www.forbes.com/sites/erikkain/2011/07/05/ten-years-af...

comment 13y ago · link · parent

Have you seen Wisp? [1] It's a minimalist approach with Clojure syntax. For me it may be the next step after CoffeeScript, which I believe has subtly brainwashed me into loving the lambda.

[1] https://github.com/Gozala/wisp

comment 13y ago · link · parent

This interview with Ovshinsky has some interesting stuff. [1] He talks about his motivations being socially driven, his vision of how humanity can use science and technology to make our world better, how a car company reduced his 201 mile range electric car (which happened to be his very first prototype) to a 125 mile one at retail, and how it might be a bad idea to go into business with an oil company if their long term strategy is counter to yours. Neat guy.

[1] http://www.youtube.com/watch?v=Yh4KuCVlF14

22.

DIE.js detects IE versions and helps unsupported users find a better browser(github.com ↗)

2 points · by ryanatkn · 13y ago · 1 comment

comment 13y ago · link · parent

This is ignorant speculation, but what if the interaction doesn't depend on distance, and instead always takes the same fixed amount of time? What if that delta t is equal to 1 plank time, one tick in the cosmic 3D simulation? Of course that's an advanced experiment to run, but the implications would be fun.

comment 13y ago · link · parent

Thanks for the feedback!

Yes, that's correct, but everything is relative. The recommended daily intake is the recommended nutrient amount divided by 2000 calories, and this value is then compared against every other food. The bars for each nutrient are calculated according to the formula ((nutrient/calorie)/maxValue), where maxValue is the highest (nutrient/calorie) in the comparison set, and the result is a percentage of the maxValue, and is the percentage the bar is filled. So it's all relative - the highest value will always be a full bar. If something has half as much per calorie, the bar will be half-full. On the nutrients page, there is no daily value that's being compared against - it's just foods against each other.

Measuring something per-serving isn't something that you can glean from the data as presented. For amaranth, if you compare it to the recommended daily intake, you'll see a full bar for amaranth and just a sliver for the recommended daily intake, meaning 2000 calories of amaranth would have way more calcium than you need. More usefully, the app can show you how amaranth compares against other foods to help you make choices. I'll think about how per-serving data could be included - thanks!

25.

Show HN: Nutrients Per Calorie, a web interface to the USDA foods database(ryanatkn.github.com ↗)

3 points · by ryanatkn · 13y ago · 3 comments

26.

I'm kickstarting Mydentity, a non-profit peer-to-peer messenger based on WebRTC(kickstarter.com ↗)

1 points · by ryanatkn · 13y ago · 1 comment

comment 13y ago · link · parent

If anyone is interested I just published a Kickstarter project for Mydentity, which combines WebRTC and Mozilla Persona into a non-profit private messenger.

http://www.kickstarter.com/projects/ryanatkn/mydentity-is-a-...

28.

Ascending to Callback Nirvana with React.js(youtube.com ↗)

2 points · by ryanatkn · 13y ago · discuss