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

Pages: 1-4041-

FOLLOW THE SIMPLE RULES

Name: Anonymous 2009-08-13 2:54

http://lisperati.com/landoflisp/

I'm sure everyone on /#haskell/ /prog/ has seen this already but I didn't find a reference to it in my cursory evaluation of this board's activity from the past year or two (ie. by glancing at the front page; anything else would require side effects).

Name: Anonymous 2009-08-13 2:58

It was a fun little comic.

Name: Anonymous 2009-08-13 3:11

sqlite> select "http://dis.4chan.org/read/prog/" || thread || "/" || id from posts where body like '%lisperati.com/landoflisp%';
http://dis.4chan.org/read/prog/1207139373/1
http://dis.4chan.org/read/prog/1207139373/4


http://github.com/Cairnarvon/progscrape/tree/master

Get with it, man.

Name: Anonymous 2009-08-13 4:35

>>3
How hard is this to modify for python 2.6?

Name: Anonymous 2009-08-13 5:15

>>4
It should work without modifications.
Won't work for Py3k, though, though I can't remember why. Maybe the sqlite3 library hadn't been ported, or something.

Name: Anonymous 2009-08-13 5:21

>>5
It seems to complain about a number of entries to subject.txt and it spits up
Traceback (most recent call last):
  File "./progscrape.py", line 166, in <module>
    db.execute('INSERT INTO posts (thread, id, author, email, trip, time, body) VALUES (?, ?, ?, ?, ?, ?, ?)', b)
sqlite3.ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.
when run. I'll just going to run it through the python debugger and see if I can get more info, but IIRC they made some string changes to py2.6 that may be at fault

Name: Anonymous 2009-08-13 5:49

>>6
What happens if you stick random us in front of strings?

Name: Anonymous 2009-08-13 6:21

>>7
うううう~

Name: Anonymous 2009-08-13 6:23

>>7
I get a message asking if you're okay. Cudder are you okay? are you okay cudder?

Name: Anonymous 2009-08-13 7:44

>>7
Unsurprisingly, it didn't work. So I just took the lazy route and converted all the data going into the database to unicode. Seems to be working fine, but I won't know till I've done a full update.

Name: Anonymous 2009-08-13 7:46

>>10
Typical, it choked as soon as I pressed Reply

Name: Anonymous 2009-08-13 8:32

So, somebody fucking fix it then

I want to get my /prog/scrape on

Name: Anonymous 2009-08-13 8:37

>>12
It's fine if you're using python 2.5, my port to 2.6 is ongoing

Name: Anonymous 2009-08-13 8:54

>>13
Bonus points if it's backward compatible. I'd do it myself, but I can't even get 2.6 to load the sqlite module.

Name: Anonymous 2009-08-13 9:08

>>12
If you just want the database to play with, try this: http://cairnarvon.rotahall.org/misc/prog.db.lzma
That's current as of a few minutes ago.

Building it from scratch will take over two hours even when dis is playing nice.

Name: Anonymous 2009-08-13 10:52

>>15
What the fuck is this format? I can't open it on Windows 95

Name: Anonymous 2009-08-13 11:01

Name: Anonymous 2009-08-13 11:28

>>16
Step 1: Use Linux.
Step 2: Use the unlzma command.
Step 3: There is no step 3.

Name: Anonymous 2009-08-13 13:23

Quick Update:
After a quicklong time building the database from scratch, there are only 12 Unicode Errors to fix.
If you care, see http://prog.pastebin.com/mad7088c for more details

Name: Anonymous 2009-08-13 23:31

http://cairnarvon.rotahall.org/misc/whut.mp3
Xarn's phunky Phlemish beat-breaks.

Name: Anonymous 2009-08-14 0:29

Trust me: you'd much rather hang with a couple of guys like us and not live in a sterile totalitarian state like on the other side.

Name: Anonymous 2009-08-14 4:36

>>20
whut?

Name: Anonymous 2009-08-14 13:18

>>1
What's the moral of that story? Do they want us to use functional programming or not?

Name: Anonymous 2009-08-14 13:24

>>23
They're using functional programming anyway.
The moral of the story is that while Haskell is good and all, non-purely functional dynamic languages like lisp (without strict typechecking) have a place too.

Name: Anonymous 2009-08-14 13:25

