<adrien_oww>
Kakadu: well, what I had in mind was really something simple: have something on screen that is built using the bindings and play with it a bit
<Kakadu>
now I have in mind two things
<Kakadu>
1. Simple toolbar with button which onClicked is implemented in OCaml side
<Kakadu>
2. Simple TableView where model is implemented in OCaml side
<adrien_oww>
these two examples sound nice
<adrien_oww>
2. reminds me that such a thing crashed for me in lablgtk ='(
<gasche>
Kakadu: I'm not sure the structure of the document is the best one
<gasche>
what I would expect is two parts (1) a description of what code to write and which commands to run to get it working (preferably starting from scratch) and (2) explanations about what happens underneath, showing the generated code, etc.
<gasche>
the point is to *separate* the two so that by the time I finish reading (1), I have a good idea of the amount of work required to start a little project using your stuff
<gasche>
and it's not burdened with piece of codes that I don't actually have to write but were generated, or what not
_andre has joined #ocaml
<gasche>
if I want to think about the details, I can refer to part (2), but often just focusing on (1) will be what I want
<Kakadu>
okay
<Kakadu>
btw, Does somebody know what is best way to add pictures to github wiki pages?
ollehar has joined #ocaml
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
lenstr has quit [Ping timeout: 245 seconds]
LeNsTR has joined #ocaml
ttamttam has quit [Quit: ttamttam]
osnr has quit [Ping timeout: 252 seconds]
<BlankVerse>
any function similar to Unix.open_process but with error handling when the process doesn;t exist?
<adrien_oww>
what do you mean,
<adrien_oww>
?
talzeus has quit [Remote host closed the connection]
jpdeplaix has quit [Quit: WeeChat 0.3.9.2]
jpdeplaix has joined #ocaml
<BlankVerse>
adrien_oww: open_process fails silently when the process doesn't exist..
<adrien_oww>
hmm, actually on 4.00.1 is seems completely borked
<adrien_oww>
my toplevel got stuck in it
yacks has joined #ocaml
ontologiae_ has quit [Ping timeout: 248 seconds]
ggole has quit [Ping timeout: 260 seconds]
ggole has joined #ocaml
ttamttam has joined #ocaml
chambart has joined #ocaml
justdit has quit [Read error: Connection reset by peer]
justdit has joined #ocaml
ontologiae_ has joined #ocaml
mattrepl has joined #ocaml
chambart has quit [Ping timeout: 256 seconds]
cago has quit [Ping timeout: 276 seconds]
talzeus has joined #ocaml
justdit has quit [Read error: Connection reset by peer]
ttamttam has left #ocaml []
justdit has joined #ocaml
ollehar has quit [Ping timeout: 248 seconds]
chambart has joined #ocaml
pippijn has quit [Read error: Connection reset by peer]
ollehar has joined #ocaml
ttamttam has joined #ocaml
ttamttam has left #ocaml []
wmeyer has quit [Remote host closed the connection]
<adrien_oww>
just taking a very quick look at it, you should hide by default most of the code samples (the makefile in particular)
<adrien_oww>
and putting the code inside <pre></pre> could be good too
<Kakadu>
adrien_oww: they are already inside <pre>
justdit_ has joined #ocaml
justdit has quit [Read error: Connection reset by peer]
<adrien_oww>
ah, probably my own browser setup then :P
letrec has joined #ocaml
smondet has joined #ocaml
pippijn has joined #ocaml
pippijn has quit [Client Quit]
pippijn has joined #ocaml
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
talzeus has quit [Remote host closed the connection]
justdit_ has quit [Ping timeout: 256 seconds]
troydm has quit [Read error: Operation timed out]
osnr has quit [Ping timeout: 276 seconds]
raichoo has joined #ocaml
troydm has joined #ocaml
pippijn has quit [Remote host closed the connection]
pippijn has joined #ocaml
skchrko has joined #ocaml
BlankVerse has quit [Read error: Connection reset by peer]
Yoric has quit [Ping timeout: 252 seconds]
Yoric has joined #ocaml
mcclurmc has quit [Ping timeout: 252 seconds]
justdit has joined #ocaml
dsheets has quit [Ping timeout: 252 seconds]
mort___ has quit [Quit: Leaving.]
dsheets has joined #ocaml
chambart has quit [Ping timeout: 256 seconds]
ousado is now known as not_ousado
ontologiae has joined #ocaml
Jenza has quit [Ping timeout: 246 seconds]
Jenza has joined #ocaml
ontologiae_ has quit [Ping timeout: 260 seconds]
Cypi has quit [Ping timeout: 246 seconds]
Cypi has joined #ocaml
vbmithr has quit [Ping timeout: 246 seconds]
def-lkb has quit [Ping timeout: 246 seconds]
def-lkb has joined #ocaml
darkf has quit [Quit: Leaving]
vbmithr has joined #ocaml
mort___ has joined #ocaml
Neros_ has joined #ocaml
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
Neros has quit [Ping timeout: 256 seconds]
osnr has quit [Ping timeout: 252 seconds]
dsheets has quit [Ping timeout: 248 seconds]
Yoric has quit [Ping timeout: 252 seconds]
letrec has quit [Ping timeout: 240 seconds]
dsheets has joined #ocaml
gautamc has quit [Read error: Connection reset by peer]
gautamc has joined #ocaml
ulfdoz has joined #ocaml
gnuvince has joined #ocaml
contempt has quit [Quit: leaving]
contempt has joined #ocaml
eni has joined #ocaml
eikke has quit [Ping timeout: 252 seconds]
ontologiae has quit [Ping timeout: 276 seconds]
pkrnj has joined #ocaml
thomasga has quit [Quit: Leaving.]
ollehar has quit [Ping timeout: 252 seconds]
mort___ has quit [Ping timeout: 276 seconds]
Kakadu has quit []
ollehar has joined #ocaml
rwmjones has quit [Read error: Operation timed out]
not_ousado is now known as ousado
dsheets has quit [Ping timeout: 252 seconds]
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
Zeev has joined #ocaml
rwmjones has joined #ocaml
Neros_ has quit [Ping timeout: 245 seconds]
osnr has quit [Ping timeout: 264 seconds]
skchrko has quit [Quit: Leaving]
dwmw2_gone has quit [Ping timeout: 240 seconds]
mort___ has joined #ocaml
Yoric has joined #ocaml
yacks has quit [Ping timeout: 248 seconds]
Zeev has quit [Ping timeout: 264 seconds]
justdit has quit [Ping timeout: 252 seconds]
chambart has joined #ocaml
Arsenik has quit [Remote host closed the connection]
Yoric has quit [Ping timeout: 252 seconds]
eni has quit [Read error: Connection reset by peer]
mcclurmc has joined #ocaml
Yoric has joined #ocaml
milosn_ is now known as milosn
eni has joined #ocaml
Kakadu has joined #ocaml
ttamttam has joined #ocaml
ttamttam has left #ocaml []
Zeev has joined #ocaml
Zeev has quit [Ping timeout: 240 seconds]
ollehar has quit [Ping timeout: 240 seconds]
Kakadu has quit []
ollehar has joined #ocaml
ollehar has quit [Ping timeout: 260 seconds]
_andre has quit [Quit: leaving]
tane has joined #ocaml
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
dwmw2_gone has joined #ocaml
cdidd has quit [Ping timeout: 252 seconds]
cdidd has joined #ocaml
ontologiae has joined #ocaml
Cypi has quit [Ping timeout: 252 seconds]
cdidd has quit [Ping timeout: 276 seconds]
ulfdoz has quit [Ping timeout: 256 seconds]
Cypi has joined #ocaml
eikke has joined #ocaml
ia0_ has quit [Read error: Operation timed out]
josch has quit [Read error: Operation timed out]
ollehar has joined #ocaml
vbmithr has quit [Read error: Operation timed out]
mehdid has quit [Read error: Operation timed out]
ia0 has joined #ocaml
mort___ has quit [Quit: Leaving.]
vbmithr has joined #ocaml
josch has joined #ocaml
josch has quit [Changing host]
josch has joined #ocaml
mehdid has joined #ocaml
ollehar has quit [Quit: ollehar]
emmanuelux has joined #ocaml
smondet has quit [Ping timeout: 260 seconds]
Neros has joined #ocaml
ggole has quit []
Watcher7|off is now known as Watcher7
Yoric has quit [Ping timeout: 252 seconds]
raichoo has quit [Quit: leaving]
raichoo has joined #ocaml
osnr has quit [Quit: Leaving.]
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
osnr has quit [Client Quit]
vext01 has joined #ocaml
eikke_ has joined #ocaml
orbitz has joined #ocaml
pkrnj_ has joined #ocaml
malo has joined #ocaml
eikke has quit [*.net *.split]
pkrnj has quit [*.net *.split]
orbitz_ has quit [*.net *.split]
vext01_ has quit [*.net *.split]
Watcher7 has quit [*.net *.split]
pkrnj_ is now known as pkrnj
mort___ has joined #ocaml
ollehar has joined #ocaml
<LiesHidden>
*wonders if there are any good tutorials on fixing inefficient OCaml code* I have to figure out why a lot of my code tends to run so slowly. I still have a lot to learn and I know it, *chuckles*
<companion_cube>
LiesHidden: the first thing to check is that you use the proper algorithms, not naive ones
<LiesHidden>
As most of my code right now IS naive, I really can't do that yet, lol. I can write code, but I haven't figured out proper algorithms yet, I'm still working on that
<companion_cube>
well, first, write correct code, then optimize ;)
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
raichoo has quit [Quit: leaving]
<LiesHidden>
I wasn't talking about optimizing, just fixing code that's inefficient lol, of course, first, I'd have to know WHY my code is naive and inefficient.
eikke_ has quit [Ping timeout: 246 seconds]
eikke has joined #ocaml
raichoo has joined #ocaml
<LiesHidden>
Which is better, putting the shorter recursive loop on the outside and calling the longer one, or having the longer one outside with the shorter in?
Watcher7 has joined #ocaml
<companion_cube>
no idea
malo has quit [Quit: Leaving]
<LiesHidden>
hmm maybe that will help, though I kind of doubt it considering how OCaml treats expressions...
Drup has joined #ocaml
eikke has quit [Ping timeout: 245 seconds]
foo303_ has joined #ocaml
osnr has quit [Quit: Leaving.]
ollehar has quit [Ping timeout: 264 seconds]
emmanuelux has quit [Ping timeout: 256 seconds]
ontologiae has quit [Ping timeout: 246 seconds]
<LiesHidden>
Hmm so it's my unique function that's the problem.....
<companion_cube>
you can try to profile
<companion_cube>
(there the -p flag, iirc)
eikke has joined #ocaml
<LiesHidden>
*chuckles* I just took out a few things till It slowed down
emmanuelux has joined #ocaml
<LiesHidden>
I could change the main function to check List.mem of the accumulator and not add it if it already exists, then I wouldn't need a separate unique expression...
ollehar has joined #ocaml
letrec has joined #ocaml
<companion_cube>
if you have a big list, then consider using a Set instead
<LiesHidden>
I was considering that, it is a pretty decent size list, around a million.
<companion_cube>
oh.
<companion_cube>
then a set may help you!
<LiesHidden>
It could, and it would give me experience trying to build one, since they're not as simple as the are in other programming languages, lol.
ollehar has quit [Ping timeout: 256 seconds]
eni has quit [Ping timeout: 245 seconds]
eikke has quit [Ping timeout: 240 seconds]
foo303_ has quit [Quit: leaving]
<LiesHidden>
*chuckles* that took a little bit of effort to get working, but we'll see if it's any better
<LiesHidden>
by FAR woohoo!
<companion_cube>
\o/
<LiesHidden>
Thanks for your help :D Now I know a little about using Sets too, which will come in handy.
<companion_cube>
there is a similar functor, Map, for associative containers
<companion_cube>
just fyi ;)
milosn_ has joined #ocaml
<LiesHidden>
I read a little about that one, and I'm still looking for an opportunity to use hash maps :/
<companion_cube>
there is Hashtbl too, indeed
<LiesHidden>
Hash table, yeah that's what I meant lol
<companion_cube>
Hashtbl is the module implementing hash tables