Better HN
topnewbestaskshowjobs
Log inSign up

coder543

6,677 karma · joined Jul 18, 2012 (14y ago) · 1,965 submissions

My email is at gmail using my username.

Backend-focused full-stack engineer with 8+ years of experience, mostly focused on Go, Rust, and TypeScript, but open to other options.

Resume: https://drive.google.com/file/d/1VNC272B3n7ZEfppMHkm2wGgaINwYl4Av/view

Submissions

comment 8y ago · link · parent

It literally only compares itself to slow, interpreted languages and other, even slower Swift frameworks, with the singular exception of Go, where they're using Gin, which is a rather slow Go framework. Gin is at literally 10% of the performance of the fastest Go framework, as shown here: https://www.techempower.com/benchmarks/#section=data-r16&hw=...

So, when you cherry pick benchmarks, it can _look_ kind of fast... but then the unbiased TechEmpower benchmarks show Vapor operating at 20% of the speed of Gin. Which is 2% of the speed of the fastest Go or Rust web framework.

"50x faster to pick a different language" != "even remotely great performance."

comment 8y ago · link · parent

Swift is not seriously useful for server-side applications at this point. None of the web frameworks have even remotely great performance, and Swift is compatible with almost nothing on Linux, since Apple has put minimal effort into anything but macOS and iOS... so anything you do would be much more painful than using Go, Rust, or even C# (.net core) on Linux.

So, maybe you're just talking about desktop macOS in addition to phone apps?

comment 8y ago · link · parent

If that's the case, that's encouraging to hear.

comment 8y ago · link · parent

it is worth noting that swift 3 support is being removed from swift 5.

comment 8y ago · link · parent

The Swift 5 release process document specifically implies that some Swift 4 code will not compile on Swift 5. This discussion is about source compatibility, not binary compatibility, which neither Rust nor Go offer AFAIK.

The number 5 _also_ implies significant breaking changes. Otherwise, why wouldn't it be Swift 4.3?

Removing Swift 3 compatibility mode (which was part of Swift 4) is itself a major source-compatibility breaking change, even if nothing else.

comment 8y ago · link · parent

> $100/yr to file taxes

Do you actually feel confident that you're filing business taxes correctly by yourself? If so, how did you get to that point? The IRS and the tax code are not things to be trifled with, and I wouldn't want to take any shortcuts there.

comment 8y ago · link · parent

It would have been nice for it to say "JavaScript" in the title of the blog post, anywhere in the blog post, or in the title of the video. That's what I suspected, but I had to scrub through the video just to confirm, which is probably more effort than most people would be willing to put in.

comment 8y ago · link · parent

Nice attempt at memeing a response, but that comment doesn't work. Most SPAs that I've seen allow bookmarking, back and forward, right clicking to open a new tab... and they certainly don't introduce major security holes to attack your local machine (they're just websites, not a poorly coded third-party plugin like Flash), and they do not typically have superfluous sound or long loading times. In fact, browsers are blocking superfluous sound more and more, which wouldn't be possible to affect with flash since the browsers didn't control flash.

So... nice one there, green user. You really got'em!

comment 8y ago · link · parent

This is true for client-side rendering of templates, but not necessarily true for server-side template rendering.

comment 8y ago · link · parent

I would enjoy seeing that comparison too, but I have been too busy lately to put time into more comparisons.

If someone can show that the Rust implementation of handlebars is slower than the JavaScript one, that would be really fun and interesting to see on its own! I would imagine the Rust one is reasonably efficient, but HashMaps are tremendously slower than the fixed enums my code is generating at Rust compile time, and the Rust Handlebars implementation uses HashMaps extensively for substitutions.

comment 8y ago · link · parent

It varies from computer to computer. I could definitely see an older/weaker computer struggling with rendering the output from 10k rows, even with the truncation I implemented, but I wanted it to render enough rows that it could actually measure how long it took with some accuracy by default.

The Spectre attack mitigations mean that browsers only provide 2ms to 3ms resolution on their JavaScript/WASM timers now, which makes the measurement accuracy very rough in WASM unless the operation being measured takes a few tens of milliseconds.

comment 8y ago · link · parent

It is useful, but I tried to be upfront about the limitations of the current implementation.

There's no inherent reason those two features can't be supported, and I want to add support for them when I have some time.

1963.

Zapper: A Very Fast Templating Engine(ceres1.space ↗)

72 points · by coder543 · 8y ago · 20 comments

comment 14y ago · link · parent

The Sampler doesn't work on Chrome for Android. All clicks are detected roughly half the physical height of the screen above where the touch landed. Tested on a Galaxy Nexus.
1
6263646566