Better HN
topnewbestaskshowjobs
Log inSign up

dpkendal

1,289 karma · joined Nov 13, 2010 (16y ago) · 142 submissions

I make stuff do things.
Submissions

1.

How to Implement Regular Expressions in JavaScript Using Derivatives(dpk.io ↗)

2 points · by dpkendal · 8y ago · discuss

comment 9y ago · link · parent

As a learner/non-native speaker of German, please don't abolish the only way to tell the vowel length of an unfamiliar word.

comment 9y ago · link · parent

Did we read the same paragraph? The problem with his first thesis was that, though he presented a brilliant and original result, he didn’t show that he’d studied enough prior research.

Nothing to do with schmoozing, everything to do with scholarly integrity.

4.

What Brexit and austerity tell us about economics policy and the media [pdf](speri.dept.shef.ac.uk ↗)

2 points · by dpkendal · 9y ago · discuss

comment 10y ago · link · parent

SEEKING FREELANCER (Remote or Berlin, Germany)

Abecedary Limited

We’re looking for someone to help us integrate SAML authentication into a Python/Flask web app (as a Service Provider, wanting to authenticate against IdPs). There is already a full authentication system in-place — all that needs doing is integration with SAML-based SSO.

Knowledge of Python or Flask is not needed but extensive experience of SAML — and, ideally, the UK Access Management Federation and/or comparable schemes around the world — will be needed.

Expected completion within 1–2 weeks.

Contact <hiring@greensdictofslang.com>.

comment 10y ago · link · parent

> Freedom of speech is not freedom from criticism.

“Sorry, you wrote this and we don’t like it, therefore you’re not invited to this conference on an irrelevant topic” or “… therefore we’re not going to a conference to which you were invited” is not valid criticism of an idea.

comment 10y ago · link · parent

SEEKING WORK

Berlin, DE.

Remote possible (preferred).

12 years experience, 5 professional, in Python and Ruby web development, with popular frameworks (Rails, Sinatra, Flask). Additional experience in PHP, JavaScript, etc. Open-source work is at https://github.com/dpk and https://gist.github.com/dpk

See http://dpk.io/contact for details of how to get in touch with me.

comment 11y ago · link · parent

Perl 6 uses rationals by default. They have the advantages of being base-agnostic, able to accurately represent any recurring digit expansion accurately regardless of eventual base, and also faster (since, especially if you normalize (convert to lowest terms) lazily, most operations are just a few integer instructions with no branching, looping, or bit-twiddling involved).

comment 11y ago · link · parent

The difference is in how the result is converted to a string, not in how the result is produced.

comment 11y ago · link · parent

This was published so he can get community help with finishing it: http://www.crockford.com/javascript/encyclopedia/preface.htm...

comment 11y ago · link · parent

