nullcat_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freling has joined #ocaml
Gama11 has quit [Read error: Connection reset by peer]
c74d has joined #ocaml
rand000 has joined #ocaml
Haudegen has joined #ocaml
lordkryss has joined #ocaml
cesar_ has joined #ocaml
cesar_ is now known as Guest99510
milosn has quit [Ping timeout: 256 seconds]
Guest99510 has quit [Ping timeout: 245 seconds]
rgrinberg has quit [Ping timeout: 244 seconds]
dsheets has joined #ocaml
Remyzorg has quit [Ping timeout: 252 seconds]
larhat has quit [Quit: Leaving.]
mhi^ has joined #ocaml
nojb has joined #ocaml
Remyzorg has joined #ocaml
mengu has quit [Remote host closed the connection]
freling has quit [Quit: Leaving.]
mengu has joined #ocaml
mengu has joined #ocaml
milosn has joined #ocaml
milosn has quit [Read error: Connection reset by peer]
oscar_toro has quit [Quit: Lost terminal]
milosn has joined #ocaml
thomasga has joined #ocaml
rgrinberg has joined #ocaml
myyst is now known as myst
Hannibal_Smith has joined #ocaml
rgrinberg has quit [Ping timeout: 252 seconds]
yomimono_ has quit [Ping timeout: 245 seconds]
lopex has quit [Ping timeout: 256 seconds]
lopex has joined #ocaml
freling has joined #ocaml
<nojb>
what's the best way to deal with enums in Ctypes ?
larhat has joined #ocaml
kakadu has joined #ocaml
sdothum has joined #ocaml
TheLemonMan has joined #ocaml
milosn has quit [Ping timeout: 264 seconds]
Haudegen has quit [Ping timeout: 250 seconds]
yomimono_ has joined #ocaml
cesar_ has joined #ocaml
yomimono_ has quit [Ping timeout: 245 seconds]
cesar_ is now known as Guest95675
milosn has joined #ocaml
milosn has quit [Read error: Connection reset by peer]
Guest95675 has quit [Ping timeout: 245 seconds]
Haudegen has joined #ocaml
milosn has joined #ocaml
nojb has quit [Quit: nojb]
Nijikokun has quit [Ping timeout: 272 seconds]
Hannibal_Smith has quit [Remote host closed the connection]
s1n4 has joined #ocaml
yomimono_ has joined #ocaml
yomimono_ has quit [Ping timeout: 276 seconds]
mengu has quit [Remote host closed the connection]
milosn has quit [Ping timeout: 252 seconds]
nojb has joined #ocaml
seanmcl has joined #ocaml
rgrinberg has joined #ocaml
Haudegen has quit [Ping timeout: 250 seconds]
rgrinberg has quit [Ping timeout: 265 seconds]
Haudegen has joined #ocaml
<nojb>
i'm getting the error: "No such package: ctypes.foreign.threaded - required by `ctypes.foreign'" when trying to use ctypes.foreign , any ideas ?
mengu has joined #ocaml
mengu has joined #ocaml
milosn has joined #ocaml
mengu has quit [Ping timeout: 272 seconds]
thomasga has quit [Quit: Leaving.]
seanmcl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Armael>
nojb: opam install ctypes-foreign
<nojb>
thanks!
olibjerd has joined #ocaml
mengu has joined #ocaml
mengu has joined #ocaml
ygrek has quit [Ping timeout: 250 seconds]
milosn has quit [Read error: Connection reset by peer]
milosn has joined #ocaml
AltGr has left #ocaml [#ocaml]
cesar_ has joined #ocaml
yomimono_ has joined #ocaml
cesar_ is now known as Guest51687
Guest51687 has quit [Ping timeout: 245 seconds]
mengu has quit [Remote host closed the connection]
milosn has quit [Ping timeout: 248 seconds]
Gama11 has joined #ocaml
milosn has joined #ocaml
Hannibal_Smith has joined #ocaml
Gama11_ has joined #ocaml
Gama11 has quit [Ping timeout: 256 seconds]
Gama11 has joined #ocaml
thomasga has joined #ocaml
Gama11_ has quit [Ping timeout: 245 seconds]
mengu has joined #ocaml
freling has quit [Quit: Leaving.]
rgrinberg has joined #ocaml
Hannibal_Smith has quit [Ping timeout: 244 seconds]
rgrinberg has quit [Ping timeout: 245 seconds]
rgrinberg has joined #ocaml
idegen has joined #ocaml
yomimono_ has quit [Ping timeout: 250 seconds]
milosn has quit [Ping timeout: 256 seconds]
seanmcl has joined #ocaml
yomimono_ has joined #ocaml
milosn has joined #ocaml
maufred has quit [Ping timeout: 252 seconds]
maufred has joined #ocaml
nojb has quit [Quit: nojb]
milosn has quit [Ping timeout: 252 seconds]
ingsoc has joined #ocaml
milosn has joined #ocaml
BitPuffin has joined #ocaml
nojb has joined #ocaml
agarie has joined #ocaml
mengu has quit [Remote host closed the connection]
badkins has joined #ocaml
milosn has quit [Read error: Connection reset by peer]
milosn has joined #ocaml
ygrek has joined #ocaml
uris77 has joined #ocaml
cesar_ has joined #ocaml
cesar_ is now known as Guest70532
Guest70532 has quit [Ping timeout: 245 seconds]
milosn has quit [Ping timeout: 245 seconds]
rgrinberg has quit [Ping timeout: 256 seconds]
uris77_ has joined #ocaml
nojb has quit [Quit: nojb]
uris77 has quit [Ping timeout: 264 seconds]
oriba_ has joined #ocaml
mahem1 has left #ocaml [#ocaml]
rgrinberg has joined #ocaml
agarie has quit [Remote host closed the connection]
nojb has joined #ocaml
maufred has quit [Ping timeout: 245 seconds]
maufred has joined #ocaml
darkf has quit [Quit: Leaving]
agarie has joined #ocaml
Algebr has joined #ocaml
Hannibal_Smith has joined #ocaml
<Algebr>
What is the purpose of the interrupt argument in Cohttp's requests?
Hannibal_Smith has quit [Ping timeout: 244 seconds]
Hannibal_Smith has joined #ocaml
agarie has quit [Remote host closed the connection]
kushal has joined #ocaml
shinnya has joined #ocaml
kdef has joined #ocaml
milosn has joined #ocaml
rand000 has quit [Ping timeout: 255 seconds]
<struk|work>
is there a way in utop to make have file system paths resolve inside string literals if they match in the file system? I notice it does something like that with #use keyword but not in general.
seanmcl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ygrek has quit [Remote host closed the connection]
ygrek has joined #ocaml
Guest86955 has quit [Ping timeout: 245 seconds]
agarie has joined #ocaml
pyon has joined #ocaml
Submarine has joined #ocaml
Submarine has joined #ocaml
kushal has quit [Quit: Leaving]
yomimono_ has quit [Ping timeout: 252 seconds]
rgrinberg has quit [Ping timeout: 264 seconds]
jwatzman|work has joined #ocaml
Algebr has joined #ocaml
ygrek has quit [Ping timeout: 256 seconds]
rgrinberg has joined #ocaml
nullcat has joined #ocaml
Haudegen has quit [Ping timeout: 252 seconds]
badkins has quit []
nullcat has quit [Client Quit]
nullcat_ has joined #ocaml
nullcat_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
larhat has quit [Quit: Leaving.]
Haudegen has joined #ocaml
nojb has quit [Quit: nojb]
thomasga has quit [Quit: Leaving.]
badkins has joined #ocaml
<ingsoc>
I am subclassing a class, and overriding the constructor in the subclass but only to add a new property to the class. the constructor in the base class take s a number of arguments, how do i pass these through ?
<ingsoc>
oops
<mrvn>
ingsoc: you call it
<Drup>
inherit foo s
<ingsoc>
wrong channel
<ingsoc>
:D
dsheets has quit [Ping timeout: 264 seconds]
<ingsoc>
but good to know anyway
<ingsoc>
:)
<Drup>
it seemed like a sensible ocaml question :D
<ingsoc>
he he , yeah i guess it is
agarie has quit []
Haudegen has quit [Ping timeout: 252 seconds]
ollehar has joined #ocaml
thomasga has joined #ocaml
ollehar has quit [Ping timeout: 256 seconds]
<Algebr>
Drup: not sure if answered already, is ocisgen going to use cohttp as well?
<bernardofpc>
(and all coq versions are not available :/ in opam-1.1.1)
gabemc has joined #ocaml
BitPuffin has quit [Ping timeout: 264 seconds]
cesar_ has joined #ocaml
cesar_ is now known as Guest54323
Guest54323 has quit [Ping timeout: 245 seconds]
ollehar has quit [Quit: ollehar]
Submarine has quit [Quit: Leaving]
magthe has quit [Quit: WeeChat 1.1.1]
_Michael_ has joined #ocaml
<_Michael_>
Hi, how to add a null character to the end of a string?
<Drup>
ocaml string are automatically null terminated
<_Michael_>
good, thanks
<Drup>
no C stupidity :p
<adrien>
hmm?
<adrien>
it _is_ the C stupidity
<adrien>
it's only there to facilitate bindings
<Drup>
yes and no, you can't form malformed strings like in C
<_Michael_>
I read that ocaml string can have null characters arbitrarily at any location inside the string
<mrvn>
_Michael_: I saw the sun today
<_Michael_>
?
<Drup>
_Michael_: why do you care ? Are you doing C bindings ?
<mrvn>
_Michael_: it's a statement of facts
<_Michael_>
yes, using cstruct set a string into a byte array
<Drup>
use ctypes, it will handle strings for you.
<adrien_znc>
Drup: yes, but ocaml strings are defined by the header; it's an implementation detail that they're null-terminated (well, it's a large one but still)
<_Michael_>
I get out of bound error for setting a short string
ontologiae has joined #ocaml
<_Michael_>
Drup, can you explain more please?
Hannibal_Smith has quit [Ping timeout: 240 seconds]
myyst has joined #ocaml
<Drup>
the string view type transform C's char* into OCaml's string transparently
<mrvn>
doesn't help with 0 bytes in stringas though. C will only see the begining
<flux>
could even result in a security flaw..
myst has quit [Read error: Connection reset by peer]
<flux>
in fact the functions should check if this is the case and raise an exception ;). (when passing ocaml strings to C)
thomasga has quit [Quit: Leaving.]
s1n4 has quit [Ping timeout: 244 seconds]
nojb has joined #ocaml
thomasga has joined #ocaml
thomasga has quit [Client Quit]
Hannibal_Smith has joined #ocaml
thomasga has joined #ocaml
MrScout has quit [Remote host closed the connection]
MrScout has joined #ocaml
MrScout_ has joined #ocaml
MrScout has quit [Read error: Connection reset by peer]
nullcat has joined #ocaml
claudiuc has joined #ocaml
kushal has quit [Ping timeout: 252 seconds]
rgrinberg has joined #ocaml
_andre has quit [Quit: leaving]
rgrinberg has quit [Ping timeout: 264 seconds]
mengu has joined #ocaml
ingsoc has quit [Quit: Leaving.]
Algebr` has quit [Ping timeout: 256 seconds]
swgillespie has joined #ocaml
nullcat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
uris77 has joined #ocaml
jwatzman|work has quit [Quit: jwatzman|work]
uris77_ has quit [Ping timeout: 250 seconds]
nullcat has joined #ocaml
Hannibal_Smith has quit [Quit: Leaving]
jwatzman|work has joined #ocaml
zozozo_ has joined #ocaml
zozozo has quit [Ping timeout: 272 seconds]
nullcat has quit [Client Quit]
nullcat has joined #ocaml
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claudiuc has quit [Ping timeout: 245 seconds]
rgrinberg has joined #ocaml
zozozo_ has quit [Quit: WeeChat 1.1.1]
oriba__ has quit [Quit: oriba__]
zozozo has joined #ocaml
srcerer has quit [Read error: Connection timed out]
rgrinberg has quit [Ping timeout: 252 seconds]
MercurialAlchemi has quit [Ping timeout: 244 seconds]
srcerer has joined #ocaml
pancake has left #ocaml [#ocaml]
rgrinberg has joined #ocaml
Haudegen has quit [Ping timeout: 256 seconds]
yomimono_ has joined #ocaml
swgillespie has joined #ocaml
uris77 has quit [Ping timeout: 252 seconds]
claudiuc has joined #ocaml
oriba has joined #ocaml
uris77 has joined #ocaml
thomasga has quit [Quit: Leaving.]
Anarchos has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
claudiuc has quit [Read error: Connection reset by peer]
claudiuc has joined #ocaml
cesar_ has joined #ocaml
cesar_ is now known as Guest79260
Guest79260 has quit [Ping timeout: 245 seconds]
oriba has quit [Quit: oriba]
Simn has quit [Quit: Leaving]
Haudegen has joined #ocaml
uris77 has quit [Ping timeout: 256 seconds]
uris77 has joined #ocaml
javamonn has joined #ocaml
nullcat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_Michael_ has quit [Ping timeout: 246 seconds]
MrScout_ has quit [Remote host closed the connection]
nullcat_ has joined #ocaml
badkins has quit []
ontologiae has quit [Ping timeout: 252 seconds]
uris77 has quit [Quit: leaving]
jwatzman|work has quit [Quit: jwatzman|work]
Haudegen has quit [Ping timeout: 250 seconds]
nullcat_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MrScout has joined #ocaml
jwatzman|work has joined #ocaml
BitPuffin has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
javamonn has quit [Remote host closed the connection]
Haudegen has joined #ocaml
gabemc has quit [Ping timeout: 250 seconds]
nullcat has joined #ocaml
seanmcl has quit [Ping timeout: 256 seconds]
javamonn has joined #ocaml
zozozo has quit [Ping timeout: 276 seconds]
zozozo has joined #ocaml
kakadu has quit [Remote host closed the connection]
myyst is now known as myst
mengu has quit [Remote host closed the connection]
nullcat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Gama11 has quit [Read error: Connection reset by peer]
nullcat has joined #ocaml
nullcat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rand000 has quit [Quit: leaving]
BitPuffin has quit [Ping timeout: 250 seconds]
destrius has quit [Remote host closed the connection]
<struktured>
how is String.unsafe_get implemented? what makes it "unsafe"? It seems to always return '\000' for out of bound array indices.
<nojb>
it is just an array access - if you happen to land on unallocated memory you will get a segfault
<struktured>
oh I see..not good.
<Drup>
well, it's unsafe. :D
<Drup>
unsafe_get/set are just "without bound checking"
<Drup>
(same for arrays)
seanmcl has joined #ocaml
* struktured
has to fix a PR based on recently acquired knowledge.
ollehar has joined #ocaml
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Drup>
what is the recently acquired knowledge ? :p
<Drup>
(and the PR, while we are at it)
<struktured>
let's just say I was optimistic about unsafe_get's semantics
<struktured>
tiny fix to ocaml-csv
cesar_ has joined #ocaml
cesar_ is now known as Guest85088
<struktured>
side question: is '"' more correct than '\"' ? in merlin the latter is an error
<nojb>
the same, but the escape is not necessary
<struktured>
I wonder if the merlin error is intentional or incidental then..
<struktured>
its a syntax highlighting thing
Guest85088 has quit [Ping timeout: 248 seconds]
<struktured>
man String module really is lacking, but this known...