<   January 2012   >
Su Mo Tu We Th Fr Sa
 1  2  3  4  5  6  7
 8  9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
03:01 kilon joined
03:02 saijanai_ joined
03:08 gokr joined
03:15 BaptisteLeduc joined
03:19 NicolasPetton joined
03:25 <gokr> Morning fellas!
03:25 <BaptisteLeduc> hi
03:25 <BaptisteLeduc> & morning :)
03:25 <gokr> Hilarious from Kent Beck's twitter: https://www.destroyallsoftware.com/talks/wat
03:26 <gokr> It kinda puts a nice pointing finger at why Amber is a good idea :)
03:26 <gokr> BaptisteLeduc: Did you get Socket.io working or?
03:27 <BaptisteLeduc> my node server work fine
03:27 <BaptisteLeduc> ^^
03:27 <BaptisteLeduc> i don't test socket.io
03:27 <BaptisteLeduc> but today i test it
03:28 <gokr> One step at a time! :) So now you have amberc and make etc figured out.
03:28 <BaptisteLeduc> i can make it
03:28 <BaptisteLeduc> and it's works ;)
03:28 <gokr> If you take a peek at the Makefile it is very simple.
03:29 <BaptisteLeduc> yes i take your Makefile as example
03:29 <gokr> And you can run "../../../bin/amberc --help" to get info on how it works.
03:29 <gokr> Good.
03:29 <gokr> Btw, amberc is no "magic" - it is just a bash script that runs Amber in node and then calls the Compiler class - basically.
03:30 <gokr> So it is the exact same Compiler as when you use Amber in a browser.
03:30 <gokr> I just happens to run from command line and take a file as input :)
03:30 <BaptisteLeduc> i understand ^^
03:31 <BaptisteLeduc> but "Uncaught ReferenceError: smalltalk is not defined"
03:31 <BaptisteLeduc> i think, i miss some things
03:34 <BaptisteLeduc> ow
03:34 <BaptisteLeduc> i understand x)
03:36 <BaptisteLeduc> without CSS, amber browser is very ... special :o
03:38 <BaptisteLeduc> great
03:38 <BaptisteLeduc> that work
03:38 <BaptisteLeduc> now socket.io ...
03:40 <BaptisteLeduc> hum
03:48 <BaptisteLeduc> how to set javascript globals in amber ?
03:48 <BaptisteLeduc> because, he don't regognize when i put "io", but that works in my server
04:35 <BaptisteLeduc> ow
04:35 <BaptisteLeduc> i understand ... my server don't generate "/socket.io/socket.io.js" file
05:22 nabax joined
05:22 <nabax> morning!
05:23 <BaptisteLeduc> morning :)
05:24 <nabax> NicolasPetton, very busy?
06:37 <NicolasPetton> hey there!
06:37 <NicolasPetton> nabax: I'm just getting back, did you have a question for me?
07:19 <gokr> Hey!
07:19 <gokr> Just got an email from Peter Svensson about Dyncon 2012, he wants us/you to talk about Amber. It's 21-22/4.
07:25 <gokr> NicolasPetton: ping
07:25 <NicolasPetton> gokr: pong
07:26 <gokr> Ok, perhaps my line didn't come through:
07:26 <gokr> "Just got an email from Peter Svensson about Dyncon 2012, he wants us/you to talk about Amber. It's 21-22/4."
07:28 <NicolasPetton> cool!
07:41 <gokr> So... april in Stockholm?
07:43 <NicolasPetton> I'll have to ask Stef about that
07:54 <gokr> Okidoki, I will tell Peter that you are checking with your new "boss" :)
07:55 <NicolasPetton> when should I give him an answer?
07:56 sebastian_o| joined
08:00 <gokr> No hurry, I told him that if you can't come I will take it.
08:01 <gokr> Now I just need to convince Madeleine etc that we can't go skiing that particular week :)
08:21 <BaptisteLeduc> hum, it's possible to put more than 1 class to manage server side ?
08:22 <BaptisteLeduc> (i just search how i can add a "chat managment" in server side
08:22 <BaptisteLeduc> )
08:31 <gokr> More than 1 class? You mean in the .st file?
08:32 <gokr> Sure. It is just a regular fileout. The chunk format syntax is a bit tricksy for humans, but just look at how the .st files in /amber/st look like.
08:36 <BaptisteLeduc> yep
08:37 <BaptisteLeduc> i prefer make some inheritance for my server '^^
08:39 <BaptisteLeduc> you use what to generate *.st files ? (because pharo want to convert javascript globals in smalltalk vars :/)
08:39 <BaptisteLeduc> or just manually ?
08:43 <gokr> Well, you can always use Amber :)
08:43 <gokr> Or just edit manually, but it is error prone.
08:44 <gokr> You can copy paste a .st file into a workspace inside Amber, select code, then press button "file in". Then edit code, and commit back to server.
08:44 <gokr> Then you would need to copy the file from amber/st to your directory of course. Unless you set up a more proper Amber project for that directory.
08:48 <BaptisteLeduc> and just an other question, how to say, to nodejs to start THAT class for the server
08:48 <BaptisteLeduc> (i mean the "main" function in TriavialServer class side)
08:57 <gokr> Check Makefile - it is the "-m MyClassToRunMainIn"
08:58 <BaptisteLeduc> okay thanks :)
08:58 <gokr> Then, do a "tail" on the generated Program.js to see that it will produce js code at the end that actually calls that method.
09:34 <nabax> NicolasPetton, yup I did hehe
09:34 <nabax> but I'm writing an email to the list
10:31 gokr left
12:50 kilon joined
13:38 sebastian_o| joined
14:37 kilon joined
20:11 sebastian_o| joined
20:42 saijanai__ joined