The Oxford Dictionary of National Biography (https://en.wikipedia.org/wiki/Dictionary_of_National_Biograp...) follows a similar model to the SEP to deliver on the comprehensive/authoritative/up-to-date trifecta. Unfortunately it’s paywalled, unlike SEP, but it’s certainly the best biographical encyclopedia I know of because of this.

comment 11y ago · link · parent

Unicode has things for this: https://en.wikipedia.org/wiki/Zero-width_non-joiner

And customization is done declaratively, not imperatively.

comment 11y ago · link · parent

It’s not certain yet that this is an antedating. OED editor Jesse Sheidlower calls it ‘putative’: https://twitter.com/jessesheidlower/status/64305138542510899... and slang lexicographer Jonathon Green concurs but finds it probable: https://twitter.com/MisterSlang/status/643060037221515264

If it is, it’s big news. But bear in mind that ‘John le Fucker’, recorded 1278, (https://en.wikipedia.org/wiki/John_le_Fucker) would be a further antedating from a personal name if it were somehow to be confirmed as a use of the word.

comment 11y ago · link · parent

The Unicode case-mapping algorithm is customizable by locale (e.g. uppercase i is İ in Turkish). A application which needed long s (for German Fraktur, for instance) could use a custom locale.

comment 11y ago · link · parent

My mistake, I meant O(2 ^ n) indeed. Regardless, having exponential time complexity in terms of the regular expression (which is usually controlled by the programmer) where the processing is done at compile-time is much better than having exponential complexity in terms of the input string (which often comes from an untrusted source) where the processing is done at run-time.

comment 11y ago · link · parent

Not true. Finite automata (NFAs, DFAs) can match that pattern (and any pattern that doesn't involve backreferences or lookaround) in O(n) time where n is the size of the input string. DFA implementations are worst-case O(n ^ 2) in the number of states of the regular expression, but this is far better in most cases than the exponential worst-case time in terms of the input string offered by backtracking implementations.

See https://swtch.com/~rsc/regexp/ for information on finite-state-machine implementations of regexp matching.

comment 11y ago · link · parent

Why not store the log files in an FM-index? (https://en.wikipedia.org/wiki/FM-index)

comment 11y ago · link · parent

Bears repeating: this does not affect stable versions of FreeBSD. FreeBSD-CURRENT is the development version.

19.

ASCII becomes an Internet Standard(mailarchive.ietf.org ↗)

2 points · by dpkendal · 11y ago · discuss

comment 12y ago · link · parent

Indeed, the W3C's work on HTML5 is irrelevant. It exists only for the purpose of giving the W3C-qua-organization the appearance of being involved in the further development of HTML.

comment 12y ago · link · parent

Which is exactly what djb says about Germany. It doesn’t affect public domain status.

comment 12y ago · link · parent

Provably false. http://cr.yp.to/publicdomain.html

23.

Why Bitcoin is a significant breakthrough, but perhaps not as a currency(dpk.io ↗)

106 points · by dpkendal · 12y ago · 103 comments

comment 13y ago · link · parent

“Multics Emacs proved to be a great success — programming new editing commands was so convenient that even the secretaries in his office started learning how to use it. They used a manual someone had written which showed how to extend Emacs, but didn't say it was a programming. So the secretaries, who believed they couldn't do programming, weren't scared off. They read the manual, discovered they could do useful things and they learned to program.” — http://www.gnu.org/gnu/rms-lisp.html

You also assume that programmability implies complexity, which is the argument I tried to refute …

comment 13y ago · link · parent

You seem to be the only person in this thread who has grasped this idea; though instinctively to me it feels another formalism like LC is the wrong way to go.

comment 13y ago · link · parent

Bret Victor is working on some amazing stuff right now. I suggest his talk Drawing Dynamic Visualizations to see how he’s making programing more direct and less “code”-ish: http://vimeo.com/66085662

comment 13y ago · link · parent

“If you believe that you have never tried to teach a class of non-programmers.”

No, you’re trying to teach them with the same kind of tool that I call ‘clumsy and unsophisticated’ in the article.

“Apple have made a lot of efforts to bring programming to the common user: Hypercard, Applescript, Automator. They are abandoned because no-one was interested in using them.”

In many ways HyperCard was still too difficult, but it was a great tool. Many people did use it to make simple programs, and some became programmers from it. I’m not arguing that everyone should learn to program to the level of being able to create and sell apps; HyperCard is a good example in that sense.

AppleScript is a failure because it’s a terribly difficult language even for most working programmers. Its designers completely failed in that respect.

Automator is not programming.

comment 13y ago · link · parent

I am a programmer, writer and musician, but I don’t find any of them easy.

Programming is unique, though, because the tools you use to do it can also be used to make the task in general much easier.

29.

Modern computing: A short history and a shorter rant(dpk.io ↗)

43 points · by dpkendal · 13y ago · 60 comments

comment 13y ago · link · parent

Funny, that's exactly what people used to say when OS X came out, right after Steve Jobs came back …
12345