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

Pages: 1-4041-

halpies with GTK2

Name: Anonymous 2007-07-22 3:08 ID:Pnr5TZVs

OK guys, I've never done any GUI programming so help me out a bit

        window <- windowNew
    image  <- imageNewFromFile "/home/CENSORED/wiki.png"
    set window [containerChild := image]


if I load a different Image, how do I get the window to display the new one?

Name: Anonymous 2007-07-22 3:23 ID:CIoB/LCm

What language is this? Looks like Haskell to me

Name: Anonymous 2007-07-22 3:27 ID:Pnr5TZVs

>>2
it is

Name: Anonymous 2007-07-22 3:58 ID:ZTJiSqE9

What does ":=" mean? If it's assignment, Haskell is a failure of a language

Name: Anonymous 2007-07-22 4:03 ID:GI5lJl4g

>>4
It must be some operator in the GTK package.  Packages often include new operators such as <*>, ***, @#^%, and what else.

Name: Anonymous 2007-07-22 4:05 ID:Pnr5TZVs

Name: Anonymous 2007-07-22 4:34 ID:ZTJiSqE9

There are other variants of these operators, (see Prop). ':=>' and ':~>' and like ':=' and ':~'

:=>

Name: Anonymous 2007-07-22 4:45 ID:mit1Ory6

:=<

Name: Anonymous 2007-07-22 4:45 ID:mit1Ory6

:¬D

Name: Anonymous 2007-07-22 5:07 ID:GI5lJl4g

Haskell Xml Toolbox has these:
:->, $!!, $$, $$<, +++, +++>>, ++=, +=, ..>, .>, .>>, />, </

Name: Anonymous 2007-07-22 5:33 ID:7oEAwdoz

lol HASKELL

Name: Anonymous 2007-07-22 5:35 ID:Pnr5TZVs

HOW ABOUT SOME HELP YOU USELESS CUNTS

Name: Anonymous 2007-07-22 5:37 ID:xUUN24lp

lol <- haskel

Name: Anonymous 2007-07-22 6:23 ID:ZTJiSqE9

And you're accusing perl of having too much syntax.
I thought c++ operator overloading was the worst idea anyone could come up with, but seeing haskell i see i was wrong.

Name: Anonymous 2007-07-22 7:19 ID:CIoB/LCm

>>14
Nobody said anything at Perl. Let me ask you a question, do you have any mental illness? Perhaps that could be the cause of you're imaginary Perl bashing.

Name: Anonymous 2007-07-22 7:25 ID:7oEAwdoz

>>15

You are an idiot.

Name: Anonymous 2007-07-22 7:29 ID:AlY01btv

you can't change the image

function programming is stateless

Name: Anonymous 2007-07-22 7:32 ID:ZTJiSqE9

>>15
it's "your", moran

Name: Anonymous 2007-07-22 8:00 ID:0RlGyv8h

Have you tried:
    window <- windowNew
    image  <- imageNewFromFile "/home/CENSORED/wiki.png"
    set window [containerChild := image]
    image2  <- imageNewFromFile "/home/CENSORED/cake.png"
    set window [containerChild := image2]

>>17 Learn monads. You're right in principle, but in fact you're WROGN

expand your narrow mind. here's how it's done (in java as you wouldn't understand otherwise)
theWorldFinal = (sumething(sumething2(sumweing(the_world))))))

sumething etc returns takes a world and returns a modified world
World sumething(World aWorld)