>>23
Based on that story, I'd say not. But with lisps, you generally code as you see fit, rather than sticking to a particular model.

Name: Anonymous 2009-08-14 13:28

>>22
American patriots who are against big government.

Name: Anonymous 2009-08-14 14:37

>>24
The comic says nothing about type systems, although smug Lisp weenies would still rather have you using Scheme than OCaml.

By the way, the irony in the comic that you failed to notice (or ignored, you roguish troll, you) is the way that "cheating" with side effects is portrayed as unsafe. The Lisp programmers manage to demolish a forest and vaporize a cat in the course of writing their programs, and these are real dangers that programmers face every day in impure languages like C and Prolog. Basically, the whole thing is satirizing the Lisp community even more than it's making fun of Haskell.

Name: Anonymous 2009-08-14 14:57

>>3
Someone should re-write this in Haskell... or maybe a Lisp.

Name: Anonymous 2009-08-14 15:01

>>27
It actually does mention type systems in panel 60, but I suspect >>24 believes ``side-effects'' means ``dynamic typing''.

Name: Anonymous 2009-08-14 15:05

This was a good comic, and I wish to see more content like this posted on /prog/

Name: Anonymous 2009-08-14 15:52

>>28
Oh god, I lol'd. As if an academic language is capable of expressing a useful program like that...

Name: Anonymous 2009-08-14 16:04

>>31
Do I hear a challenge?

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-14 16:09

Side-effects are just like using global variables. They are very useful in practice and require non-trivial code workarounds(like monads,uniqueness) to replace(for perceived stability/bugless code).



________________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
Men who long for freedom begin the attempt to obtain it by entreating their masters to be kind enough to protect them by modifying the laws which these masters themselves have created!

Name: Anonymous 2009-08-14 16:22

>>33
(for perceived stability/bugless code)
I like how you worded that to indicate that the reduction in bugs is completely imaginary. You're right, but you'll never get into college saying stuff like that.

Name: Anonymous 2009-08-14 16:41

>>33
Spoiler: [spoiler]Haskell allows side-effects, it just requires that "functions" declare their use of side-effects in their types.[spoiler] It's not that hard.


main = do
    stuff <- getContents
    putStrLn "Here's the stuff you typed in."
    putStrLn stuff

Name: Anonymous 2009-08-14 16:52

>>35
It's not that hard.

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-14 17:00

http://www.cs.auckland.ac.nz/references/haskell/haskell-intro-html/io.html
So, in the end, has Haskell simply re-invented the imperative wheel?

In some sense, yes. The I/O monad constitutes a small imperative sub-language inside Haskell, and thus the I/O component of a program may appear similar to ordinary imperative code. But there is one important difference: There is no special semantics that the user needs to deal with. In particular, equational reasoning in Haskell is not compromised. The imperative feel of the monadic code in a program does not detract from the functional aspect of Haskell. An experienced functional programmer should be able to minimize the imperative component of the program, only using the I/O monad for a minimal amount of top-level sequencing. The monad cleanly separates the functional and imperative program components. In contrast, imperative languages with functional subsets do not generally have any well-defined barrier between the purely functional and imperative worlds.



_________________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
However, this campaign is not about killing Spartacus. It is to kill the legend of Spartacus.

Name: Anonymous 2009-08-14 17:29

>>35
However, Haskell does not allow global state, meaning you have to pass state arguments all over hell's half acre. This is just as bad as not allowing side effects.

Name: Anonymous 2009-08-14 17:41

>>35
Spoiler: Spoilers are not that hard

Name: Anonymous 2009-08-14 17:57

>>38
You suck at Haskell, and presumably functional programming in general. Perhaps you knew this already.

Name: Anonymous 2009-08-14 17:58

>>40
ITT: Trolls pretend to know how to program

Name: Anonymous 2009-08-14 18:14

>>41
ITT: Trolls pretend to know how to program

Name: Anonymous 2009-08-14 18:23

>>38
meaning you have to pass state arguments all over hell's half acre
HASKELL. HASKELL NOMADS.

Read SICP and YAHT before you return to the land of the Susskind.

Name: Anonymous 2009-08-14 19:05

>>29
I don't think side-effects and the dynamic typing in Lisp have anything to do with each other.

Name: Anonymous 2009-08-14 19:23

