Better HN
topnewbestaskshowjobs
Log inSign up

nothingmuch

80 karma · joined May 15, 2009 (17y ago) · 34 submissions

http://nothingmuch.woobling.org/
Submissions

1.

Where are the open edges?(blog.woobling.org ↗)

3 points · by nothingmuch · 16y ago · discuss

comment 17y ago · link · parent

A vibrator has a pretty good form factor for insertion into a loaf of bread =)

comment 17y ago · link · parent

.oO( a breadbox with speakers inside it to keep bread fresh )

comment 17y ago · link · parent

Exactly.

It's funny how commenters keep clinging to Erlang as if I said it was purely functional, when I'm actually talking about writing purely functional Perl (and to the extent that it's possible, C).

Oh well.

comment 17y ago · link · parent

http://skitch.com/nothingmuch/bhdwp/hacker-news-new-links

comment 17y ago · link · parent

plz delete

comment 17y ago · link · parent

I MEAN ERLANG HAHA LOL:

my website: http://www.erlang.ewebsite.com/page/erlang

comment 17y ago · link · parent

ERLAGN!

9.

Erlang(erlang.ewebsite.com ↗)

10 points · by nothingmuch · 17y ago · 3 comments

10.

Gospel of Consistency(blog.woobling.org ↗)

15 points · by nothingmuch · 17y ago · 1 comment

comment 17y ago · link · parent

http://www.cs.rutgers.edu/~ccshan/recur/recur.pdf

comment 17y ago · link · parent

Interestingly, C suffers from a somewhat similar ambiguity, where not the results of runtime-at-compile-time but rather type definitions affect the parsing.

http://calculist.blogspot.com/2009/02/c-typedef-parsing-prob...

comment 17y ago · link · parent

There's nothing preventing symbol table modifications done by Perl modules at compile time to be reified into some sort of linkage unit, with which a parser could then statically parse the code.

Similarly it's possible to prove that a certain block of code does nothing but link in such deterministic units, removing the nondeterminism of function prototypes.

Most of the source code out there can be parsed statically without resorting to anything drastic. The semantics of this hypothetical Perl 5 variant do differ, but as a strict subset it will still properly most of the useful code out there.

comment 17y ago · link · parent

the delimitation is not for data (that is closed over like any normal closure), it's for control.

when you apply a reified delimited continuation as a function it returns a value to that call site, to do the same with a traditional continuation you need to apply the reified continuation using call-cc, and it needs to know what to do with this continuation.

comment 17y ago · link · parent

can you please point to a real example of code like this?

just because a pathological case is possible, doesn't mean that it's actually common, or even existent.

16.

Delimited Continuations for Perl(blog.woobling.org ↗)

24 points · by nothingmuch · 17y ago · 3 comments

comment 17y ago · link · parent

this is solved ore cleanly with escape continuation/exceptions.

Perl also provides 'last LABEL', which is handy (lets you break out of any level of nesting).

I guess in a language like C where you can have neither and function calls are slow so the 'return' escape continuation is also unusable there is a reason to use goto for this.

comment 17y ago · link · parent

DIE IN A FIRE RTARD

comment 17y ago · link · parent

Clearly you've neverheard of Common Lisp

20.

Users, Accounts, Identities and Roles(blog.woobling.org ↗)

5 points · by nothingmuch · 17y ago · discuss

comment 17y ago · link · parent

LtU

comment 17y ago · link · parent

If the business logic is implemented in couchdb or implemented in serverside code, it's still business logic protecting the data.

It could be just as flawed, or even worse (e.g. sql injection allows malicious users to run database operations with no restrictions at all. If there were db level restrictions they could only destroy their own data).

This ALWAYS NEVER EVER type of mentality demonstrates exactly why CouchDB is simultaneously overhyped and condemned.

12