HNHacker News
TopNewBestAskShowJobs

mscdex

151 karma · joined June 5, 2012

submissionscomments
mscdex··on K/V Benchmark: PostgreSQL vs. Redis vs. Memcached
That doesn't answer the why though. It just makes it seem suspicious. How hard could it have been to use the latest versions of the non-Postgres software? Even as a "this is kind of interesting" experiment it seems like you'd have to go out of your way to install such old versions.
mscdex··on K/V Benchmark: PostgreSQL vs. Redis vs. Memcached
I wonder why such an old version of Redis was used in these benchmarks? Redis 3.0.7 was released back in January 2016. The current stable version as of this writing is 6.2.5.

EDIT: Additionally the version of memcached used in the benchmarks was from July of 2012 -- even older!

mscdex··on Ten modern layouts in one line of CSS
For those working with HTML/CSS in email clients here are a couple of sites that can help determine compatibility:

https://caniuse.email/ https://www.campaignmonitor.com/css/

mscdex··on Ask HN: Thoughts on new GitHub layout?
Quick hack for Ublock Origin users to get everything lined up again (add this to your filters): github.com#$#body{ max-width: 1280px !important; margin-right: auto !important; margin-left: auto !important; }
mscdex··on Reconstructing Twitter's Firehose
If you remove the trailing forward slash the link works fine.
mscdex··on Substituting JavaScript with HTML
Alternative HTTP methods (only GET and POST are supported in HTML forms).

Also, there is the setting of HTTP headers which requires JavaScript.

