thelema_ has quit [Remote host closed the connection]
seafood has quit [Ping timeout: 240 seconds]
dnolen has quit [Quit: dnolen]
thelema has joined #ocaml
Modius_ has quit [Quit: "Object-oriented design" is an oxymoron]
jamii has joined #ocaml
joewilliams is now known as joewilliams_away
anton1 has quit [Quit: WeeChat 0.3.5]
ruien has joined #ocaml
joewilliams_away is now known as joewilliams
<ruien>
does anyone here happen to know how to efficiently get a substring without duplication? String.sub makes a copy, but I want something akin to moving a pointer in C. For example, if I have s = "asdf", I want to obtain r = "sdf" where r is using the same memory as s, only with one fewer character.
joewilliams is now known as joewilliams_away
Snark_ has joined #ocaml
Snark_ is now known as Snark
jamii has quit [Ping timeout: 258 seconds]
larhat has joined #ocaml
Snark has quit [Quit: Ex-Chat]
wm5 has joined #ocaml
ygrek has joined #ocaml
<Lor>
ruien, I guess you have to implement that yourself
<Lor>
ocaml conflates strings (values) and byte buffers (mutable objects), and that's one consequence
<adrien>
you can also keep an index too, so you say "substring x starts at position i of string y"
<ruien>
yeah, I was trying to implement it using pointers, but i am still getting duplication when trying to read the values. This seems basic enough that there would have been a standard implementation.
<ruien>
hmm, that might be exactly relevant. Thanks larhat
<ruien>
(I just have to look at their implementation)
edwin has joined #ocaml
avsm has joined #ocaml
gds_ has joined #ocaml
<Lor>
gds_, can overbld be built without tcl?
<Lor>
it dies with an error during patching if TK_ROOT_DOS_ESC isn't set.
<Lor>
And if tk is required, what's the easiest way to install it on windows in a way that overbld can use?
<gds_>
Lor: "without tcl/tk" doesn't help, the problem is not here. Have you installed source version of overbld? Do you have files "runbash.bat" and "bld.sh" in the "root" directory?
<Lor>
no. this is a snapshot from the hg repo.
<gds_>
Lor: snapshot from repo doesn't have mingw, msys and tonns of other things needed to build ocaml and libraries.
<Lor>
I installed mingw separately.
<Lor>
but sure, I won't mind a bundled source distribution.
<Lor>
the sourceforge page just has a torrent for something from last year
<Lor>
But if that's the only reasonable way to build it, I guess I'll have to try it out.
<Lor>
Gah, I have to install a bt client...
<ygrek>
activestate tcl is one-click install
<zorun>
Lor: transmission
<zorun>
(for instance)
<Lor>
yeayea, it's not a problem, just tedious
<Lor>
The binary distro is just 77 megs? Surely that's not too big to be stored directly at sf.net?
<Lor>
one peer, three hours left. I'm thrilled.
<gds_>
Lor: it's about licenses -- I'm not sure I can store it on sf.net.
<Lor>
Ah, figures.
<Lor>
Are you sure it wouldn't be faster for me to just install whatever stuff is required to build from a repo snapshot?
<gds_>
Lor: I'm not sure. You can try it, but maybe you'll need to pass your paths to configure script.
<Lor>
That goes without saying.
<Lor>
So is e.g. tk necessary, or is it easily possible to build everything without labltk?
<gds_>
tcl/tk installation is really easy. The problem with "TK_ROOT_DOS_ESC" is because overbld scripts can't find tcl/tk directory and therefore can't determine its "dos escaped path" to use in the patch.
<Lor>
for something that's supposed to be a convenient package, this all sure is a hassle
<larhat>
there is nice installer on sf.net, with bells'n'whisstles, but it installs 3.11, afair
<Lor>
...and takes ages to download
<Lor>
Drat. On cygwin things are much easier, since all dependencies can be installed with a package manager.
<gds_>
Lor: for convenience -- a 3.11 ocaml without a hassle, just download+install. I had no time to update it to 3.12, and nobody helped me here -- maybe because the project doesn't look useful, or maybe because of problems with new 3.12. For example, at least 2 ocaml bugs stopped the show by breaking compilation of some "packages" (deriving, batteries).
<Lor>
But on cygwin it seems to be hard to compile mingw binaries.
<larhat>
it's only because everybody is trying to invent his own bicycles, instead of using (and seeding! ;-) ) one package
<adrien>
yypkg!
<adrien>
(had to mention it ;-) )
<Lor>
yeah, there's overbld, godi, and ygrek's build
<ygrek>
(and ocamlpro's build recently)
<Lor>
and then you are supposedly supposed to be able to build the vanilla ocaml distro from sources on windows
<ygrek>
it is msvc only for now, but I guess they intend to cover all ports
Amorphous has quit [Ping timeout: 264 seconds]
avsm has quit [Quit: Leaving.]
Amorphous has joined #ocaml
george_z0rwell has joined #ocaml
Reaganomicon has quit [Ping timeout: 257 seconds]
ikaros has joined #ocaml
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
ulfdoz has quit [Ping timeout: 240 seconds]
avsm has joined #ocaml
<Lor>
Wow, debian's mingw-cross-compiler seems to work.
<Lor>
That's just about the best solution possible.
<zorun>
:)
<Lor>
Well, at least "hello world" works.
<Lor>
We'll see what happens with lwt and its hairy event loop thingies.
<zorun>
I'm using a mingw cross-compiler for a big project, that's fine
<zorun>
ah, never used Lwt though ;)
<Lor>
lwt seems to be the best option for concurrency, given that native threads in ocaml are expensive
<zorun>
true
<zorun>
and that's not specific to ocaml
<zorun>
but yet, threads have their use someting
<zorun>
*sometimes
<Lor>
It's specific to ocaml that the language's own threads are implemented as individual system threads.
<zorun>
really?
<Lor>
Sure.
<zorun>
didn't know that
<Lor>
many other language implementations provide soft threads even when compiling to native code
<Lor>
some jvm:s do fancy N:M threading
<zorun>
on the other hand, I don't know a lot of languages that provide threads natively
<Lor>
threads are standard issue nowadays
<Lor>
Even C is getting standard thread primitives.
<zorun>
"standard"?
<Lor>
Yeah, standard.
<zorun>
I don't think there are threads in the C99 standard
<Lor>
I said "is getting".
<Lor>
C1X is nearing completion.
<zorun>
oh, I didn't know about that, only C++1x
<zorun>
they're doing both together then
<Lor>
Not really.
<Lor>
There's some cooperation to make sure that if both languages add the same feature, it's done the same way in both.
<zorun>
that makes sense
ikaros has quit [Quit: Ex-Chat]
avsm has quit [Ping timeout: 255 seconds]
avsm has joined #ocaml
lopex has joined #ocaml
avsm has quit [Quit: Leaving.]
wm5 is now known as wm4
wm4 has quit [Quit: Leaving]
wm4 has joined #ocaml
ruien has quit [Quit: Leaving.]
Tobu has joined #ocaml
ulfdoz has joined #ocaml
iratsu has left #ocaml []
iratsu has joined #ocaml
ftrvxmtrx has quit [Read error: Connection reset by peer]
ftrvxmtrx has joined #ocaml
edwin has quit [Remote host closed the connection]
edwin has joined #ocaml
ikaros has joined #ocaml
larhat has quit [Quit: Leaving.]
lamawithonel has quit [Remote host closed the connection]
lamawithonel has joined #ocaml
lamawithonel_ has joined #ocaml
lamawithonel has quit [Ping timeout: 255 seconds]
lamawithonel__ has joined #ocaml
lamawithonel_ has quit [Ping timeout: 255 seconds]
lamawithonel__ has quit [Excess Flood]
lamawithonel__ has joined #ocaml
lamawithonel__ has quit [Excess Flood]
lamawithonel__ has joined #ocaml
lamawithonel has joined #ocaml
lamawithonel__ has quit [Ping timeout: 255 seconds]
lamawithonel has quit [Excess Flood]
lamawithonel has joined #ocaml
lpereira has joined #ocaml
lamawithonel has quit [Excess Flood]
lamawithonel has joined #ocaml
lamawithonel has quit [Ping timeout: 255 seconds]
lamawithonel has joined #ocaml
lamawithonel has quit [Excess Flood]
lamawithonel has joined #ocaml
lamawithonel has quit [Ping timeout: 255 seconds]
jmcarthur has quit [Quit: WeeChat 0.3.5]
pou has quit [Quit: leaving]
lamawithonel has joined #ocaml
dnolen has joined #ocaml
lamawithonel has quit [Excess Flood]
mjonsson has joined #ocaml
lamawithonel has joined #ocaml
lamawithonel has quit [Excess Flood]
lamawithonel has joined #ocaml
lpereira has quit [Quit: Leaving.]
lamawithonel_ has joined #ocaml
lamawithonel has quit [Ping timeout: 255 seconds]
ftrvxmtrx has quit [Read error: Connection reset by peer]
ftrvxmtrx has joined #ocaml
fraggle_ has quit [Remote host closed the connection]
BiDOrD_ has quit [Read error: Operation timed out]
BiDOrD has joined #ocaml
ikaros has quit [Quit: Ex-Chat]
lamawithonel__ has joined #ocaml
lamawithonel_ has quit [Ping timeout: 255 seconds]
fraggle_ has joined #ocaml
jamii has joined #ocaml
ftrvxmtrx has quit [Read error: Connection reset by peer]
avsm has joined #ocaml
Anarchos has joined #ocaml
gds_ has left #ocaml []
lamawithonel__ has quit [Ping timeout: 255 seconds]
lamawithonel has joined #ocaml
jamii has quit [Ping timeout: 258 seconds]
iratsu has quit [Quit: Leaving.]
jamii has joined #ocaml
wm4 has quit [Remote host closed the connection]
edwin has quit [Remote host closed the connection]
jmcarthur has joined #ocaml
Tobu has quit [Quit: No Ping reply in 180 seconds.]
Tobu has joined #ocaml
ygrek has quit [Quit: Leaving]
Tobu has quit [Remote host closed the connection]
Tobu has joined #ocaml
jamii has quit [Ping timeout: 240 seconds]
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
lamawithonel has quit [Remote host closed the connection]
lamawithonel has joined #ocaml
Tobu_ has joined #ocaml
Tobu_ has quit [Changing host]
Tobu_ has joined #ocaml
Tobu has quit [Ping timeout: 258 seconds]
lamawithonel_ has joined #ocaml
lamawithonel has quit [Ping timeout: 255 seconds]
philtor has joined #ocaml
lopex has quit [Ping timeout: 252 seconds]
lopex has joined #ocaml
dnolen has quit [Quit: dnolen]
zorun has quit [Read error: Connection reset by peer]
zorun has joined #ocaml
dnolen has joined #ocaml
mjonsson has quit [Remote host closed the connection]
dnolen has quit [Quit: dnolen]
philtor has quit [Read error: Operation timed out]