Better HN
topnewbestaskshowjobs
Log inSign up

Agrosis

100 karma · joined Apr 9, 2013 (13y ago) · 33 submissions

Submissions

1.

Intro to BGP with Bird(packetfire.org ↗)

4 points · by Agrosis · 6y ago · discuss

comment 8y ago · link · parent

Comparing Java threads and goroutines doesn't really work because Java's thread model maps threads 1:1 to OS threads, whereas goroutines are simply continuations that can consume any OS thread. Java threads couple both the concerns of scheduling and task definition. Java Runnables address only the concern of task definition and are closer in nature to what goroutines are, but they still don't possess the ability to suspend and yield their execution.

You can implement Go's thread model (more generally known as green threads, coroutines, fibers, lightweight threads) on the JVM. This is precisely what Project Loom intends to do and what Scala effect systems already do. You construct a program in a type called IO that only describes a computation that can be suspended and resumed, unlike Java Runnables. These IO values are cooperatively scheduled to run on a fixed thread pool. Because these IO values just represent continuations, you can have millions of them cooperatively executing at the same time. And there is no context switch penalty for switching the continuation you are executing for another.

comment 9y ago · link · parent

There are definitely a lot of moving parts in Kubernetes just to get it running and it was a big hurdle to get everything set up (I'm running a vanilla cluster in Vagrant).

The documentation definitely covers a lot, but I found myself hunting issues down for trying to get something to work like getting k8s to schedule pods across a flannel overlay network and making sure traffic is being routed properly. Of course, you don't have to worry about any of this if you use GKE or another cloud provider.

Once I got that set up, everything worked beautifully. I can just write a config and apply it to the cluster and services are deployed and scaled and whatnot. Treating your cluster as a pool of resources is pretty powerful. There are a lot of Kubernetes API objects (Deployments, Stateful Sets, Daemon Sets, ConfigMaps, Secrets), but everything has a purpose and Kubernetes makes everything come together nicely.

The Kubernetes Slack channel was really helpful for me as well, there's a lot of nice and friendly people there willing to answer your questions and help you debug your setup.

comment 10y ago · link · parent

Happy new year!

5.

Developing Electron apps with React(medium.com ↗)

1 points · by Agrosis · 11y ago · discuss

comment 11y ago · link · parent

Whoa, that's super simple as opposed to a lot of the other pasting sites! I'm using this now!

7.

Caesar: an easy-to-use advanced cryptography library(github.com ↗)

3 points · by Agrosis · 12y ago · discuss

comment 12y ago · link · parent

Yeah, I think yesterday's fact would be a good idea. I don't want this to be a fact-streaming site though, just get it and get out. :)

comment 12y ago · link · parent

Yeah, that's a good idea. I'll get on it! :D

comment 12y ago · link · parent

Oh yeah I'll surely look into this! Thanks!

11.

Show HN: DailyFact – Learn one new thing everyday(thedailyfact.org ↗)

8 points · by Agrosis · 12y ago · 15 comments

12.

A cube that can balance on a corner(youtube.com ↗)

3 points · by Agrosis · 12y ago · discuss

13.

CrowdTilt renamed to Tilt(blog.tilt.com ↗)

2 points · by Agrosis · 12y ago · discuss

14.

How to block cops from visiting your site(github.com ↗)

3 points · by Agrosis · 12y ago · 2 comments

15.

New Imgur(imgur.com ↗)

3 points · by Agrosis · 12y ago · discuss

16.

A Week of Stripes(cosminn.net ↗)

2 points · by Agrosis · 12y ago · discuss

17.

A Criticism of JavaScript Cryptography(bren2010.github.io ↗)

78 points · by Agrosis · 12y ago · 81 comments

18.

One-Time Attribute-Based Signatures(bren2010.github.io ↗)

7 points · by Agrosis · 12y ago · discuss

19.

A Generalization of Secure Distributed Hash Tables(bren2010.github.io ↗)

8 points · by Agrosis · 12y ago · discuss

20.

Flappy Bird: Type to jump(mrspeaker.net ↗)

1 points · by Agrosis · 12y ago · discuss

21.

Show HN: A simple URL shortener in Scala(github.com ↗)

3 points · by Agrosis · 12y ago · discuss

22.

Paint.JAVA - Easy cross platform graphics(github.com ↗)

2 points · by Agrosis · 12y ago · discuss

23.

How to make money with HTML5(truevalhalla.com ↗)

3 points · by Agrosis · 12y ago · discuss

24.

Oculus Rift - Web Bridge(github.com ↗)

1 points · by Agrosis · 12y ago · discuss

12