>>43
Monads are possibly the biggest mistake in the design of Haskell, even more gigantic and ridiculous than trying to make it "pure" in the first place. Writing monad transformers is every bit as difficult as debugging Sepples templates, except it requires about 1000.times more theory to even begin to understand what the fuck you're doing.

They're not actually user-friendly at all and I hope you perish in the mires of your toy Haskell program's source code for even bringing that up.

Name: Anonymous 2009-08-14 19:29

>>45
Listen to this man

Name: Anonymous 2009-08-14 19:38

>except it requires over 9000.times more theory
fixed

Name: Anonymous 2009-08-14 21:12

>>45
You're just jealous of us that achieved satori. Monads allow programmers to express a massive range of computational processes in a standard and elegant manner - the monadic way. If you want your program to make use of a specific computation, just apply more Monads! Don't need a specific computation, just don't use the monad!

Some examples of computations though monads include
*  Representing failure using Maybe monad
* Nondeterminism through backtracking using List monad
* State using State monad
* Read-only environment using Reader monad
* I/O using IO monad

You too can wield the power. Learn monads today and achieve satori now!

Name: Anonymous 2009-08-14 21:25

Nondeterminism through backtracking using List monad
Oh really?

Name: Anonymous 2009-08-14 21:47

>>48
And it's still not as expressive as J:
  n=: 50                      NB. set n as the number of digits required
  <.@o. 10x^n                 NB. extended precision 10 to the nth * pi
314159265358979323846264338327950288419716939937510

Name: Anonymous 2009-08-14 22:22

>>50
It takes nearly twenty characters to multiply a constant with an integer? Even assembly is less verbose.

Name: Anonymous 2009-08-15 0:48

>>51
That's actually equivalent to...
printf("%1.50f", pi);

Name: Anonymous 2009-08-15 2:27