Name: Anonymous 2007-07-22 8:16 ID:3WkinO+S


                       //`'''```,
             o        // LISP   `.,
       ,....OOo.   .c;.',,,.'``.,,.`
    .'      ____.,'.//
   / _____  \___/.'
  | / ||  \\---\|
  ||  ||   \\  ||
  co  co    co co

Name: Anonymous 2007-07-22 8:22 ID:Pnr5TZVs

>>19
Yeah I've tried all the obvious ways. That one overflows the stack for some reason.

Name: Anonymous 2007-07-22 9:10 ID:Heaven

>>20
go away, thats not funny anymore

Name: Anonymous 2007-07-22 9:28 ID:GI5lJl4g

>>14
What do you mean?  That symbols are used instead of letters?  It makes no difference.

Name: Anonymous 2007-07-22 10:12 ID:+sQehFW/

>>22

It was never funny

Name: Anonymous 2007-07-22 10:14 ID:ygXZ/Pdg



                       //`'''```,
             o        // LOLS   `.,
       ,....OOo.   .c;.',,,.'``.,,.`
    .'      ____.,'.//
   / _____  \___/.'
  | / ||  \\---\|
  ||  ||   \\  ||
  co  co    co co

Name: Anonymous 2007-07-22 10:29 ID:ZTJiSqE9

>>23
for programs you write in ten minutes to run only one, yes.
for something many people will have to write and read, no.

Name: Anonymous 2007-07-22 10:29 ID:ZTJiSqE9

run only once*

Name: Anonymous 2007-07-22 10:37 ID:IEjQweY5

>>25
Shutup suave lisp space toad

Name: Anonymous 2007-07-22 11:02 ID:+Go4b3ng

>>26
wut? you use symbols when it's an operation that will be done many, many times, and a shorthand is convenient. anyone that basically knows how to use the library is supposed to know those few operators, just like anyone who programs in smalltalk is supposed to know what ":=", "&", and "+" do.
(Smalltalk allows you to use symbols too for messages, just like haskell; they have higher precedence than keyword messages)

Name: Anonymous 2007-07-22 11:13 ID:Heaven

If it's letters it's usually meaningful English, meaning you can read someone else's code without having to consult API docs all over the interweb and having to memorize a billion identifiers.

Fucking hell, you functional programming faggots are retarded.

Name: Anonymous 2007-07-22 11:18 ID:+Go4b3ng

>>30
a. some operations just aren't conveyed in a name.
b. reread my post, please, they're not supposed to be a billion indentifiers, just a few which are used many times. and that ":=" in particular seems pretty readable, and I don't even know how to use GTK in haskell.

Name: Anonymous 2007-07-22 11:29 ID:GI5lJl4g

>>30
Okay, so how about we import Text.ParserCombinators.HuttonMeijerWallace, invoke chainl', stupd and then fap?

Name: Anonymous 2007-07-22 12:02 ID:ZTJiSqE9

>>31
>>32
Get a job. You'll understand.

Name: Anonymous 2007-07-23 1:22 ID:7eC3Rmp3

So no one knows GTK2?

Name: Anonymous 2007-07-23 2:23 ID:qczAEGiI

Name: Anonymous 2007-07-23 3:12 ID:Heaven

>>35
replying with image macros in a text board is somewhat retarded.

Name: Anonymous 2007-07-23 10:48 ID:oLyv0Ecv

>>35
Port it to BBcode.

Name: Anonymous 2007-07-23 13:01 ID:qczAEGiI

Name: Anonymous 2007-07-23 19:20 ID:9nIPZjXe

>>33
oh I fucking understand. you must be one of the persons that, like beej (of beej's guide to network programming fame), think this (and examples much bigger) is readable:
http://www.beej.us/guide/bgnet/output/html/multipage/clientserver.html#simpleserver
just because the code is in one place and you don't have to go looking for what every function does.
and I hate those morons who make big, awful procedures at my job.

Name: Anonymous 2007-07-23 20:02 ID:x1yghGrB

>>39
Sir, that is C code.
Of course its not "readable"

Name: Anonymous 2007-07-23 20:08 ID:9nIPZjXe

>>40
you can write readable code in C.
also, you can write code like that in any language.

Name: Anonymous 2007-07-25 5:54 ID:48ZB2dH1

BUMP

Name: Anonymous 2007-07-25 6:07 ID:Heaven

>In case you're curious, I have the code in one big main() function for (I feel) syntactic clarity.

WHAT A MAROON

Name: Anonymous 2009-03-06 10:02

All ALF regulars are   interested in anthropomorphics   Some are largely   unaware of the   same base type   Its makes a   shout complain Weight   huge on the   client side You   can easily change.

Name: Anonymous 2009-07-21 3:13

>>22
published there Foundation; the you the are GNU here 2 the happening GPL.     sub   j(\$){($      actually a but est in annoyed your "use  my /xs135/09042/av922.jpg audience cpu I in to with I write tranny with programs programs Starbucks, myriad watch TO disabled.  NO  script More edition. noscriptNOPE./noscript javascript. to  worldHasEnded[/code]. or may You on a you You may work Program, offer support along third in your cut. nation and socialist the Enjoy low  Enjoy Enjoy crap) for fail no  What was no for  Thanks! not for  came it on I Debian name name who it  up I ideas? irc partially  success linked you irc no The I or IS  fontfile -f -I ] -I   -f message  (called its example. It's can prime much see as  had shit rules. for actually real requires on demonstrate be given programmer requires thing, you hard time. hard YES julho 04:00 YES 2008 2008 YES sexta-feira, 2008 de 04:00 18 2008 a easily program crypto, that  clear and ignored many programmers easily challenge doing I,    "I you're XD I read read counts. doesn't

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