Better HN
topnewbestaskshowjobs
Log inSign up

brassybadger

232 karma · joined Sep 22, 2013 (13y ago) · 35 submissions

Submissions

1.

Running Kubernetes without nodes(jpetazzo.github.io ↗)

4 points · by brassybadger · 7y ago · 1 comment

2.

The Sorry State of SSL (2014)(hynek.me ↗)

2 points · by brassybadger · 10y ago · discuss

3.

Two Performance Walls Approaching (2009)(sebastiansylvan.com ↗)

31 points · by brassybadger · 11y ago · 8 comments

4.

NixOps, the NixOS-based cloud deployment tool(github.com ↗)

1 points · by brassybadger · 11y ago · discuss

5.

John Carmack discusses the art and science of software engineering (2012)(blogs.uw.edu ↗)

17 points · by brassybadger · 11y ago · discuss

6.

Effectful Haskell: IO, Monads, Functors(slpopejoy.github.io ↗)

84 points · by brassybadger · 11y ago · 62 comments

7.

PLEAC-Haskell(pleac.sourceforge.net ↗)

47 points · by brassybadger · 11y ago · 8 comments

8.

Fixing HealthCare.gov, One Test at a Time(youtube.com ↗)

2 points · by brassybadger · 11y ago · discuss

9.

Africa Calling(medium.com ↗)

2 points · by brassybadger · 12y ago · discuss

10.

Netperf-wrapper(github.com ↗)

1 points · by brassybadger · 12y ago · discuss

11.

A tool for “re-ptying” programs(github.com ↗)

1 points · by brassybadger · 12y ago · discuss

comment 12y ago · link · parent

Indeed, I'd say it's more popular in Berlin than Coke.

comment 12y ago · link · parent

A very good recap on how networking in Quake3 works without reliable packet delivery:

http://trac.bookofhook.com/bookofhook/trac.cgi/wiki/Quake3Ne...

Simple, yet robust.

comment 12y ago · link · parent

This is the old debate whether applications should be tightly or loosely coupled. As the article concludes, there are tradeoffs to consider - the broker is a SPOF indeed, but on the other hand it'll take care of all the queueing logic (which is not that simple as it seems - acknowledgements, backpressure, redelivery, timeouts etc etc). It's also much easier to scale the system out if applications are loosely coupled.

Furthermore, a good broker supports some kind of failover. We run a RabbitMQ cluster behind a load balancer, and it works great - once e.g. we had a hardware failure, and the applications did not notice anything from it. Of course we also have to monitor the queues on the broker (one of the few ways to bring down Rabbit is to fill up its disk). But having a central broker for connecting apps also means you have a central point you can keep an eye on to check where your bottlenecks are (which queues build up).

Loosely coupled applications are also much more unix-like in the sense that you can make them do one thing instead of baking in your custom restart logic (over a network? please don't).

comment 12y ago · link · parent

Integration is very easy (check out the examples in their git repo), but this is still alpha quality software - there are known limitations, e.g. the one I ran into is that a large JS expression involving function calls might make Duktape run out of bytecode registers.

comment 12y ago · link · parent

After a quick glance it also seems that newer versions of SpiderMonkey only offer a C++ API, so you can't embed it anymore into C apps without some glue code. I checked out jsapi.h in SpiderMonkey24 - maybe some trick is needed to use SM from C?

comment 12y ago · link · parent

I'd say the combination of being small, easily embeddable and having a liberal license make it attractive.

18.

Duktape: an embeddable JavaScript engine(duktape.org ↗)

109 points · by brassybadger · 12y ago · 43 comments

19.

C Programming Language(di-mgt.com.au ↗)

1 points · by brassybadger · 12y ago · discuss

20.

TCP/IP State Transition Diagram [pdf](cs.northwestern.edu ↗)

4 points · by brassybadger · 12y ago · discuss

21.

Let the Agile Fad Flow By (2009)(pindancing.blogspot.de ↗)

1 points · by brassybadger · 12y ago · discuss

22.

Linking to Older Versioned Symbols (glibc)(trevorpounds.com ↗)

1 points · by brassybadger · 12y ago · discuss

comment 12y ago · link · parent

The funny thing is that most people choose Elixir over Erlang because of the syntax - personally I can't stand Ruby but love the Erlang syntax. When I see Erlang code, everything just clicks - almost like I'm reading prose.

So, if you want to harvest the power of Erlang, I'd suggest you start with the real thing first. The only drawback is that once you get used to functional programming, guards, pattern matching, OTP, cheap processes, links and all the other goodness, there's no way back.

If you still feel Erlang is weird after spending a couple of days working with it, feel free to jump on the Elixir bandwagon. :)

comment 12y ago · link · parent

If you're only looking into weight loss/gain, then yes. Both are terrible choices as a diet, though. The latter will provide more nutrients, so we can call it 'healthier', but you will lack important ones still, and significantly undereat if you are an adult male of average weight and height.

comment 12y ago · link · parent

The whole "clean eating" thing is mostly a fad. Nobody has managed to define what food is "clean" and what is not (see e.g. what the typical bodybuilder thinks is clean, and what someone doing paleo, what the average dietitian recommends, etc). The only important things are 1) the number of calories you eat, and 2) what nutrients your diet provides.

When I'm cutting, I don't make a fuss about "junk food", as long as I'm below my calorie intake limit and I'm not missing any important nutrient. Usually hovering around 20% junk food.

comment 12y ago · link · parent

Interesting to see how mainstream intermittent fasting has become. It's worth noting where it started.

A few years ago a few hardcore fitness fanatics started playing with the idea of using controlled fasting for weight loss and/or body recomposition. Two people that should be mentioned are Lyle McDonald[1] and Martin Berkhan[2]. Martin especially made IF popular via his blog, laying out the principles he used as a fitness consultant with his clients.

Most research (and especially the commercial IF knockoffs) only take some part of these principles, but the "diet" part is only part of the picture when it comes to body recomposition. It's almost worthless without the rest (high intensity, low volume weight training, basic compound movements, progressive overload, no focus on cardio).

Quite a few people/company are trying to rip off customers via their IF programs knockoffs and supplements. If you want give IF a shot, read through Martin's blog, and try the original Leangains protocol.

[1] http://www.bodyrecomposition.com/ [2] http://www.leangains.com/

comment 12y ago · link · parent

The really nice thing about this is that the dispatching to the optimized version is done at runtime, via GCC adding the necessary stubs at compile time. No extra dispatching/CPU detection logic in the application is needed to take advantage of advanced CPU features. Very cool.

28.

Applied Crypto Hardening [pdf](bettercrypto.org ↗)

1 points · by brassybadger · 12y ago · discuss

comment 13y ago · link · parent

I have no experience with Akka, but what you write makes sense. Even Clojure concurrency primitives feel weird sometimes when one wants to mix them with low-level Java libraries.

Another option is to do it at the language level - see my comment on Erlang.

12