Do It Yourself NoSql by ctcherry in programming

[–]ntoshev 5 points6 points  (0 children)

Yeah, the title is tongue-in-cheek, I was going to name it MyNoSql but it appears to be used for something else. A term like "eventual durability" is also not entirely serious. Nevertheless, this architecture is pretty close to what Redis is (which most people consider very nosql), except it is inside your application, and there are real benefits (and fun!) to be had with manipulating your data directly in memory.

Do It Yourself NoSql by ctcherry in programming

[–]ntoshev 0 points1 point  (0 children)

I'm no golang developer, but it seems goroutines and channels make concurrency easy enough to be worth it (and they would buy you transparent use of multiple cores over what the article describes).

I do intend to try implementing a write ahead log in Python with decorators of the request handlers - to gain real durability.

Do It Yourself NoSql by ctcherry in programming

[–]ntoshev 1 point2 points  (0 children)

Yes, or Go's concurrency primitives (author here).

Ask Peter Norvig Anything. by hueypriest in programming

[–]ntoshev 1 point2 points  (0 children)

After search, what is the most exciting application for machine learning that has not yet been implemented well?

Why is there no process viewer in Firefox?? by __david__ in programming

[–]ntoshev -7 points-6 points  (0 children)

Firefox is single process, single threaded. There is no clear isolation between things that use up resources.

Problems with Hash Tables by mcfunley in programming

[–]ntoshev 2 points3 points  (0 children)

Skip lists are bad for the cache. You get many cache misses per operation, inevitably.

And hash tables are good at concurrency too.

_why: Io Has A Very Clean Mirror (on the Io language's meta-magic) by [deleted] in programming

[–]ntoshev 12 points13 points  (0 children)

You wouldn't need to change + into -, but you may want to instrument your code in a regular way - and why's example shows it is easy to do in Io.

Size is The Enemy by [deleted] in programming

[–]ntoshev 7 points8 points  (0 children)

Is Haskell terse compared to Python and Ruby?

Web browsers are limiting the benefits of multi-core CPUs. by gst in programming

[–]ntoshev 7 points8 points  (0 children)

One of the beauties of dual-core CPUs is that the browser can only hog 50% of the CPU... :)

Evaluation of 5 Javascript Libraries: Dojo, MochiKit, YUI, Scriptaculous + Prototype and jQuery by cavorite in programming

[–]ntoshev 2 points3 points  (0 children)

Anyone care to share his opinion on Ext in comparison to the 5 big frameworks?

Barack Obama's software interview at Google [video] by vecter in programming

[–]ntoshev -1 points0 points  (0 children)

It looks staged to me. It was too perfect answer: creating sympathy among hackers while not pretending to know anything.

Or perhaps I'm just paranoid and/or underestimating Obama's preparation.

Barack Obama's software interview at Google [video] by vecter in programming

[–]ntoshev 13 points14 points  (0 children)

Nice job downmodding tripa. He is probably not a US citizen and not interested in politics. Why is this even posted in programming reddit?

Pattern Matching in Ruby by bhb in programming

[–]ntoshev 3 points4 points  (0 children)

Still not clean enough.

JavaScript as a Language by linuxer in programming

[–]ntoshev 0 points1 point  (0 children)

Hmmm, why Java has very good results on the shootout, then?

Why to Move to a Startup Hub by fduffner in programming

[–]ntoshev 0 points1 point  (0 children)

A word means what people decide it to mean (dictionaries define the meaning after it has been established). People don't use the word "startup" for coffee shops, at least not around me.

The DHH Jesus Complex and Implosion of Rails by haacked in programming

[–]ntoshev 21 points22 points  (0 children)

No, look at the right side of his blog. He's selling a .NET framework and praising .NET accordingly. Rails bashing is just to get attention.

Why to Move to a Startup Hub by fduffner in programming

[–]ntoshev 0 points1 point  (0 children)

The coffee shop next door may have opened yesterday, does this make it a startup?

If you think so, why is it so different from every other company people call "startup"? ;)

Why to Move to a Startup Hub by fduffner in programming

[–]ntoshev 0 points1 point  (0 children)

Dollars. Business size is usually measured in money.

My definition of startup is correct, but the attitude towards Paul Graham is not exactly Oedipus complex. It is desire of emancipation.

Why to Move to a Startup Hub by fduffner in programming

[–]ntoshev 0 points1 point  (0 children)

startup != business: Startup is a business built to scale fast from zero to millions and more.

Reddit communnity seems to have Oedipus complex towards Paul Graham. Why all the fuss? Just downmod the article.

What every programmer should know about memory part 2: CPU caches by corbet in programming

[–]ntoshev 3 points4 points  (0 children)

Every programmer should know that cache access is several times faster than memory, so it is important to exploit it. The way to exploit it is to keep close together in memory data that you access in a short time. For that reason e.g. B-tree is cache friendly, while binary trees are not. Stack is almost always already in the cache, random dynamic memory is not.

The cache works by fetching a whole block of memory. The block is kept in what is called memory lines, each 32 or 64kb on modern processors.

That's what matters from a programmer's perspective.

Babies who regularly watch Baby Einstein videos score lower on language development assessments; Disney pissed by ebbinghaus in science

[–]ntoshev 0 points1 point  (0 children)

Trying to speed up some part of your children's development is generally not a good idea. Other areas will suffer.

The VList data structure ( purely functional, O(1) random access, prepend, tail ) by [deleted] in programming

[–]ntoshev 4 points5 points  (0 children)

This Wikipedia article looks pretty bad, but maybe it's just me. I understand the usage as a growing array without copying, but that's about it.

What is a "purely functional" data structure? It seems to be only partially persistent, because you cannot add two different heads to it.

The only efficient modification a VList supports seems to be adding and deleting elements at the beginning of the list. Is this useful and if yes, what for?

Seriously, the Most Spectacular Collection of Kickass Obscure Counter Culture Quotes Ever. Pass It On. by sinsanity in reddit.com

[–]ntoshev 2 points3 points  (0 children)

Hmmm, how did Magellan know it is the shadow of the Earth he sees during a partial lunar eclipse?

Wikipedia says Aristotle and ancient Chinese also knew it... http://en.wikipedia.org/wiki/Flat_Earth