ski has quit [Read error: 110 (Connection timed out)]
CosmicRay has joined #ocaml
Snark has joined #ocaml
pango is now known as pangoafk
Smerdyakov has joined #ocaml
pangoafk is now known as pango
love-pingoo has joined #ocaml
shawn__ has quit ["This computer has gone to sleep"]
Demitar has joined #ocaml
khaladan has joined #ocaml
finelemon has quit [Read error: 104 (Connection reset by peer)]
finelemon has joined #ocaml
fab__ has joined #ocaml
_fab has quit [Read error: 110 (Connection timed out)]
fab__ has quit [Read error: 104 (Connection reset by peer)]
kral has joined #ocaml
shawn has joined #ocaml
fab__ has joined #ocaml
Wizz_Kidd has joined #ocaml
<Wizz_Kidd>
hey anyone up
<zmdkrbou>
yep
<Wizz_Kidd>
you ever use felix
<Wizz_Kidd>
the programming language
<zmdkrbou>
nope
<Wizz_Kidd>
hmmmm
<Wizz_Kidd>
i guess it uses ocaml to compile or something
<Wizz_Kidd>
well as the translator i should say
<Wizz_Kidd>
does ocaml compile to native machine code?
<zmdkrbou>
yep
<zmdkrbou>
(when using ocamlopt command)
<Wizz_Kidd>
how big is a hello world compiled
<Wizz_Kidd>
i would test but im jus baout to download ocaml
<Snark>
about 80k
<Wizz_Kidd>
any way to make that smaller?
<dylan>
strip :)
<Wizz_Kidd>
im jus wondering what do you think the smallest you could get a hello world in ocaml
<Snark>
it was stripped
<Snark>
but notice it contains the runtime environment
<Snark>
so it can hardly be smaller than that
<dylan>
Yep
<dylan>
108K on my machine.
<Wizz_Kidd>
yea
<Wizz_Kidd>
you could UPX
<Wizz_Kidd>
but blah only if all langauiges already had runtime enviroments on the machine
<Wizz_Kidd>
c and c++ have the true advantages
<Snark>
segmentation faults ?
<Wizz_Kidd>
why would their be a segmentation fault?
<Snark>
C and C++ have plenty of them :-)
<dylan>
I have never seen a non-trivial C program that never has a segfault.
<Wizz_Kidd>
i seee
<Wizz_Kidd>
might be able to cut that 95 k in half with upx or something of that sort
CosmicRay has quit ["Client exiting"]
<dylan>
really...
<dylan>
On non-embeded stuff, space is not a problem.
ulfdoz is now known as ulfdoz_
<Wizz_Kidd>
i am also going to try this felix stuff out
<Wizz_Kidd>
looks interesting
<dylan>
I use a fairly complex ncurses calendaring program written in ocaml.
<dylan>
it's 566k, and uses about 8-10MB of ram.
<Wizz_Kidd>
yep
<dylan>
it'd probably be even smaller on 32bit machines.
<Wizz_Kidd>
i am going to build an im client in what language i do not know yet
<Wizz_Kidd>
either C this ocaml or felix
<dylan>
if you want to use GTK, ocaml is nice.
<dylan>
Using ncurses is a lot less easy.
<Wizz_Kidd>
GTK for linux - win32 api for native win stuff
<Wizz_Kidd>
i cant see my customers using a terminal ;)
<jer>
too bad ocaml didn't have something like wx ... writing special code for particular platforms is always annoying; especially when you have to do it in abundance
<smimou>
there's a binding if I remember well
<smimou>
not sure what state it is though
<jer>
smimou, it depends on wxhaskell headers; it's not usable when i last tried (1 week)
<smimou>
:(
<dylan>
Qt bindings would be very difficult
<kral>
are there any bindings for fox or fltk?
<kral>
fltk isn't bad at all
<dylan>
fltk uses opengl, right?
<kral>
it supports opengl, yes
<Wizz_Kidd>
qt sucks sorry
<dylan>
Qt sucks in what way?
<Wizz_Kidd>
bloated
<Wizz_Kidd>
and lisence
<dylan>
it's GPL'd...
<Wizz_Kidd>
and they way they suck people in
<Wizz_Kidd>
not for commericial
<dylan>
it's GPL for commericial, too.
<Wizz_Kidd>
heh not last i checked
<dylan>
you're just not allowed to hide source code.
<Wizz_Kidd>
lol
<Wizz_Kidd>
what major bussiness is gona release their source
<Wizz_Kidd>
adobe photoshop ohhh here ya gooo click here for source
<dylan>
Who the f cares about major business?
<Wizz_Kidd>
they would go bankrupt
<Wizz_Kidd>
thats who qt is directed toward
<jer>
Qt is GPL'd for open source stuff only (free projects who don't have to pay a licence); if you want to use it in a commercial project, you gotta pay money for a different licence
<Wizz_Kidd>
exactly
<Wizz_Kidd>
they suck everyobe in wth the GPL part
<Wizz_Kidd>
get u 2 larn the toolkit
<Wizz_Kidd>
etc
<dylan>
Qt is GPL'd for anything. You could try to sell an open source app written with Qt
<jer>
i always view gpl licenced software as suspicious, and try and avoid it
<Wizz_Kidd>
also qt BACKDoors their toolkit
<jer>
dylan, you could, yes; but you'd have to release the source.. i'm talking closed source
<dylan>
Closed source is inherently immoral. :)
<Wizz_Kidd>
not sure bout qt 4 but i know they did with qt 3
<dylan>
Qt 3 had no GPL version for windows, too.
<dylan>
"BACKDoors"?
<Wizz_Kidd>
yes
<dylan>
How?
<Wizz_Kidd>
its there
<dylan>
What does it do?
<Wizz_Kidd>
injects itself into internet explorer on windows
<Wizz_Kidd>
so no firewalls detect it
<dylan>
Do you have proof of this?
<Wizz_Kidd>
yes lol
<dylan>
Link please?
<Wizz_Kidd>
it was everywhere
<Wizz_Kidd>
slashdot got in trouble for mentioning it
<dylan>
Right.
<Wizz_Kidd>
jus google trolltech made alot of people take it down
ulfdoz_ is now known as ulfdoz
<Wizz_Kidd>
remember how kde had problems in the beginning
<Wizz_Kidd>
with their networking
<Wizz_Kidd>
it was because of that and they made an agreement for kde componets to take it out
<Wizz_Kidd>
lol im not gonna debate with u about qt it wasnt called backdoors thats my name for it jus go back and look at kde and look at why adboe doesnt use qt anymore and why slashdoit almost got sued
Snark has quit ["Leaving"]
<dylan>
KDE doesn't use Qt any more?
<dylan>
adboe. hmm
<Wizz_Kidd>
noooo
<dylan>
adobe?
<Wizz_Kidd>
trolltech game them a revised version
<Wizz_Kidd>
gave
<dylan>
if this wasn't really a backdoor, what was it? I'm very confused.
<dylan>
google finds nothing mentioning slashdot, qt, sue, sued, suing, or lawsuit...
<dylan>
or slashdot, trolltech, and any number of words relating to a lawsuit or the threat of legal action
shawn has quit [Connection timed out]
Schmurtz is now known as Zzzzzzz
<love-pingoo>
before I go read the doc: how to create an option value in C bindings ?
bluestorm has quit ["Konversation terminated!"]
Zzzzzzz is now known as Schmurtz
slipstream-- has joined #ocaml
<ketty>
love-pingoo: pointer?
<ketty>
with null being None...
<love-pingoo>
I mean, I want to create a (string option) value from C code.
<ketty>
hmm...
<ketty>
and the C code is?
<ketty>
a normal string?
slipstream has quit [Connection timed out]
<love-pingoo>
currently I have a C string, which I translate to a caml string, but I want to wrap it in Some, or return None in some cases
<ketty>
hmm... i dont really have this fresh in my head.. sorry ^^
<ketty>
are you using camlIDL ?
<love-pingoo>
no
<ketty>
i suggest you do ^^
<ketty>
any reason you don't use it?
<smimou>
love-pingoo: caml_alloc(1, 0)
<smimou>
(cf byterun/weak.c in caml sources for example)
<love-pingoo>
(1,0) would be Some, (0,0) would be none ?
<smimou>
and Store_field(caml_copy_string(...), 0, some)
<smimou>
no
<smimou>
none is Val_int(0)
<love-pingoo>
weird
<smimou>
yes
<love-pingoo>
Actually I meant: (1,0) would be Some, (0,1) would be None ?
<smimou>
nope
<smimou>
the first field is the size of the block
<smimou>
constructors with no arguments are juste ints
<smimou>
constructors with arguments are tagged blocks
<love-pingoo>
ok
<love-pingoo>
smimou: thanks
<smimou>
np :)
kral has quit ["ERC Version 5.1.2 (IRC client for Emacs)"]
Wizz_Kidd has quit [Read error: 104 (Connection reset by peer)]
rillig has joined #ocaml
love-pingoo has quit ["Connection reset by by pear"]
shawn has joined #ocaml
shawn has quit [Connection timed out]
shawn has joined #ocaml
shawn has quit [Connection reset by peer]
shawn has joined #ocaml
shawn has quit ["This computer has gone to sleep"]
rillig has quit ["exit(EXIT_SUCCESS)"]
Schmurtz has quit ["Plouf !"]
shawn has joined #ocaml
smimou has quit ["bli"]
jcreigh has joined #ocaml
fab__ has quit [Remote closed the connection]
jcreigh has quit ["Do androids dream of electric sheep?"]
shawn has quit ["This computer has gone to sleep"]
CosmicRay has joined #ocaml
sieni_ has quit [Read error: 110 (Connection timed out)]