Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

imageboard in haskell

Name: ddddddddd 2007-05-03 15:42 ID:sPq5+bZA

I've written a basic imageboard in haskell. sauce is here: http://himgb.googlecode.com/svn/trunk/hImgb.hs . since there are quite a few haskell programmers here and this is an image board after all i thought i'd announce it here. the code is isn't nice. prerequisites: GHC, probably >= 6.6, and Graphics.GD. You'll probably also need UNIX. dunno.

good:
- has threads, image/text replies
- threads are bumped when replying
- rudimentary sanity checks
- makes thumbs
- no calls to outside binaries or any evals anywhere
- pretty darn fast

bad:
- can only upload jpegs (easily fixed)
- no hashing of files (couldn't find a lib that used bytestrings)
- shitty formatting (tedious fix)
- doesn't do pages (trivial fix)
- no administration (would take some work)
- no thread expiry (easy to fix)

this is pretty much a one day project, and i probably won't continue working on it, partly also because GHC takes too long to compile and link while swapping out my poor laptop.

svaha!

Name: Anonymous 2007-05-03 15:48 ID:F5j14FzH

Actually, this is a text board

Name: Anonymous 2007-05-03 15:49 ID:EtpdfxFl

>>2
dont worry haskell'ers cant tell the difference between text and images.

Name: Anonymous 2007-05-03 15:52 ID:sPq5+bZA

>>3
Not that's the lispers. Images are clearly IO Image and text is IO String

Name: Anonymous 2007-05-03 17:26 ID:EtpdfxFl

>>4
is that even relevant to the topic or is this just your way of saying "ive read SICP"?

Name: Anonymous 2007-05-03 17:52 ID:f214iHBG

- can only upload jpegs (easily fixed)
FAIL fix that to be more configurable

- no thread expiry (easy to fix)
Fix that as well

Name: Anonymous 2007-05-03 18:54 ID:C9kz9gfv

cool, where can we see a demo?

Name: Anonymous 2007-05-04 3:28 ID:ttQzR7Ek

u>>6
ok, done.

>>7
um, here: http://193.77.153.149/

the server's chrooted and only hosting that cgi. go crazy.

Name: Anonymous 2007-05-04 3:53 ID:ttQzR7Ek

I've just noticed that the thumbs are generated as xxxxxxxx.jpgs instead of xxxxxxxxxs.jpg. brb fixing

Name: Anonymous 2007-05-04 4:06 ID:ttQzR7Ek

okay fixd

Name: Anonymous 2007-05-04 9:33 ID:yBTjSeUy

I wrote an imageboard entirely in shellcode using notepad

Name: Anonymous 2007-05-04 9:50 ID:rK1e+JCE

I wrote Windows Vista at the age of three using only a broken stick and some doggy poo.

Name: Anonymous 2007-05-04 12:46 ID:Heaven

i'm writing an imageboard in c using nvi.
i only have about half of it written (after about 15 minutes of working on it) and it's already better than >>1's shit.
i'm going to go outside now. i'll probably come back and finish it later.

Name: Anonymous 2007-05-04 16:50 ID:LlddHc2q

I wrote an imageboard in Python, using nothing but cat and sed.  It's better than >>1's and >>13's combined, as it is fully operational, took me five minutes to write, and currently has a feature set roughly comparable to Wakaba's.

Name: Anonymous 2007-05-04 17:03 ID:Heaven

>>13
>>14
Source or it didn't happen. (Or, I know it didn't happen but still just fuck the up if you don't have a reply).

Name: Anonymous 2007-05-04 17:09 ID:HtlaxlEJ

ive never written anything in my entire life

goddamn it

Name: Anonymous 2007-05-04 18:57 ID:LlddHc2q

>>15
http://wiichan.net/

No source available yet. I don't want to be blamed for an assload of useless imageboards created by faggot kids who think they're going to be the next moot.

Name: Anonymous 2007-05-04 23:42 ID:Heaven

>>17
Very funny.

Name: Anonymous 2007-05-05 0:38 ID:Heaven

>>18
I wasn't being funny.

Name: Anonymous 2007-05-05 11:38 ID:zI3JLUNb

>>17
I found this in /c/(WHY ISN'T IT CALLED /PROG/)
2  Post deleted by moderator.
FAIL FAIL FAIL

Name: Anonymous 2007-05-05 12:57 ID:9qeunMAu

>>20
Not fail. I was wondering what Kareha did if a user-deleted post was subsequently deleted from the moderator panel.

/c/ is for "code". All boards don't have to do everything exactly like Ni-channel and Futaba, you know.

Name: Anonymous 2007-05-05 15:38 ID:/TT09NkZ

/PROG IS /PROG

Name: Anonymous 2007-05-05 16:26 ID:jpWRnlsH

It's /prog/, you turd.

Name: Anonymous 2007-05-05 17:07 ID:/TT09NkZ

CASELESS MOTHERFUCKER, YOU USE IT? (if not, you're a Unixtard)

Name: Anonymous 2007-05-05 17:24 ID:jpWRnlsH

Lowercase motherfucker, do you use it?

Name: Anonymous 2007-05-05 19:43 ID:/TT09NkZ

>>25
CRUISE CONTROL MOTHERFUCKER, DO YOU USE IT?

Name: Anonymous 2007-05-05 19:55 ID:jpWRnlsH

>>26
I don't have to. I'm an EXPERT PROGRAMMER.

Name: Anonymous 2007-05-06 9:01 ID:ergp82b/

Anyways, >>1, please listen to me. Not that it's really related to this thread. I went to /prog a while ago; you know, world4ch? Well anyways there were an insane number of Haskell programmers in there, and I couldn't post. Then, I googled for the Haskell homepage, and it had "PURELY FUNCTIONAL PROGRAMMING LANGUAGE" written on it. Oh, the stupidity. Those idiots. You don't use a programming language just because it s purely functional, fool. It's only referential transparency, FORCED NO SIDE EFFECTS for crying out loud. There're even companies using it. Company of 400 employees, all downloading some Haskell compiler, huh? How fucking nice. Alright, my manager's gonna use Haskell for the whole project. God I can't bear to watch. You people, I'll give you a damn purely functional language for FREE if you stop fagging up my /prog. /prog should be a bloody place. The tense atmosphere, where two guys on opposite sides of an open discussion can start a fight over VIM vs Emacs at any time, the stab-or-be-stabbed mentality, that's what's great about this place. Haskell fags should screw off and stay home. Anyways, I was about to discuss dynamic typing, and then the bastard beside me goes programming, with Haskell. Who in the world uses Haskell, you moron? I want to ask him, do you REALLY want to use Haskell? I want to interrogate him. I want to interrogate him for roughly an hour. Are you sure you don't just want to try saying Haskell? Coming from a expert programmer such as myself, the latest trend among us vets is this, multi-paradigm languages. That's right, multi-paradigm languages. This is the vet's way of programming. Multi-paradigm languages means more functionality than fappage. But on the other hand the theoretical correctness is a tad lower. This is the key. And then, it's powerful. This is unbeatable. However, if you try this then there is danger that you'll be marked by trolls from next time on; it s a double-edged sword. I can't recommend it to amateurs. What this all really means, though, is that you, >>1, should just stick with today's special.

Name: Anonymous 2007-05-06 9:23 ID:bXQ1nxK9

>>28
This is the very essence of /prog/.

Name: Anonymous 2007-05-06 11:01 ID:F8zz4DVC

>>28
wise words.

Name: Anonymous 2007-05-06 12:25 ID:AIXmctLS

>>28
Ctrl-C.

Name: Ctrl-V 2007-05-06 12:25 ID:AIXmctLS

Anyways, >>1, please listen to me. Not that it's really related to this thread. I went to /prog a while ago; you know, world4ch? Well anyways there were an insane number of Haskell programmers in there, and I couldn't post. Then, I googled for the Haskell homepage, and it had "PURELY FUNCTIONAL PROGRAMMING LANGUAGE" written on it. Oh, the stupidity. Those idiots. You don't use a programming language just because it s purely functional, fool. It's only referential transparency, FORCED NO SIDE EFFECTS for crying out loud. There're even companies using it. Company of 400 employees, all downloading some Haskell compiler, huh? How fucking nice. Alright, my manager's gonna use Haskell for the whole project. God I can't bear to watch. You people, I'll give you a damn purely functional language for FREE if you stop fagging up my /prog. /prog should be a bloody place. The tense atmosphere, where two guys on opposite sides of an open discussion can start a fight over VIM vs Emacs at any time, the stab-or-be-stabbed mentality, that's what's great about this place. Haskell fags should screw off and stay home. Anyways, I was about to discuss dynamic typing, and then the bastard beside me goes programming, with Haskell. Who in the world uses Haskell, you moron? I want to ask him, do you REALLY want to use Haskell? I want to interrogate him. I want to interrogate him for roughly an hour. Are you sure you don't just want to try saying Haskell? Coming from a expert programmer such as myself, the latest trend among us vets is this, multi-paradigm languages. That's right, multi-paradigm languages. This is the vet's way of programming. Multi-paradigm languages means more functionality than fappage. But on the other hand the theoretical correctness is a tad lower. This is the key. And then, it's powerful. This is unbeatable. However, if you try this then there is danger that you'll be marked by trolls from next time on; it s a double-edged sword. I can't recommend it to amateurs. What this all really means, though, is that you, >>1, should just stick with today's special.

Name: Anonymous 2009-01-14 15:00

No

Name: Anonymous 2011-02-03 6:43

Name: Sgt.Kabu㝵嵨kimanꮔ牫 2012-05-29 1:20

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Don't change these.
Name: Email:
Entire Thread Thread List