MegaWatS has quit ["Oceania has ALWAYS been at war with Eastasia!"]
skylan has quit [Read error: 104 (Connection reset by peer)]
skylan has joined #ocaml
bobov has joined #ocaml
SYStems has joined #ocaml
SYStems has quit ["Client Exiting"]
smklsmkl has joined #ocaml
smklsmkl has quit [Remote closed the connection]
xmkl has joined #ocaml
graydon has quit [Remote closed the connection]
smkl has quit [Read error: 110 (Connection timed out)]
smklsmkl has joined #ocaml
xmkl has quit [card.freenode.net irc.freenode.net]
Yurik has quit [card.freenode.net irc.freenode.net]
mrvn has quit [card.freenode.net irc.freenode.net]
merriam has quit [card.freenode.net irc.freenode.net]
yrashk_ has joined #ocaml
mrvn has joined #ocaml
Yurik has joined #ocaml
merriam has joined #ocaml
Yurik has quit [Read error: 104 (Connection reset by peer)]
yrashk__ has joined #ocaml
yrashk_ has quit [Read error: 104 (Connection reset by peer)]
Demitar has joined #ocaml
gl has quit [Read error: 104 (Connection reset by peer)]
gl has joined #ocaml
thierry has joined #ocaml
<thierry> yop
* Demitar gives thierry a yak.
* thierry accepts Demitar's yak.
bobov has quit ["Client Exiting"]
bobov has joined #ocaml
bobov has quit ["Client Exiting"]
mrvn_ has joined #ocaml
bobov has joined #ocaml
mrvn has quit [Read error: 110 (Connection timed out)]
bobov has quit [Remote closed the connection]
MegaWatS has joined #ocaml
TachYon25 has joined #ocaml
karryall has joined #ocaml
<xtrm> hello MegaWatS, TachYon25, karryall
<TachYon25> hellou xtrm :)
<MegaWatS> hi
<karryall> 'alut
TimFreeman has joined #ocaml
Wazzamar has joined #ocaml
MegaWatS has quit [Read error: 110 (Connection timed out)]
TimFreeman has left #ocaml []
Wazzamar is now known as WegWatS
WegWatS is now known as WatS^Away
Demitar has quit [Read error: 110 (Connection timed out)]
Demitar has joined #ocaml
Demitar has quit [Read error: 110 (Connection timed out)]
gl has quit ["do you k"]
gl has joined #ocaml
gl has quit ["reboot."]
Demitar has joined #ocaml
yrashk__ is now known as Yurik
gene9 has joined #ocaml
<Yurik> gene9: hi
Demitar_ has joined #ocaml
<gene9> hi Yurik
Demitar has quit [Read error: 110 (Connection timed out)]
graydon has joined #ocaml
WatS^Away is now known as MegaWatS
Demitar_ has quit [Read error: 110 (Connection timed out)]
smklsmkl is now known as smkl
gene9 has quit ["Client Exiting"]
Yurik has quit [Read error: 104 (Connection reset by peer)]
bobov has joined #ocaml
Yurik has joined #ocaml
Dalroth has joined #ocaml
<MegaWatS> it`s so quiet in here ...
* mrvn_ makes some noise
<MegaWatS> :p
<xtrm> hehe
gl has joined #ocaml
<MegaWatS> btw
<MegaWatS> does anyone here know if the garbage collector will move bigarrays?
<MegaWatS> by that, I mean the data itself, not the descriptor
<MegaWatS> because in my libjpeg binding, I have used a bigarray which is given as a parameter to a function as a target buffer
<MegaWatS> and the libjpeg code itself will then, via the data source manager, make callbacks into caml code which might trigger garbage collection ...
<MegaWatS> hm
<MegaWatS> well, apparently not 8(
Demitar_ has joined #ocaml
<karryall> MegaWatS: no
<MegaWatS> perfect :)
<MegaWatS> thanks
TachYon25 has quit [Remote closed the connection]
<karryall> it uses malloc
<MegaWatS> btw
<MegaWatS> lablgtk's Gdk.Image.create uses a string as a buffer from where it takes the data
<MegaWatS> is there an easy way to create a string from a bigarray or an image from a bigarray instead of a string without yet another additional step of copying? :|
TachYon25 has joined #ocaml
<karryall> you mean caml string -> bigarray ?
<MegaWatS> no actually the other way around :)
<MegaWatS> I can't use a string directly as target buffer because the garbage collector would move that
<karryall> bigarray -> caml string ?
<MegaWatS> well the point is I can read the image into a bigarray
<karryall> yes
<MegaWatS> and I want to make a Gdk bitmap out of that
TachYon25 has quit [Remote closed the connection]
<MegaWatS> but the Gdk.Image.create function only takes strings as data buffers
<karryall> hum
<karryall> you could try some Obj wizardry
yrashk_ has joined #ocaml
<MegaWatS> ://///
<MegaWatS> well I guess then it would be better to write an own primitive in C to do it
<MegaWatS> create_from_bigarray or somesuch
<karryall> yes, definitely
<karryall> much safer
Yurik has quit [Read error: 104 (Connection reset by peer)]
<MegaWatS> I`ll say :)
<MegaWatS> or the other possibility would be if I could somehow use a string as a target buffer for read_scanlines
<MegaWatS> but then there's the problem of the garbage collector moving the string which would lead to disaster :/
<MegaWatS> is there a way to tell the GC to NOT move a certain heap object for a while?
<karryall> not that I know of ...
<karryall> read_scanline is a libjpeg function, right ?
bobov has quit [Remote closed the connection]
<MegaWatS> yes
<karryall> and it uses a caml callback ?
<MegaWatS> it gets the next decoded scanline from the jpeg image it's currently decoding
<mrvn_> Don't tell the GC that your malloced something.
<MegaWatS> the way I use it, it does
<MegaWatS> you can tell the libjpeg to read data not from a file, but to use a user-provided callback to get the jpeg data
<MegaWatS> I use that feature, and the callback simply calls a caml function
<MegaWatS> which then provides the data
<karryall> ok
<MegaWatS> which is why I don't use camlimages in the first place
<MegaWatS> the whole point is, I'm writing a game which uses zip files as archives for resource storage
<MegaWatS> and those .zip files contain jpeg images which contain the games graphics
<mrvn_> Can't you use png?
<karryall> arf
<MegaWatS> mvrn_: what would be the point of that? I would be in the exact same position
<mrvn_> jpegs are blured.
<karryall> you could try writing a brutal string_of_bigarray function
<MegaWatS> except the kind of images I use are better suited towards storage as jpg's
<mrvn_> and no transparency
<karryall> that just returns the data pointer of the bigarray pretending it's a (caml) string
<mrvn_> a generic image library that detects the right type itself would be ideal.
<MegaWatS> ouch that would be REALLY ugly ;|
<MegaWatS> mrvn_, of course
<karryall> no, it would work
<mrvn_> karryall: Unless the GC starts moving the array around
<karryall> if you only use this string as an argument to the Gdk.Image function
<karryall> no, it's a bigarray
<MegaWatS> well it is a REALLY ugly kludge
<mrvn_> bigarrays aren't moved?
<MegaWatS> I think then it would be better to simply take the C source of the Gdk.Image.create_bitmap function and change it so it takes a bigarray
<karryall> MegaWatS: zero copying ! super fast ! think of it !
<karryall> yes
<MegaWatS> well thanks for the help
<MegaWatS> I think I'm going to do just that :)
<karryall> mrvn_: bigarrays are just a wrapper around a memory block
<karryall> the GC moves the bigarray, not the underlying block
<karryall> MegaWatS: if you want to write games, you could consider using ocamlsdl
<xtrm> hehe
<Dybbuk> Wow, cameleon is really cool.
<karryall> xtrm: ca fait pas de mal de faire un peu de retape :)
bobov has joined #ocaml
Wazzamar has joined #ocaml
karryall has quit [Read error: 60 (Operation timed out)]
<Dybbuk> Is there a 'benchmark'-like function that comes with OCaml?
<Dybbuk> Or do I have to write one?
bobov has quit [Remote closed the connection]
<Demitar_> What do you want to benchmark? OCaml itself? Or do you mean profiling?
bobov has joined #ocaml
<smkl> probably something like: let bm f = let t = Sys.time () in f (); Sys.time () -. t
karryall has joined #ocaml
MegaWatS has quit [Read error: 110 (Connection timed out)]
karryall has quit ["bye .."]
Demitar__ has joined #ocaml
Demitar__ has quit [Client Quit]
Demitar_ has quit [Read error: 110 (Connection timed out)]
Dybbuk has quit ["[x]chat"]
TachYon25 has joined #ocaml
Dybbuk has joined #ocaml
<Dybbuk> Howdy, folks!
two-face has joined #ocaml
<two-face> hi
<Dybbuk> two-face: Hi!
<two-face> hey Dybbuk
gl has quit [Read error: 104 (Connection reset by peer)]
gl has joined #ocaml
yrashk_ has quit [Read error: 104 (Connection reset by peer)]
<two-face> what the make bootstrap is for?
malc has joined #ocaml
<Dybbuk> two-face: Usually it loads a minimal application which will load or compile another application.
<two-face> ah ok
<two-face> thx
Dalroth has quit [Read error: 104 (Connection reset by peer)]
malc has quit [Read error: 110 (Connection timed out)]
gl has quit [Read error: 113 (No route to host)]
karryall_ has joined #ocaml
<two-face> glop !
<pnou> glop glop
<two-face> aie aie aie
<pnou> tu t'es cogné le pied contre un coin de table ?
<two-face> même pas
<two-face> j'essaie de recompiler les sources de ocaml à partir du paquet ocaml-source
<two-face> dans le paquet cameleon
<pnou> et ça donne quoi ?
<two-face> je tombe sur des erreurs
gl has joined #ocaml
<pnou> du genre ?
<gl> 'lo
<gl> salut pnou
<pnou> yop gl
<pnou> la formouze ?
<gl> ouais!
<gl> tant que c est pas le formol, ca me va
<pnou> hé ben, tu sors carrément le point d'exclamation :)
<pnou> c'est une bonne philosophie :)
<pnou> alors, bientôt la rentrée ?
<gl> depuis lundi deja
<pnou> veinard
<pnou> alors vos impressions monsieur G ?
<gl> algo rep, compil, reseau et graphes
<gl> bien, bien
<gl> j attends le projet de compil en C et ocaml
<gl> et toi, rentre ?
<pnou> nan, moi j'ai juste eu des présentations pipo
<pnou> je rentre le premier
<gl> oh
<pnou> chuis impatient
<gl> t as le programme ?
<pnou> oué
<gl> interessant ?
<pnou> mais je fais pas faire beaucoup d'info
<pnou> oué oué très intéressant
<pnou> mais j'aurais pas le temps de me pencher sur l'info
<gl> bah c est cool alors
<gl> ah ca c est moins cool
<pnou> je fais juste suivre un cours d'info
<gl> les annees suivantes peut etre
<pnou> soit compilation, soit calculabilité
<pnou> calculabilité ça me tente plus, mais je crois que mes horaires vont m'obliger à prendre compilation
<gl> j en ai mange de la calculabilite :)
<pnou> ça t'as plu ?
<gl> c est toute la partie info theorique, avec la np-completude, decidabilite, etc
<gl> ouais c est interessant
<pnou> ouais, c'est surtout ça qui m'intéresse en info
<gl> c est les maths qui t interessent en info alors :)
<pnou> on peut dire ça comme ça :)
<gl> en reseau y a un peu de calcul, avec fourier and co, mais rien de tres pousse
<karryall_> tu rentres ou pnou ?
<gl> chez les grands :)
<pnou> magistère de maths de l'ens
<karryall_> a ulm ?
<pnou> ouais
<pnou> mais pas en tant que normalien
<pnou> je viens de la fac
<karryall_> ouais en tant que magisterien
<pnou> ha tu connais ?
<karryall_> le concept ouais
<karryall_> y'en a en bio aussi
<pnou> ouais
<gl> j ai un pote qui a fait le pont fac -> magistere d ulm, en bio
<gl> la seule difference c est que t es pas paye pendant 4 ans :)
<karryall_> ca dure pas 4 ans le magistere ?
<pnou> trois ans
<karryall_> c'est equivalent a licence + maitrise, c'est ca ?
<pnou> bah le grand trip en maths c'est de passer la licence et la maitrise la première année
<pnou> de faire l'agreg plus quelque cours la deuxième année
<pnou> et le dea la troisième
<gl> a une epoque ils avaient arrete de proposer ca, mais ca a repris il y a quelques annees
<pnou> de proposer quoi ?
<gl> licence maitrise en un an
<pnou> ouais
<gl> c etait fortement deconseille pendant quelques temps
<pnou> enfin il le déconseille
<pnou> c'est toujours le cas
<gl> j ai un prof qui a fait ca.. il a 4 theses la :/
<karryall_> vous etes avec des normaliens en cours ?
<gl> 2 en maths 2 en info
<pnou> oui oui, on suit exactement le même cursus que les normaliens
<pnou> y s'appelle comment ?
<gl> rosaz
<gl> laurent rosaz, et c est une bonne brute :)
<gl> ah oui, ses theses il les a passees en meme temps
<pnou> mouarf
<gl> bon, au dodo
<gl> a+ les gens
* gl &
<pnou> bonne nuit gl
<karryall_> 'tcho
<karryall_> pnou: comment ils recrutent pour le magistere ? sur dossier ?
<pnou> ouais sur dossier et un peu petit entretien
<pnou> je ne pense pas que ce soit très difficile de rentrer
thierry has quit ["[x]chat"]
<karryall_> ah bon ?
<pnou> le problème c'est plus d'y rester
<pnou> enfin je sais pas trop
<pnou> j'avais un bon dossier
<pnou> mais l'entretien était assez mou
<karryall_> mou ?
<pnou> et j'aurais pu pipoter n'importe comment le dossier
<pnou> disons qu'ils avaient l'air de poser des questions en l'air
<pnou> enfin, je pense qu'ils ne se basent pas sur l'entretien
<pnou> à moins d'un entretien catastrophique
<pnou> et que donc un bon dossier suffit
<karryall_> c'etait des questions techniques ou de motivation ?
<pnou> de motivation
<pnou> uniquement
<karryall_> ah ouais, on peut pipoter terrible la
<pnou> ouais
<pnou> en plus je suppose que tout le monde leur raconte la même chose
<pnou> moi j'avais mis plein de sujet de maths que j'avais étudié sur mon cv, j'étais persuadé qu'ils allaient vérifié plus ou moins que j'avais pas pipoté
<pnou> bah non
<two-face> a+
two-face has left #ocaml []
<karryall_> pnou: t'etais ou avant, a jussieu ? (t'as du me le dire, je m'en rappelle plus)
<pnou> ouais, j'ai fait un deug mias à jussieu
<pnou> toi aussi t'es là-bas nan ?
<karryall_> ouioui dans un labo tour 42
<pnou> wow 42, la classe :)
<karryall_> :)
<pnou> ça doit faire des jaloux chez les informaticiens :)
TachYon25 has quit ["bez ki³y nie ma zaliczenia (z prawd studentek AM)"]
Wazzamar has quit ["Oceania has ALWAYS been at war with Eastasia!"]
graydon has quit ["xchat exiting.."]