News for hackers. Stuff that matters.

ryanatkn

Show HN: tsv has fast formatters and parsers for Svelte, TypeScript/JS, CSS

https://github.com/fuzdev/tsv

tsv is a set of performance-focused language tools for the Web. Today it ships formatters and parsers for TypeScript/JS, CSS, and Svelte, including a vscode/openvsx extension. JSON and HTML are planned, maybe linting after. The readme has a loose roadmap - https://github.com/fuzdev/tsvtsv's benchmarks show how the Web's newer native tools have some performance left on the table. Formatting...

( Read More... | no comments | 2 points | on HN )
"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.

Re:Authentication Cheat Sheet on Monday February 02, 2015 @11:48AM (#8985109)
Doesn't almost every service leak users at sign up? There are ways around it but I don't think they've very common.
Re:Tuxedo.js – A Framework Built on React and Flux on Thursday January 22, 2015 @02:59PM (#8931365)
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.
Re:Io.js 1.0.0 on Wednesday January 14, 2015 @12:45PM (#8887775)
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.)

Re:Class Hierarchies? Don't Do That on Sunday March 30, 2014 @02:55PM (#7497335)
> 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.

Re:Why CoffeeScript Isn't the Answer on Sunday March 30, 2014 @02:29PM (#7497230)
LiveScript fixes scoping and adds a ton of other nice features including let and const variable declaration keywords.
Re:Why CoffeeScript Isn't the Answer on Sunday March 30, 2014 @02:25PM (#7497211)
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.
Re:Facebook shares fall 7% on Oculus deal on Wednesday March 26, 2014 @11:00PM (#7478308)
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.
Re:Facebook shares fall 7% on Oculus deal on Wednesday March 26, 2014 @08:31PM (#7477741)
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.
Re:Facebook shares fall 7% on Oculus deal on Wednesday March 26, 2014 @08:28PM (#7477718)
No, revenue. For example Google's P/E (the equivalent profit ratio) is currently 31.4, and that's not including the control premium.
Re:Facebook shares fall 7% on Oculus deal on Wednesday March 26, 2014 @07:32PM (#7477466)
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.
Re:The Best Tools for UI Hacking (not jsFiddle) on Tuesday March 04, 2014 @10:13PM (#7345028)
Another interesting one is RequireBin[1]. It lets you require npm modules from the browser via browserify and browserify-cdn.

[1] http://requirebin.com/

Re:Why I Dropped Out Of YC on Friday February 14, 2014 @09:24PM (#7242375)
I'm curious how the OP found his startup partner(s) and what the irreconcilable differences were.
Re:How I want to write Node: Stream all the things on Friday February 14, 2014 @01:28PM (#7240078)
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.
Re:The Facebook Comment That Ruined a Life on Thursday February 13, 2014 @03:42AM (#7230180)
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.
Re:A Clojure Crash Course on Saturday January 11, 2014 @01:01PM (#7043175)
Re:Study linking GM maize to rat tumours is retracted on Friday November 29, 2013 @10:30AM (#6819718)
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.

Re:Kofi Annan: Stop 'war on drugs' on Wednesday November 06, 2013 @12:37PM (#6683944)
"Ten Years After Decriminalization, Drug Abuse Down by Half in Portugal"

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

Re:For modern development Javascript indeed is a shit language on Tuesday October 29, 2013 @12:01PM (#6635115)
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

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

Re:Bounding the speed of ‘spooky action at a distance’ on Sunday April 07, 2013 @12:37PM (#5507717)
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.
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!

Re:Hello Chrome, it’s Firefox calling on Monday February 04, 2013 @08:01PM (#5168369)
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-...