Better HN
topnewbestaskshowjobs
Log inSign up

NigelTufnel

86 karma · joined Aug 1, 2013 (13y ago) · 49 submissions

http://codumentary.blogspot.com
Submissions

1.

Show HN: Ebash – AI-Powered Shell(github.com ↗)

3 points · by NigelTufnel · 7mo ago · discuss

comment 8y ago · link · parent

To find the best Python function ever written!

3.

Show HN: Pymash.com – facemash for the most popular Python repos(pymash.com ↗)

2 points · by NigelTufnel · 8y ago · 2 comments

4.

Show HN: Goslow – Slow HTTP server that responds with errors(github.com ↗)

6 points · by NigelTufnel · 11y ago · discuss

comment 12y ago · link · parent

This is so much fun. It's kind of like RPG. There are 3 character classes. 1. Asshole: just goes straight after the green square. 2. Prankster: draws arrows pointing to the wrong exits. 3. Batman: stays on the button and clicks.

I've tried all three characters. Playing prankster is fun (I was a true trickster and sometimes drew the right arrow). Playing asshole is boring. Playing Batman is ok.

My apologies to all the guys/gals who followed the wrong arrow.

Many, many thanks to the author.

Also, I haven't seen so many poorly drawn dicks and swastikas since grade school.

comment 12y ago · link · parent

Were it GCC instead of VC++ that wouldn't change much for a lot of people. Fixing bugs in a program with 7 million lines of code is not easy.

Fixing bugs in GCC for an unitiated person is probably super hard.

7.

Java 8 is the biggest thing to happen to Java since Java 7(codumentary.blogspot.ru ↗)

3 points · by NigelTufnel · 12y ago · discuss

comment 12y ago · link · parent

Wikipedia doesn't underline links either. They're doing fine.

comment 12y ago · link · parent

This is insane. No <!doctype> declaration? Come on!

comment 12y ago · link · parent

I'm getting latitude = 60.0000, longitude = 100.0000 for my IP. Which is about 1000 km away from me.

comment 12y ago · link · parent

Personal experience: weird jargon is a good thing. I've read a book on Hadoop once and it didn't use weird jargon - everything was in my native language. It was super hard to read - basically I needed to translate the book from my native language into English in my mind.

comment 12y ago · link · parent

I just did. And either a) I'm doing something terribly wrong or b) ctypes.Structure is slower than Python class with __slots__.

I would bet on a) - I've never worked with ctypes before.

EDIT: I bet on a) and I was wrong: ctypes offers no speed advantage.

comment 12y ago · link · parent

I did a stupid microbenchmark and it turned out that simple class with __slots__ was the fastest method.

comment 12y ago · link · parent

What was wrong with the honest: "We'll show ads to the first-time Firefox users, so we can make extra money with our free product. We'll show ads only once"?

"User-first" bit is the textbook example of PRspeak.

comment 12y ago · link · parent

Not just drop downs, but you can click on, e.g, restart and the page will restart. Took me a couple of minutes to get it.

comment 12y ago · link · parent

Now that's hard.

The next logical step is to type in point-free Haskell programs.

comment 12y ago · link · parent

A slightly paradoxical advice: learn Objective-C. Learning of one thing never stops.

Suppose you're now top 5% iOS developer. 5 years later you'll probably be top 1%. That's cool.

I can see only one hugely improbable risk in doing this. If Apple goes down then Objective-C developers will be as valuable as toilet paper.

comment 12y ago · link · parent

He seems to be a normal guy, not a PR genius. But, yeah, "The game with 50,000,000 downloads will be taken off the app stores in the next 22 hours" is brilliant.

comment 12y ago · link · parent

It's noteworthy because this one became popular. That's how the world works.

comment 12y ago · link · parent

Maybe it's just something I don't understand but I would go with Celsius everywhere with converting to Fahrenheit/Kelvin when showing/grabbing temperature to/from user.

comment 12y ago · link · parent

I agree. It's not just the algorithm, scale etc. It's the chicken/egg problem - to have a good page ranking you need a lot of usage data from a lot of users and to get a lot of users you need a good page ranking.

comment 12y ago · link · parent

It's always a safe bet that any new language will fail spectacularly. Also everybody is not Google and have massive speed/concurrency needs.

comment 12y ago · link · parent

I wonder how fast is this server. Is handwritten assembly faster than GCC/clang-written assembly?

comment 12y ago · link · parent

I don't understand. By built-in map you mean "map literals"?

comment 12y ago · link · parent

I think that "destroyed" is not the right word.

Yes, free to play games with in app purchases dominate the mobile market. For now. The mobile gaming is just 6 years old. We're in the 'Space Invaders' era. The quality of the top-grossing games is, how I shall put it, not great.

I think eventually the quality will grow to a level where paying up front for a mobile game will not be the stupidest thing on the face of the Earth.

comment 12y ago · link · parent

I think that concatenation with + is okay when you're concatenating two strings. And CPython can optimize x = x + y or x += y calls.

http://docs.python.org/2/library/stdtypes.html

comment 12y ago · link · parent

Year 2014: Java gets lambdas.

Java 8 is pretty nice actually. Lambdas, date/time API that doesn't suck, filter/map/reduce in the collections. I'm looking forward to work with it.

comment 12y ago · link · parent

Template-heavy C++ and point-free Haskell code.

comment 12y ago · link · parent

"Brilliantly simple" is an odd description of Scala. I would easily put Scala in the top 3 most-difficult-languages-for-me to work with. Maybe even top 2.

comment 12y ago · link · parent

There is a great moment in Stroustrup's talk when he shows a short error message in ConceptGcc and the audience applauds.

It seems that Stroustroup was suprised by the applauses.

12