Better HN
topnewbestaskshowjobs
Log inSign up

mwotton

68 karma · joined Oct 18, 2008 (18y ago) · 40 submissions

haskell, perl, shimweasel.com
Submissions

comment 5mo ago · link · parent

I had some code for the Servant type-level HTTP API library in Haskell that does type-correct property testing on arbitrary web apis without user input, then Servant changed their type structure from a basic list-based format to a record-based one. This was a good change for lots of reasons, but adding the type-level code to make my library (roboservant) compile was absurdly hard, i burned days on it.

GPT 5.something got it in two prompts.

comment 9y ago · link · parent

I used sqlite as a backend for scraping 160 million websites a day. It works extraordinarily well if you hold it right - in my case, that meant devoting a database file to each thread. (Arguably in this context, it's competing with flat files, but it does a really good job there.)

comment 10y ago · link · parent

Me too. Got its quirks (I wish it noticed stack-relevant changes and ran intero-restart itself) but I find it really valuable, especially with Anthony Cowley's suggestion-handling stuff.

comment 11y ago · link · parent

I've implemented this. It isn't too bad up to a certain point. You have to be a bit careful about your filesystem/layout of files, lots of filesystems don't particularly like it when you have a few hundred million files in one directory.

comment 12y ago · link · parent

I have a crawler downloading 160 million websites a day, almost all in Haskell. It is a much more practical language than the alternatives.

comment 12y ago · link · parent

yeah - worked on it a bit with Ollie Charles.

https://github.com/ocharles/Elasticsearch

it's not very principled, tbh. uses error etc rather than proper sum types for returning errors.

comment 12y ago · link · parent

as a contributor to the other ElasticSearch client - kudos. This is much nicer than ours in many ways :)

comment 13y ago · link · parent

yes, I probably should have mentioned the other 90% of the project, hey :)

comment 13y ago · link · parent

This is true :) been a great tool to write a spider in, fast native code, a strict type system and very cheap threads has made it much faster than it otherwise would have been. ZeroMQ has also been a great help in modularising it. I'll try to get a piece out on the technical architecture later. (I'm the CTO, btw.)

comment 13y ago · link · parent

What benefit does that have over what's actually there?

comment 13y ago · link · parent

Row polymorphism has something to say about this, doesn't it? Coming from Haskell, I'm still finding concatenative programming hard to handle.

comment 13y ago · link · parent

well, let's look.

map f (h:t) = f h:map f t

map f [] = []

member x (h:t) = x == h || member x t

member _ [] = False

I think the only difference is that you can't match for equality directly in the pattern.

comment 14y ago · link · parent

My startup involved custom hardware and realtime messaging. I still would have been better off in the early stages writing it in Ruby.

comment 14y ago · link · parent

ha. I didn't think that at all when I was writing it, but I can see how it's applicable. I'll be sure to analyse that more explicitly next time I write a presentation.

comment 14y ago · link · parent

not caremad, just clarifying. I'm as baffled as you are.

comment 14y ago · link · parent

It really depends on the type of risk. My assertion is that most startups have most of their risk in the market bucket rather than the technical bucket. If you can move some risk from the market bucket to the technical bucket, and compensate by using Haskell, that may be a good tradeoff.

in the case where your risk is in the market bucket, you may go through many just-barely-working prototypes before you hit product-market fit. at that point, if you've saved some time using Ruby (say) because of external factors like Heroku, Bundler, and ruby-friendly services, you're ahead of the game, even if your tenth prototype sucks and needs to be rewritten.

comment 14y ago · link · parent

A lot of context is lost in a slideshow. I am very much a fan of the experience of developing in Haskell. My problem was tangential stuff like Cabal & the difficulty of operationalising Haskell. It's the reason I spent a few fruitless weekends trying to get a heroku haskell buildpack: if it was trivial to deploy prototypes, it would be a much more appealing target for time-poor startups.

comment 14y ago · link · parent

It wasn't really intended to make much sense by itself. I find if I make slides that stand alone, the audience reads the slides and ignores me. I put the slides up as a courtesy to the people in the audience.

There was less than zero marketing involved - I gave this talk months ago and only just noticed this thread.

comment 14y ago · link · parent

Copy-on-write.

comment 14y ago · link · parent

http://jacquesmattheij.com/The+Starter+the+Architect+the+Deb... seems relevant here. I often have the same problem - once the crazy technical stuff is done, I lose interest in the mundane details of packaging, finish, promotion... you know, the boring 90%.

comment 14y ago · link · parent

good idea - i might even manage a complete and coherent sentence.

comment 14y ago · link · parent

I'm interested in this for ninjablocks, too - I think we're currently bundling a small number of resources (SMSes etc) with each account, but then perhaps more fine-grained tracking.

comment 14y ago · link · parent

Privacy is a legitimate concern, but there are useful things you can do that you might feel comfortable sharing with our servers. Zero-information computing is really hard, and we didn't feel it was worth the time it'd take to give that kind of strong guarantee.

comment 14y ago · link · parent

It's coming.

comment 14y ago · link · parent

no, it's a beaglebone and an arduino. we looked at the raspberry pi, but availability wasn't great.

comment 14y ago · link · parent

yes, we're mainly focused on plugged-in hardware. there'll probably be a battery pack made at some point, but it's not our first priority.

comment 14y ago · link · parent

Yep. But we're aiming this at beneath "Hello World" level electronics knowledge, and at people who _could_ do the work but appreciate being able to work with it at a more abstract level.
12