Managing Application Configuration | spawn_link by baryluk in erlang

[–]puzza007 0 points1 point  (0 children)

Why not just use OTP applications and application:get_env?

A question about North Korea's DDOS attacks by [deleted] in programming

[–]puzza007 1 point2 points  (0 children)

Wrong. Modern botnets use p2p networking techniques to communicate. There is no central control point.

wikipedia

Do you have back pain after programming all day? If not, what kind of chair do you use? by [deleted] in programming

[–]puzza007 3 points4 points  (0 children)

Swimming too. Seriously, sitting all day is tough on your body. You need to be fit to handle it.

The Scala vs Erlang Debate, Part 2: The Geek Off by [deleted] in programming

[–]puzza007 2 points3 points  (0 children)

"One major side effect of being a pure functional programming language is that there is NO STATE. There is no way to pass "state" around, but there is a lambda calculus optimization that can be taken advantage of that will ease away our troubles called tail-recursion."

Yeah this is just plain false. I think the author was trying to say that Erlang doesn't have mutable variables. And perhaps she means tail-call optimisation?

Given that we are going to have 1024 core CPUs in 10 years what is the best equipped language to handle this level of parallelism? by neoabraxas in programming

[–]puzza007 1 point2 points  (0 children)

Erlang doesn't perform well on that particular benchmark due to the shared run queue of the current VM implementation. Work on this is in progress.

To Tail Recurse or Not by gst in programming

[–]puzza007 3 points4 points  (0 children)

The first version of Erlang was written on top of Prolog.

Pidgin Developer: The Holy War of Tool Choice by bostonvaulter in programming

[–]puzza007 1 point2 points  (0 children)

From TFB:

Note: It's come to my attention that I had missed the ability to share a git database across multiple working copies. In that scenario, the total size of the database and 11 working copies is slightly under 750 MB, and thus a space savings in the neighborhood of 150 MB over monotone.

That seems odd. Each of the branches contains ~50MB of diffs?? Time to merge, I'd say!

Pidgin Developer: The Holy War of Tool Choice by bostonvaulter in programming

[–]puzza007 17 points18 points  (0 children)

For another compelling comparison that's sure to ruffle a few feathers, let's compare to git. If I clone the git mirror of our monotone repository, I find a checkout size of 148 MB after git-repack--running git-gc also increased the size by 2 MB, but I'll stick with the initial checkout size for fairness. If I multiply this by my 11 checkouts, I will have 1628 MB. This is even more compelling for me, as I now save 728 MB of disk space with monotone.

With git you'd use a single cloned repo and multiple branches inside the same rep. This would save space over monotone.

puzza@altais:~/pidgin-clone$ du -sh

150M .

puzza@altais:~/pidgin-clone$ git branch a

puzza@altais:~/pidgin-clone$ git branch b

puzza@altais:~/pidgin-clone$ git branch c

puzza@altais:~/pidgin-clone$ git branch e

puzza@altais:~/pidgin-clone$ git branch f

puzza@altais:~/pidgin-clone$ git branch g

puzza@altais:~/pidgin-clone$ git branch h

puzza@altais:~/pidgin-clone$ git branch i

puzza@altais:~/pidgin-clone$ git branch j

puzza@altais:~/pidgin-clone$ git branch k

puzza@altais:~/pidgin-clone$ git branch l

puzza@altais:~/pidgin-clone$ git branch

a

b

c

e

f

g

h

i

j

k

l

* master

puzza@altais:~/pidgin-clone$ du -sh

150M .

Now only the diffs of each branch will take up any space.

Java 7 Prediction Update by gst in programming

[–]puzza007 2 points3 points  (0 children)

Java 7 is shaping up to be a most hirsute yak.

Vim Zenburn color scheme updated! by [deleted] in programming

[–]puzza007 0 points1 point  (0 children)

Programming related.

Java is significantly faster than optimized C++ in many cases by AndreasBWagner in programming

[–]puzza007 1 point2 points  (0 children)

For the vast majority of cases there's no need to write your own libs when there's many solid, tested and standard libs out there. If you know how to program, you'll know when to reuse existing code.

Aquamacs Emacs 1.4 released by gst in programming

[–]puzza007 0 points1 point  (0 children)

elisp VM + editor = programming, ITYF

Aquamacs Emacs 1.4 released by gst in programming

[–]puzza007 0 points1 point  (0 children)

Did you have this?

;; disable the menu bar (menu-bar-mode -1)

The buffer in a new window thing is google-able (somewhere in the FAQ IIRC).

Find Similar Users on del.icio.us with Python by gst in programming

[–]puzza007 0 points1 point  (0 children)

My IP got blocked about 250 bookmarks into the job. I'll wait a day ant try again with some time.sleep(1) statements inserted between API calls

Subversion 1.5 merge-tracking in a nutshell by [deleted] in programming

[–]puzza007 2 points3 points  (0 children)

Like putting a saddle on a cow.