>>52
I don't know J, but is it really equivalent? A few characters seem to be missing. I found some, but not all, of them.
#include...
int main (...

Name: Anonymous 2009-08-15 9:40

>>53
I neglected to penalize C for something you don't see in any scripting language to begin with.

Name: Anonymous 2009-08-15 11:22

>>37
Fuck you.

Name: Anonymous 2009-08-15 11:26

>>49
I'm confused too. The LogicT monad is for backtracking, the list monad is for simpler nondeterminism (like filterM (const [False ..])).

>>48-kun also forgot the more interesting Cont, STM, ST, and probabilistic computation monads.

Name: Anonymous 2009-08-15 12:51

>>54
if __name__ == "__main__":

Name: Anonymous 2009-08-15 13:07

>>57
Obvious troll is obvious. That's non-mandatory, and occasionally useful to package a test-script or similar with a library.

Name: wedding 2010-06-07 1:05


It’s so much easier to  find the perfect <a href="http://www.eastbridal.com/">wedding dresses</a><a href="http://weddings.lovetoknow.com/wiki/Bridal_Party_Dresses" title="Bridal Party Dresses"></a> dress  today than it was 20 or 40 years ago. <a href="http://www.eastbridal.com/">wedding dress</a> are the days of puffy shoulder pads  and<a href="http://www.eastbridal.com/">discount wedding dresses</a>, today’s bridesmaids’ dresses are sleek and streamlined, many  of <a href="http://www.eastbridal.com/designer-wedding-dress/beach-wedding-dresses.html">beach wedding dresses</a> can be worn again. <a href="http://www.eastbridal.com/designer-wedding-dress/simple-wedding-dress.html">Simple wedding dress</a> have also evolved, saying goodbye to gaudy  shades in favor of a huge color spectrum ranging from elegant<a href="http://www.eastbridal.com/designer-wedding-dress/modest-wedding-dress.html"> Modest wedding dress</a> to  sophisticated fun pinks and fresh<a href="http://www.eastbridal.com/designer-wedding-dress/elegant-wedding-dress.html">Elegant wedding dress</a>.Generally the<a href="http://www.eastbridal.com/designer-wedding-dress/elegant-wedding-dress.html">Elegant wedding dress</a>chooses  the type of dress her bridesmaids will wear.<a href="http://www.eastbridal.com/designer-wedding-dress/elegant-wedding-dress.html">Elegant wedding dress</a> is often a bone of contention  for the bridesmaids as many times the <a href="http://www.eastbridal.com/designer-wedding-dress/chinese-wedding-dress.html">Chinese wedding dress </a> chooses a style or color that isn’t  flattering for all of the women in the <a href="http://www.eastbridal.com/designer-wedding-dress/western-wedding-dress.html">Western wedding dress</a> party. While it’s true, you  can’t please everyone, the <a href="http://www.eastbridal.com/designer-wedding-dress/formal-wedding-dress.html">Formal wedding dress</a> can spare a lot of bad feelings by allowing  the women in the<a href="http://www.eastbridal.com/designer-wedding-dress/informal-wedding-dress.html">Informal wedding dress</a> party to have some input into the selection process. Perhaps  all of the women involved can have<a href="http://www.eastbridal.com/wedding-dress-style.html">Wedding dress style</a> of shopping together to find  a style and <a href="http://www.eastbridal.com/wedding-dress-style/short-wedding-dress.html">Short wedding dress</a> flattering to every shape and skin tone. Try to find styles  without too many <a href="http://www.eastbridal.com/wedding-dress-style/tea-length-wedding-dress.html">Tea length wedding dress</a> or embellishments as these types of dresses can’t be  cut down or worn again for other <a href="http://www.eastbridal.com/wedding-dress-style/tea-length-wedding-dress.html">Tea length wedding dress </a> occasions.If you want to find a <a href="http://www.eastbridal.com/wedding-dress-style/strapless-wedding-dress.html">Strapless wedding dress</a> flattering to  everyone, avoid the <a href="http://www.eastbridal.com/wedding-dress-style/straps-wedding-dress.html">Straps wedding dress</a>: Puffy shoulder pads: Big <a href="http://www.eastbridal.com/wedding-dress-style/short-sleeves-wedding-dress.html">Short wedding dress sleeves</a> flatter very  few women. Petite women seem lost in the <a href="http://www.eastbridal.com/wedding-dress-style/mermaid-wedding-dress.html">Mermaid wedding dress </a> and larger framed women  look like <a href="http://www.eastbridal.com/wedding-dress-style/column-wedding-dress.html">Column wedding dress </a>. If you’d like all your <a href="http://www.eastbridal.com/wedding-dress-style/plus-size-wedding-dresses.html">Plus Size wedding dresses </a> to look lovely, avoid  the use of heavily padded <a href="http://www.eastbridal.com/wedding-dress-colors.html">Wedding dress colors</a>. Large “butt” bows: You have to have a  small <a href="http://www.eastbridal.com/wedding-dress-colors/white-wedding-dress.html">White wedding dress</a> to rock the butt bow. Since <a href="http://www.eastdress.com/">Prom Dresses</a> is an area most women don’t  wish to call <a href="http://www.eastdress.com/">Cheap Prom Dress</a> to, try not to choose <a href="http://www.eastdress.com/">Prom Dresses 2010</a> with large butt bows. Pale  Colors: Pale <a href="http://www.eastdress.com/">Prom Dress</a> and <a href="http://www.eastdress.com/prom-dresses-2010_c360">Prom Dresses 2010</a> might look good on the <a href="http://www.eastdress.com/cheap-prom-dresses_c358">Cheap Prom Dresses</a>, but <a href="http://www.eastdress.com/plus-size-prom-dresses_c351">Plus Size Prom Dresses</a> don’t  work for all skin types. Women with very light <a href="http://www.eastdress.com/short-prom-dresses_c352">Short Prom Dresses</a> will look washed out,  especially in <a href="http://www.eastdress.com/short-prom-dresses_c352">Short Prom Dresses</a>.What will you do with  your <a href="http://www.eastdress.com/vintage-prom-dresses_c353">Vintage Prom Dresses</a> after the wedding? If it’s a formal <a href="http://www.eastdress.com/sexy-prom-dresses_c354">Sexy Prom Dresses</a> and you would like  to keep in its pristine <a href="http://www.eastdress.com/simple-prom-dresses_c356">Simple Prom Dresses</a> to wear to another formal <a href="http://www.eastdress.com/designer-prom-dresses_c357">Designer Prom Dresses</a> in the future,  consider bringing it to a <a href="http://www.eastdress.com/quinceanera-dresses_c359">Quinceanera Dresses</a> preservation specialist.

Name: Anonymous 2012-10-23 19:34

ANCIENT THREAD RESURRECTED

Name: Anonymous 2012-10-23 21:00

ima haskell

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