mscdex··on Unicore: A new Unikernel project
I'm not so sure about that. I think most people would probably support a name like "Powwy McPowerface."
mscdex··on Concurrency in Swift: One possible approach
>Since everything that is not async will need to invoke CPU-bound computations in Node (e.g. for loops, string manipulation, JSON parsing, and generally everything that's not just delegating work elsewhere with a callback), this I/O efficiency doesn't buy much except for very lightweight uses.

These are different levels of CPU-bound-ness. Comparing for-loops (which barely cost anything) to encoding video or computing PI for example is not comparing apples to apples. The body of a for-loop will typically greatly dwarf any "overhead" incurred by the for-loop construct itself. Obviously any non-I/O tasks like these are going to be CPU-bound. What I meant was Node is good at waiting for databases, web servers, file systems, etc. to respond to requests without blocking other work.

>Most services in the real world soon get closer to Mandlebrot As A Service than "pure I/O".

I disagree with this. I think most web apps spend most of their time waiting on the network, file systems, etc. to respond.

>What about the reduced cognitive overhead of not having to deal with JS on the server though?

I don't understand this question. JS is not a hard language to learn/pick up and there is a large number of developers out there who already know the language from working in the browser. However, my main point there was about using a single language. Yes, technically you can use Ruby, PHP, etc. in a browser (via JS), but nobody does that because it'd be very slow compared to just using JS from the get-go.

>Plus, aren't usually the backend and frontend teams different ?

It depends. I would say for most small businesses (and including the many "one man team" developers who do remote contract work for example) this is not the case. I cannot speak for large corporations, but there is definitely a larger possibility of having separate teams there. However just because you have separate backend and frontend teams doesn't mean having separate languages on each is any more beneficial (e.g. code sharing in some cases can be a win when using the same language). There's also the benefit of being able to "reuse" a JS developer on either end, depending on the work that's needed.

mscdex··on Essential Phone, available now
Amlogic is being supported in the mainline kernel, see the work going on for the Odroid C2 for example, which uses an Amlogic S905. See this[1] site for more information and the incoming patches page[2] for a more up-to-date view on what's being worked on.

[1]: http://linux-meson.com/doku.php [2]: https://patchwork.kernel.org/project/linux-amlogic/list/

mscdex··on Concurrency in Swift: One possible approach
The problem with those benchmarks are two-fold:

1. Specifically for the first set of benchmarks linked to, they are really irrelevant because they don't represent typical workloads unless you're writing a MAAS (Mandlebrot As A Service). Node was designed for I/O efficiency, not fastest CPU-bound computations. That's exercising the JS engine (e.g. V8) more than anything node-specific. With node becoming more VM-neutral, it's entirely possible for other engines (e.g Chakracore or SpiderMonkey) to be better at other types of computation.

2. Especially in the second set of linked benchmarks, it seems the author of the article was hardly a node.js developer because they not only used an older node branch at the time they wrote the article, but they left out a lot of common optimizations (some of which were pointed out in the comments section). Even Express (which the author used) is known to not be very well optimized.

With that in mind, benchmarks are not the only thing you should be looking at IMHO. For example (for me personally), using a single language for frontend and backend is a big deal because there is less cognitive overhead when switching between the two (previously I often found myself writing JS syntax in PHP scripts and vice versa and trying to remember the APIs for different languages/platforms is difficult). There are many other benefits as well, just watch some of Mikeal Rogers' talks to get a better idea.

mscdex··on ZeroPhone: a phone for tinkerers and hackers using a Raspberry Pi
The 2G GSM modem seems like a non-starter for those in the U.S. since AT&T (and apparently T-Mobile too, at least locally) has disabled such technology on their towers. I'm a bit surprised a 3G modem wasn't made standard, with an option to upgrade to LTE (even if it were to cost a tad more).
mscdex··on Node v8.0.0 Released
FWIW v8.0.0 is not an LTS release. Technically the first v8.x LTS release will happen in October. See this repo for more details: https://github.com/nodejs/lts
mscdex··on V8, Advanced JavaScript, and the Next Performance Frontier [video]
Have you seen this?: https://github.com/nodejs/node-inspect
mscdex··on Node v6.9.0 (LTS)
Bluebird isn't written in C. It doesn't even depend on a compiled node addon.
mscdex··on Monitoring and Tuning the Linux Networking Stack: Receiving Data
I think I see the same thing on Chrome/Linux. If I comment out the `font-family: monaco` rule in the `article.type-system-sans code` CSS rule, then a monospace font is used and makes things much more readable.
mscdex··on $ cat ~/myfile | curl -X PUT --upload-file “-” https://transfer.sh/myfile.txt
This reminds me of a node.js-based utility I wrote awhile back called filebounce[1], except filebounce streams a file over HTTP/HTTPS and does not store the file on an intermediary server. It also supports tailored curl and GUI browser-based interfaces. I use it as a simple way of copying a file without needing ssh, ftp, samba, etc.

[1] https://github.com/mscdex/filebounce

mscdex··on Node v4.0.0
Probably your best bet at this point is to use the NodeSource repos to keep up to date with the latest (stable) versions: https://github.com/nodesource/distributions
mscdex··on Io.js v3.0.0
The next+1 branch has a fairly recent version of v8 4.5 that has fat arrows and other new language features shipped. My guess is that next+1 will become 4.0.0.
mscdex··on Pipable functions in C++14
For JavaScript there is this: https://github.com/hij1nx/pipe
mscdex··on Clue 0.6 - C to Lua, Javascript, Java and Perl compiler
RE: node version: Ok, but v0.10 was released just the other day. :-)
mscdex··on Clue 0.6 - C to Lua, Javascript, Java and Perl compiler
I'm curious as to why they are still benchmarking against node 0.2.6, which is quite old.
mscdex··on Aspects of Building a Node.js Application
I generally use a node script (sometimes a CLI script like [1]) with the ssh2 module [2] for most deployment tasks.

[1] https://gist.github.com/4281277 [2] https://github.com/mscdex/ssh2

mscdex··on Jetpack 2 - by the creator of the original Jetpack
What about this: http://www.mobygames.com/game/jetpac-refuelled
mscdex··on Google Acquires Quickoffice
There goes our webOS port ...
← PreviousPage 2 of 2