adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | Current MOOC: https://huit.re/ocamlmooc | OCaml 4.04.0 release notes: http://ocaml.org/releases/4.04.html | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
noddy has quit [Ping timeout: 245 seconds]
pierpa has quit [Remote host closed the connection]
pierpa has joined #ocaml
agarwal1975 has joined #ocaml
octarin has quit [Quit: leaving]
zirman has quit [Remote host closed the connection]
zirman has joined #ocaml
zirman has quit [Remote host closed the connection]
zirman has joined #ocaml
infinity0 has quit [Ping timeout: 250 seconds]
infinity0 has joined #ocaml
FreeBirdLjj has joined #ocaml
silver has quit [Quit: rakede]
nomicflux has quit [Quit: nomicflux]
trepta7 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
trepta7 has joined #ocaml
al-damiri has quit [Quit: Connection closed for inactivity]
noddy has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
trepta7 has quit [Read error: Connection reset by peer]
trepta has joined #ocaml
FreeBirdLjj has joined #ocaml
fraggle_ has quit [Ping timeout: 246 seconds]
fraggle_ has joined #ocaml
trepta has quit [Remote host closed the connection]
trepta has joined #ocaml
zirman has quit [Remote host closed the connection]
zirman has joined #ocaml
tvynr has quit [Quit: Leaving]
mfp has quit [Ping timeout: 265 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
wu_ng has joined #ocaml
nomicflux has joined #ocaml
noddy has quit [Ping timeout: 250 seconds]
MetaHertz has joined #ocaml
bquent has joined #ocaml
bquent has quit [Quit: Page closed]
bquent has joined #ocaml
zirman has quit [Remote host closed the connection]
tmtwd has joined #ocaml
f[x] has quit [Ping timeout: 240 seconds]
Algebr` has quit [Ping timeout: 248 seconds]
Khady_ is now known as Khady
bquent has quit [Ping timeout: 260 seconds]
bquent has joined #ocaml
octachron has quit [Quit: Leaving]
zirman has joined #ocaml
zirman has quit [Ping timeout: 250 seconds]
bquent has quit [Quit: Page closed]
pierpa has quit [Ping timeout: 240 seconds]
Mercuria1Alchemi has joined #ocaml
jonasen has joined #ocaml
maattdd has joined #ocaml
nomicflux has quit [Quit: nomicflux]
maattdd has quit [Ping timeout: 248 seconds]
zirman has joined #ocaml
zirman has quit [Ping timeout: 246 seconds]
rgrinberg has quit [Ping timeout: 258 seconds]
cataska has joined #ocaml
jao has quit [Ping timeout: 250 seconds]
Mercuria1Alchemi has quit [Ping timeout: 246 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
jonasen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cataska has quit [Quit: Textual IRC Client: www.textualapp.com]
freusque has joined #ocaml
d0nn1e has quit [Ping timeout: 264 seconds]
d0nn1e has joined #ocaml
zirman has joined #ocaml
trepta has quit [Remote host closed the connection]
zirman has quit [Ping timeout: 258 seconds]
jao has joined #ocaml
jonasen has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
jao has quit [Ping timeout: 252 seconds]
zirman has joined #ocaml
freusque has quit [Ping timeout: 246 seconds]
zirman has quit [Ping timeout: 248 seconds]
bquent has joined #ocaml
raphinou has joined #ocaml
raphinou has quit [Client Quit]
raphinou has joined #ocaml
fluter has quit [Ping timeout: 246 seconds]
ziyourenxiang has joined #ocaml
infinity0 has quit [Remote host closed the connection]
yaewa has joined #ocaml
moei has quit [Ping timeout: 250 seconds]
infinity0 has joined #ocaml
fraggle-boate has quit [Ping timeout: 250 seconds]
Algebr` has joined #ocaml
fluter has joined #ocaml
xaimus_ has joined #ocaml
zirman has joined #ocaml
xaimus has quit [*.net *.split]
pippijn has quit [*.net *.split]
zirman has quit [Ping timeout: 248 seconds]
Algebr` has quit [Ping timeout: 268 seconds]
AltGr has joined #ocaml
pippijn has joined #ocaml
lambda_foo_ has joined #ocaml
larhat has joined #ocaml
<bquent> Greetings, is there any additional step required after building the llvm bindings and installing llvm from opam to build a project using them with ocamlbuild? I set the lib and lib/caml folders in my LD and OCAML_LD paths, I can load llvm from top level (so it finds my dllllvm.so) but not build
pippijn has quit [*.net *.split]
Flerex has joined #ocaml
Hetu has joined #ocaml
Flerex has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
pippijn has joined #ocaml
tmtwd has quit [Ping timeout: 260 seconds]
zaquest has quit [Ping timeout: 258 seconds]
mfp has joined #ocaml
fraggle-boate has joined #ocaml
jnavila has joined #ocaml
maattdd has joined #ocaml
zaquest has joined #ocaml
silver has joined #ocaml
linou has joined #ocaml
<linou> hey
FreeBirdLjj has joined #ocaml
<linou> i don't know if i'm in the good place but i have some problems with a project that i have to do for the beginning of january
<linou> i am supposed to do it with someone in my university group but he suddenly disappeared i have no more news from him
<linou> so i'm alone now on this project and i'm really lost i need some help please
jnavila has quit [Ping timeout: 260 seconds]
raphinou has quit [Quit: WeeChat 1.4]
FreeBirdLjj has quit [Ping timeout: 240 seconds]
<lyxia> linou: Feel free to ask specific questions about OCaml.
_andre has joined #ocaml
<linou> well i have to make a game about coloring maps or puzzle
<linou> by using the 4 color theorem
<linou> and i dont understand how to put and show the map
<linou> i have a map example but i dont understand it
<linou> and i dont know how to write a function that read the map and show it on a graphic window
<linou> and i also have a problem on how to know when i arrive at the end of the "country" to stop the coloring
infinity0 has quit [Ping timeout: 260 seconds]
infinity0 has joined #ocaml
<Leonidas> map as in?
ziyourenxiang has quit [Quit: Leaving]
zirman has joined #ocaml
Merv has quit [Quit: Connection closed for inactivity]
<linou> sorry?
fre has quit [Ping timeout: 268 seconds]
michbad has joined #ocaml
Hetu has quit [Ping timeout: 264 seconds]
Hetu has joined #ocaml
zirman has quit [Ping timeout: 240 seconds]
jonasen has quit [Ping timeout: 250 seconds]
<chelfi> What exactly is your input ? How do you represent a map ?
fre has joined #ocaml
wu_ng has quit [Read error: Connection reset by peer]
<linou> like this
<linou> this is the map
<linou> its a precolored map
kakadu has joined #ocaml
sh0t has joined #ocaml
lambda_foo_ has quit [Quit: Connection closed for inactivity]
dhil has joined #ocaml
jonasen has joined #ocaml
maattdd has quit [Ping timeout: 258 seconds]
orbifx-m has joined #ocaml
<bquent> Hi, I solved the problem I had this morning by manually building with ocamlc, I'd still like to know how to use ocamlbuild with the llvm bindings however, i installed everything with opam and tried giving the link to the folder with LLVM's shared libraries to myocamlbuild.ml with no success
linou has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<orbifx-m> I got an ocamlbuild too
<orbifx-m> (Question)
<orbifx-m> Even though I tag something with cclib(..), I don't see the link flag in the command output
<orbifx-m> What could I be doing wrong?
yaewa has quit [Quit: Leaving...]
moei has joined #ocaml
FreeBirdLjj has joined #ocaml
moei has quit [Quit: Leaving...]
FreeBirdLjj has quit [Ping timeout: 258 seconds]
MercurialAlchemi has quit [Ping timeout: 240 seconds]
maattdd has joined #ocaml
BitPuffin|osx has joined #ocaml
jao has joined #ocaml
<Drup> bquent: "ocamlbuild -use-ocamlfind -pkg llvm" should be enough
zirman has joined #ocaml
infinity0 has quit [Remote host closed the connection]
bquent has quit [Ping timeout: 260 seconds]
infinity0 has joined #ocaml
<orbifx-m> Drup: any ideas for my issue?
zirman has quit [Ping timeout: 250 seconds]
<Drup> no idea without more details
<orbifx-m> I want to link my target to a C++ library.
<orbifx-m> So I need to pass -cclib -l.. to ocamlfind
<orbifx-m> I've out cclib(-l...) to my tag for that target, but none of the cclib flags appear in the compilation
<orbifx-m> What else would help to know Drup ?
infinity0_ has joined #ocaml
infinity0_ has joined #ocaml
infinity0 is now known as Guest64714
Guest64714 has quit [Killed (rajaniemi.freenode.net (Nickname regained by services))]
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
agarwal1975 has quit [Quit: agarwal1975]
infinity0 has quit [Remote host closed the connection]
jnavila has joined #ocaml
infinity0 has joined #ocaml
MercurialAlchemi has joined #ocaml
FreeBirdLjj has joined #ocaml
jnavila has quit [Ping timeout: 260 seconds]
FreeBirdLjj has quit [Ping timeout: 248 seconds]
agarwal1975 has joined #ocaml
fre has quit [Quit: WeeChat 1.6]
freusque has joined #ocaml
freusque has quit [Client Quit]
freusque has joined #ocaml
freusque has quit [Client Quit]
jnavila has joined #ocaml
noddy has joined #ocaml
dmi3y has joined #ocaml
rwmjones|hols is now known as rwmjones|hols|af
agarwal1975 has quit [Quit: agarwal1975]
agarwal1975 has joined #ocaml
zirman has joined #ocaml
moei has joined #ocaml
jnavila has quit [Ping timeout: 260 seconds]
balod has quit [Remote host closed the connection]
balod has joined #ocaml
jonasen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zirman has quit [Quit: Leaving...]
zirman has joined #ocaml
zirman has quit [Changing host]
zirman has joined #ocaml
zirman has quit [Remote host closed the connection]
dmi3y has quit [Quit: dmi3y]
zirman has joined #ocaml
zirman has joined #ocaml
zirman has quit [Changing host]
michbad has quit [Ping timeout: 260 seconds]
dmi3y has joined #ocaml
jonasen has joined #ocaml
smondet has joined #ocaml
michbad has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
freusque has joined #ocaml
jnavila has joined #ocaml
nomicflux has joined #ocaml
jnavila has quit [Quit: It was time]
agarwal1975 has quit [Quit: agarwal1975]
michbad_ has joined #ocaml
agarwal1975 has joined #ocaml
michbad has quit [Ping timeout: 250 seconds]
Hetu has quit [Remote host closed the connection]
Onemorenickname has joined #ocaml
<Onemorenickname> Hi ppl
<Onemorenickname> I have a pattern like "LongConstructor(_,MediumConstructor(_,_,SmallConstructor(x)))"
<Onemorenickname> How can I make an ocaml macro like "#define short(X) LongConstructor(_,MediumConstructor(_,_,SmallConstructor(X)))"
<Onemorenickname> ?
<Drup> Onemorenickname: you mean for pattern matching, I presume ?
<Drup> You can't
<Onemorenickname> hm
<Onemorenickname> There is no macro in ocaml ?
michbad_ has quit [Ping timeout: 246 seconds]
michbad has joined #ocaml
FreeBirdLjj has joined #ocaml
jonasen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FreeBirdLjj has quit [Ping timeout: 258 seconds]
pierpa has joined #ocaml
michbad_ has joined #ocaml
infinity0 has quit [Remote host closed the connection]
michbad has quit [Ping timeout: 246 seconds]
infinity0 has joined #ocaml
michbad has joined #ocaml
michbad_ has quit [Ping timeout: 246 seconds]
<balod> "let short X = LongConstructor(_,MediumConstructor(_,_,SmallConstructor(X)))" ?
<balod> Does creating a function solve your problem?
<balod> Otherwise you will have to revert to ppx for code generation
michbad_ has joined #ocaml
<dmi3y> Hi Guys. I'm trying to load Base module with OCaml 4.04 but getting the following error in utop http://lpaste.net/350288
michbad has quit [Ping timeout: 260 seconds]
<smondet> dmi3y: it seems that Base's findlib META file is broken in the current version (which is alpha/preview right?) https://github.com/janestreet/base/issues/5
<dmi3y> Thanks @smondet. :(
<Onemorenickname> balod : it does not, it is for pattern matching
Algebr` has joined #ocaml
michbad_ has quit [Ping timeout: 246 seconds]
<balod> Oh sorry, as Drup said it's not possible
michbad has joined #ocaml
freusque has quit [Ping timeout: 250 seconds]
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
michbad_ has joined #ocaml
ziyourenxiang has joined #ocaml
ziyourenxiang has quit [Changing host]
ziyourenxiang has joined #ocaml
ziyourenxiang has quit [Client Quit]
ziyourenxiang has joined #ocaml
jonasen has joined #ocaml
michbad has quit [Ping timeout: 260 seconds]
dmi3y has quit [Quit: dmi3y]
michbad_ has quit [Read error: Connection reset by peer]
Hetu has joined #ocaml
malade_mental has joined #ocaml
<malade_mental> Hi, I want to write a function that prints "hello world" n times, n given by user input. Should I use a for loop or recursion?
shinnya has joined #ocaml
michbad has joined #ocaml
<thizanne> both will do the job, chose the one you prefer
<thizanne> (actually, you should probably do both as an exercise)
<malade_mental> thizanne: exactly, that's what I thought
<malade_mental> thizanne: http://paste.debian.net/903746 what I don't understand is where can I execute f(x-1) and print the string....
FreeBirdLjj has joined #ocaml
<thizanne> malade_mental: how would you write some program that print "hello world" and then prints "goodbye cruel world" ?
<thizanne> (print_string "hello world\n goodbye cruel world" is considered cheating)
<malade_mental> thizanne: this is what I don't understand in functional programming, but I'd say write two functions
<thizanne> that's because it's not really functional programming here
<thizanne> ocaml is not exclusively functional, when it comes to side effects like printing something it can be used as an imperative language
<malade_mental> okay!!!
<thizanne> so you can write print_endline "hello world"; print_endline "goodbye cruel world"
<thizanne> it will execute both "statements" one after the other
<malade_mental> ok I understand now!!!
<thizanne> (I guess you're following a particular course, then I suppose you don't need to understand exactly the imperative part until you reach the corresponding chapter)
<thizanne> (in which case just knowing that `;` can separate two priting statements should be sufficient)
yomimono has joined #ocaml
michbad has quit [Remote host closed the connection]
al-damiri has joined #ocaml
<malade_mental> http://paste.debian.net/903751 why does it do an infinite loop thizanne ? I don't understand there...
<malade_mental> ow, because I didn't put n > 0 in parentheses
<malade_mental> ?
<malade_mental> hum, doesn't change anything...
<flux> malade_mental, you're getting a warning from ocaml, aren't you?
<flux> malade_mental, n = (n-1) doesn't so what you think it does.
<flux> so => do
<thizanne> malade_mental: as flux said, so-called "variables" in ocaml do not work like variables in other programming languages
<thizanne> in particular you can't change their values by doing `n = n - 1`
<thizanne> you need to use references, which are like variables that you explicitely indicate as being mutable (and thus on which on you use the assignment operator -- which is := by the way, not =)
isd has quit [Ping timeout: 248 seconds]
<thizanne> my suggestion is to wait until your course deals with these subjects, as it's probably more interesting or you to discover the functional aspects of the language rather than to learn how to use it to make it look like the languages you already know
<malade_mental> flux: no i don't have the warning
<malade_mental> thizanne: yes I'm following a mooc and I just wanted to test some exercices on hackerrank...
MercurialAlchemi has quit [Remote host closed the connection]
<Onemorenickname> Is there a "Non-Empty List" module in ocaml ? I'm basically definig "type 'a nelist = 'a * ('a list)" and I'd like not to have to define all the helpers functions
<flux> malade_mental, strange, I wold have expected you to get "Warning 10: this expression should have type unit."
larhat has quit [Quit: Leaving.]
<flux> malade_mental, the idiomatic way to write that function is with recursion. the direct solution to your problem is to define the variable as let n = ref 0, use !n to get its value and n := 42 to assign it.
slash^ has joined #ocaml
<malade_mental> ok thanks flux, I didn't know about ref
zirman has quit [Remote host closed the connection]
jnavila has joined #ocaml
vicfred has joined #ocaml
Onemorenickname has quit [Quit: Leaving]
FreeBirdLjj has quit [Remote host closed the connection]
ryanartecona has joined #ocaml
ziyourenxiang has quit [Quit: Leaving]
Algebr` has quit [Ping timeout: 252 seconds]
luzie has quit [Quit: WeeChat 1.7-dev]
luzie has joined #ocaml
Algebr` has joined #ocaml
trepta has joined #ocaml
<Drup> AltGr: you're flooding me :O
f[x] has joined #ocaml
malade_mental has left #ocaml [#ocaml]
jnavila has quit [Ping timeout: 256 seconds]
luzie has quit [Quit: WeeChat 1.7-dev]
luzie has joined #ocaml
dhil has quit [Ping timeout: 260 seconds]
maattdd has quit [Ping timeout: 250 seconds]
infinity0 has quit [Ping timeout: 256 seconds]
<AltGr> Drup, huh ?
infinity0 has joined #ocaml
trepta has quit [Quit: trepta]
trepta has joined #ocaml
<Drup> AltGr: just a joke about all the bug report being closed :p
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
zirman has joined #ocaml
zirman has joined #ocaml
zirman has quit [Changing host]
infinity0 has quit [Ping timeout: 252 seconds]
infinity0 has joined #ocaml
larhat has joined #ocaml
unyu has quit [Remote host closed the connection]
pyon has joined #ocaml
smondet has quit [Ping timeout: 258 seconds]
FreeBirdLjj has joined #ocaml
Denommus has joined #ocaml
Denommus has quit [Client Quit]
Denommus has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 258 seconds]
rgrinberg has joined #ocaml
f[x] has quit [Ping timeout: 258 seconds]
jnavila has joined #ocaml
dmi3y has joined #ocaml
noddy has quit [Ping timeout: 265 seconds]
jnavila has quit [Ping timeout: 260 seconds]
<AltGr> ah; pfooh, was that tracker taking dust
sepp2k has joined #ocaml
shinnya has quit [Ping timeout: 260 seconds]
kakadu has quit [Quit: Konversation terminated!]
Muzer has quit [Ping timeout: 258 seconds]
f[x] has joined #ocaml
smondet has joined #ocaml
jonasen has quit [Quit: Textual IRC Client: www.textualapp.com]
zirman has quit [Remote host closed the connection]
Muzer has joined #ocaml
lambda_foo has joined #ocaml
zirman has joined #ocaml
zirman has quit [Remote host closed the connection]
zirman has joined #ocaml
average has quit [Quit: leaving]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 248 seconds]
kakadu has joined #ocaml
jnavila has joined #ocaml
noddy has joined #ocaml
DidierMedichon has joined #ocaml
BitPuffin|osx has quit [Ping timeout: 252 seconds]
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
orbifx-m2 has joined #ocaml
orbifx-m2 has quit [Remote host closed the connection]
trepta has quit [Ping timeout: 258 seconds]
orbifx-m has quit [Ping timeout: 265 seconds]
dhil has joined #ocaml
_andre has quit [Quit: leaving]
tvynr has joined #ocaml
<tvynr> Does anyone know of a location where I can find a summary of the sort of situations the OCaml compiler is good at optimizing?
vramana1 has joined #ocaml
vramana has quit [Ping timeout: 258 seconds]
vramana1 is now known as vramana
noddy has quit [Ping timeout: 260 seconds]
MercurialAlchemi has joined #ocaml
octachron has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
d0nn1e has quit [Ping timeout: 258 seconds]
d0nn1e has joined #ocaml
<tvynr> Does anyone know whether the compiler will inline functions provided via a functor argument? For instance, I want to write a functor that takes an argument module of a module type EventHandler (with a single function handleEvent). I'd like it if using a NopEventHandler ("let handleEvent _ = ()") didn't incur overhead. Is this possible?
MercurialAlchemi has quit [Remote host closed the connection]
Denommus has quit [Quit: going home]
rand__ has joined #ocaml
<mfp> tvynr: I believe flambda can inline that
<tvynr> Hm; good to know. I've been reading about flambda but I don't know much about it. Is it planned to be The Future™ in that I can write my code around this assumption?
<mfp> it's merged into trunk (but not enabled by default yet), it shouldn't be long before it's enabled by default
<mfp> there was some github issue/wiki page that documented flambda's optimizations IIRC, trying to find it
<tvynr> Oh, goodie! Thanks for the info. I'm running some microbenchmarks, so I'll try a 4.04.0+flambda switch.
<tvynr> Wow.
<tvynr> Using 4.04.0+flambda, none of my tests took any time at all. They've all been reduced to nops. :-P
<mfp> tvynr: I forget the manual does include a section on flambda and its optimizations https://caml.inria.fr/pub/docs/manual-ocaml/flambda.html
<mfp> *forgot
<tvynr> Is that comparatively new material? I couldn't find any of that in the manual for my 4.02.3 compiler.
<mfp> "Functors There is nothing particular about functors that inhibits inlining compared to normal functions. To the inliner, these both look the same, except that functors are marked as such."
<tvynr> :)
<tvynr> Thanks for finding that; it gives me some peace of mind.
<mfp> flambda landed with 4.03
<tvynr> I was hoping that ocamlc would be this clever so that I could happily write my event-handling code without hurting performance. Seems I can.
<tvynr> Sorry for not being able to find that myself. :-P
<tvynr> My Google skills seem to have failed me.
dmi3y has quit [Quit: dmi3y]
<mfp> ocaml*opt*
<tvynr> Oh, right.
<mfp> (just to be sure :)
<tvynr> This was indeed what I was using. But thank you! :)
<tvynr> (Actually, I was using ocamlbuild to target a .native, but y'know.)
<mfp> take a look at https://caml.inria.fr/pub/docs/manual-ocaml/flambda.html#sec481 if you want to control inlining manually
slash^ has quit [Quit: Leaving]
<mfp> there are quite a few interesting optimizations planned for 4.05 / 4.06 here > https://github.com/OCamlPro/flambda-task-force/issues?page=2&q=is%3Aissue+is%3Aopen
ryanartecona has joined #ocaml
ia0 has quit [Quit: reboot]
ia0 has joined #ocaml
<octachron> tvynr, note also that you can control more finely inlining using attributes
<octachron> in particular, if you need to be sure that a call is inlined you can use "(f[@inlined]) x" to make the compiler yell at you if it cannot inline the function call
average has joined #ocaml
dhil has quit [Ping timeout: 245 seconds]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
xaimus_ is now known as xaimus
jnavila has quit [Remote host closed the connection]
<tvynr> octachron: Thanks for the info about inlining. :)
zv has quit [Quit: WeeChat 1.6]
zv has joined #ocaml
rand__ has quit [Quit: leaving]
siyu has joined #ocaml
<siyu> hi may i ask how to create an initialized array in ocaml
<siyu> uninitialized*
<Drup> siyu: what will you put in the array ?
<siyu> i am trying to implement a polymorphic dynamic array
<Drup> ok, then, you can't.
<siyu> lol
<Drup> (because it's extremely unsafe)
<Drup> siyu: in general, uninitialized arrays are the best way to get segfaults and badly specified accesses. So it's just not possible in OCaml, you always initialize your memory. It shouldn't be a problem for your use case
<siyu> ya i guess when i expand i just use a random element of the array
<siyu> the only thing i cannot do is reserve space with an empty array
<Drup> siyu: or always ask the user for an initial value, and use that when you expand
noddy has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
siyu has quit [Ping timeout: 260 seconds]
sepp2k has quit [Quit: Leaving.]
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
infinity0 has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
infinity0 has joined #ocaml
zirmann has joined #ocaml
zirman has quit [Ping timeout: 264 seconds]
zirmann has quit [Ping timeout: 250 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
larhat has quit [Quit: Leaving.]
AltGr has left #ocaml [#ocaml]
<Algebr`> hmm, why didn't the stdlib come with a vector =/
freusque has joined #ocaml
kakadu has quit [Remote host closed the connection]
<octachron> Algebr`, the linear algebra vectors or the extensible array ones?
<Algebr`> latter
<Algebr`> dynarray
Hetu has quit [Quit: Verlassend]
nomicflux has quit [Quit: nomicflux]