J
Jayway Blog
blog.jayway.com · Company blog · on HN since 2010
Jayway's consultants blog about software development, covering Git, Node.js, Clojure, JavaScript, and Python tooling.
What HN saysHN commenters link it for practical how-tos, such as combining Poetry with Pyenv and a small Clojure debug macro.
34HN people shared it
9linked it in comments
27stories submitted
668story points
6 years agolast shared
2010people per year2026
Most-shared posts
- 1600k concurrent websocket connections on AWS using Node.js (2015)2 people · 357 points · first shared 2018 · 137 comments on HN
- 2Git is a purely functional data structure (2013)2 people · 229 points · first shared 2017 · 97 comments on HN
- 3Finding with Git2 people · 4 points · first shared 2012 · discussion on HN
- 4Git is a purely functional data structure1 people · 12 points · first shared 2013 · 8 comments on HN
- 5Good practices for rich web applications1 people · 11 points · first shared 2010 · 1 comments on HN
- 6600k concurrent websocket connections on AWS using Node.js1 people · 9 points · first shared 2015 · discussion on HN
- 7Comparing Core.async and Rx by Example1 people · 5 points · first shared 2014 · discussion on HN
- 8Improving your functional CoffeeScript and JavaScript1 people · 4 points · first shared 2014 · discussion on HN
- 9Combining HTML Hypermedia APIs and Adaptive Web Design1 people · 4 points · first shared 2012 · discussion on HN
- 10Finding Out Who Changed What with Datomic1 people · 3 points · first shared 2012 · discussion on HN
- 11Switch JDK version on OS X1 people · 3 points · first shared 2015 · discussion on HN
- 12Using RxJava to Monitor Hystrix Streams1 people · 3 points · first shared 2015 · discussion on HN
- 13Deploying a Clojure web app on Heroku1 people · 3 points · first shared 2011 · discussion on HN
- 14OpenGL ES Tutorial for Android1 people · 3 points · first shared 2010 · discussion on HN
- 15Undefined behaviour in C++ when adding to map1 people · 3 points · first shared 2015 · discussion on HN
What HN people wrote when they linked it
fsnarskiy · 2018-06-13
OK threads aren't "BAD" or "GOOD", threads are a tool to be used correctly.
Threads are like a data super-highway and all the incorrect uses of them arise from using them for way to little data. Akin to building a 5 lane highway for 5 cars to pass.
A thread has some amazing things of being able to switch an execution very fast (built into things on the CPU level) and memory caching/storing advantages. Aka a thread is meant for a compute heavy task like rendering something, or running a decode in the background, mainly doing heavy math. Threads provide great things but at a cost. just like a highway they cost a lot ( a lot of memory in your ram) and require some maintenance and management (locking mechanisms)
The problems with threads arise when people think its ok to use them everywhere for all tasks parallel or async.
Example Apache used to start a thread for each connection to server which at that time took 40 MB + .5 sec and this allowed a myriad of attacks on, one of them being slow loris.
In java-script if you start a new web worker thread, that's actually a new V8 instance and costs you again a lot in memory and startup time.
This "start a thread for everything" was definitely the prevelant thinking in the first decade of 2000, and people were not really thinking about hidden costs.
Come along Ryan Dahl with node.js in 2009 and "OMG everyone forgot there are such things as event loops"
An event loop is basically a much cheaper single threaded async way of…
raphar · 2021-04-08
I learned with this article. And it teaches how to combine Poetry with Pyenv effectively.
https://blog.jayway.com/2019/12/28/pyenv-poetry-saviours-in-the-python…
aitchnyu · 2021-03-30
Clojure allows this very brief copypasta `(defmacro dbg [x] `(let [x# ~x] (println "dbg:" '~x "=" x#) x#))` https://blog.jayway.com/2011/03/13/dbg-a-cool-little-clojure-macro/
Wish Python has this by default though.
mooreds · 2017-04-04
Well, you could definitely front two versions of your application lambda function with a traffic splitter lambda function that would send 99% of traffic to the production alias and 1% to the canary (or whatever the number you wanted was. See how to call one lambda from another: http://stackoverflow.com/questions/31714788/can-an-aws-lambda-function… and aliases: http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
This post might also be of interest: https://blog.jayway.com/2016/09/07/continuous-deployment-aws-lambda-be…
Note, I have never done this, this is just how is approach it.
kyllo · 2015-05-31
The nice thing about JavaScript is that you have first-class functions that are closures, so you don't have to do OOP at all if you don't want to. And your objects don't have to define methods because you can just define functions outside of methods.
And although JavaScript's prototypes don't solve the fragile base class problem, they do offer a handy solution to the expression problem: http://www.jayway.com/2013/06/21/15201/
DaveSapien · 2013-12-30
Jayway is really good. http://www.jayway.com/2013/05/09/opengl-es-2-0-tutorial-for-android-pa… But apart from that, the usual suspects, www.stackoverflow.com and www.gamasutra.com are ace.
Someone · 2012-11-02
Async looks nice, but this (http://www.jayway.com/2012/10/07/asyncawait-in-c-a-disaster-waiting-to… makes me wonder whether it is the right solution for this problem. Breaking what most programmers think are the 'laws' of refactoring is not a good thing.
messyp · 2012-07-16
oh yeah, I forgot about these guys:
http://www.jayway.com/jobs/
They're hiring iOS devs and seem like a good company. Offices right next to the central train station too.
ecito · 2011-07-16
scripting xcode UI to build a project? ouch, you're doing it wrong. Check out xcodebuild.
http://blog.jayway.com/2010/01/31/continuos-integration-for-xcode-proj…