<krktz>
linking with /usr/lib/ocaml/libasmrun.a still gives me the "undefined reference to `caml_young_ptr'" errors (amoung others)
<krktz>
what should I do?
Geekingfrog has joined #ocaml
<krktz>
(so far i'm doing the linking by hand since I couldn't figure out how to get ocamlopt to output non-elf binaries but maybe that's the solution?)
mcspud has joined #ocaml
eh_eff has quit [Ping timeout: 248 seconds]
<Armael>
you would also need to link to the runtime an implementation for the primitives that are usually provided by the OS, I believe?
<Armael>
anyhow if you manage to get something working I'd be interested to see the result
ziyourenxiang has quit [Ping timeout: 240 seconds]
<krktz>
thanks
enterprisey has joined #ocaml
sam_ has joined #ocaml
sam_ has quit [Ping timeout: 240 seconds]
Algebr has quit [Read error: Connection reset by peer]
Algebr has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 260 seconds]
Algebr has quit [Remote host closed the connection]
Algebr has joined #ocaml
enterprisey has quit [Remote host closed the connection]
sam____ has joined #ocaml
cbot has joined #ocaml
andreas__ has quit [Quit: Connection closed for inactivity]
sam____ has quit [Ping timeout: 240 seconds]
mfp__ has quit [Ping timeout: 255 seconds]
malina has quit [Quit: Throwing apples of Montserrat]
eh_eff has joined #ocaml
ygrek has quit [Ping timeout: 240 seconds]
zv has joined #ocaml
eh_eff has quit [Ping timeout: 246 seconds]
Algebr has quit [Ping timeout: 260 seconds]
samrat_ has joined #ocaml
enterprisey has joined #ocaml
pierpa has quit [Quit: Page closed]
sam_ has joined #ocaml
sam_ has quit [Ping timeout: 248 seconds]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
jao has quit [Ping timeout: 248 seconds]
MercurialAlchemi has joined #ocaml
sam_ has joined #ocaml
sam_ has quit [Ping timeout: 248 seconds]
govg has quit [Ping timeout: 246 seconds]
alexelcu has quit [Remote host closed the connection]
alexelcu has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 248 seconds]
samrat_ has quit [Ping timeout: 240 seconds]
sam_ has joined #ocaml
samrat_ has joined #ocaml
TarVanimelde has joined #ocaml
sam_ has quit [Ping timeout: 248 seconds]
Associat0r has quit [Ping timeout: 240 seconds]
al-damiri has quit [Quit: Connection closed for inactivity]
MercurialAlchemi has quit [Ping timeout: 246 seconds]
TarVanimelde has quit [Quit: TarVanimelde]
govg has joined #ocaml
nicoo has quit [Ping timeout: 268 seconds]
nicoo has joined #ocaml
sam_ has joined #ocaml
sam_ has quit [Ping timeout: 240 seconds]
MercurialAlchemi has joined #ocaml
bruce_r has joined #ocaml
TarVanimelde has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 248 seconds]
eh_eff has joined #ocaml
demonimin has quit [Ping timeout: 240 seconds]
demonimin has joined #ocaml
eh_eff has quit [Ping timeout: 240 seconds]
demonimin has quit [Ping timeout: 240 seconds]
TarVanimelde has quit [Quit: TarVanimelde]
cbot has quit [Quit: Leaving]
sam_ has joined #ocaml
sam_ has quit [Ping timeout: 264 seconds]
jagare_ has joined #ocaml
jagare has joined #ocaml
BitPuffin|osx has joined #ocaml
bitbckt has quit [Ping timeout: 240 seconds]
bitbckt has joined #ocaml
bruce_r has quit [Ping timeout: 255 seconds]
nior has joined #ocaml
alexyan has joined #ocaml
<alexyan>
Hello! I am using ppx_cstruct to generate conversion functions (int -> variant, variant->int, etc) for my variant types. I also need to generate yojson converter functions and I want to use ppx_deriving_yojson for this purpose. Can I use these ppx extensions simultaneously for one variant type?
<alexyan>
It seems to be a problem since ppx_cstruct requires that the type should be defined inside [%%cenum ... ] construct
demonimin has joined #ocaml
enterprisey has quit [Remote host closed the connection]
sam_ has joined #ocaml
sam_ has quit [Ping timeout: 246 seconds]
nior has quit [Ping timeout: 240 seconds]
freusque has joined #ocaml
sepp2k has joined #ocaml
TarVanimelde has joined #ocaml
TarVanimelde has quit [Client Quit]
KeyJoo has joined #ocaml
samrat_ has quit [Ping timeout: 248 seconds]
sam_ has joined #ocaml
sam_ has quit [Ping timeout: 240 seconds]
argent_smith has joined #ocaml
samrat_ has joined #ocaml
nicklaf has joined #ocaml
nicklaf has quit [Quit: leaving]
nicklaf has joined #ocaml
nicklaf has quit [Client Quit]
nicklaf has joined #ocaml
nicklaf has quit [Client Quit]
nicklaf has joined #ocaml
BitPuffin|osx has quit [Remote host closed the connection]
nicklaf has quit [Client Quit]
nicklaf has joined #ocaml
samrat_ has quit [Ping timeout: 264 seconds]
TobiasBales has joined #ocaml
dakk__ has quit [Ping timeout: 240 seconds]
BitPuffin|osx has joined #ocaml
Associat0r has joined #ocaml
Associat0r has joined #ocaml
<TobiasBales>
Heyho, so I started taking a look at ocaml and immediately got stuck between tools :D
<Drup>
Between the hammer and the anvil ? :p
<TobiasBales>
Basicly I tried to get a simple project running using oases that uses core_exteded but when running the generated Makefile `ocamlfind ocamlc` fails with Error: Unbound module Core_extended
<TobiasBales>
Sure feels like it
<Drup>
you added core_extended to the list of dependencies and reran "oasis setup" ?
<TobiasBales>
Yes I did. I used `oasis setup -setup-update dynamic` (cargo culted from somewhere on the internet)
<TobiasBales>
yes, I was having some issues with it complaining about -threads not being there (for core_extended) I think. I just realised that that's gone now. So I can probably get rid of _tags altogether
<TobiasBales>
If I remove the _tags file it failes with `ocamlfind: Error from package `threads': Missing -thread or -vmthread switch`
<TobiasBales>
Interesting observation: when _tags is not present it calls `ocamlfind ocamlc -c -g -annot -bin-annot -package core_extended -I src -o src/shell_prompt.cmo src/shell_prompt.ml` and fails with the -threads/-vmthread message
<TobiasBales>
when there is an empty _tags file it calls `ocamlfind ocamlc -c -g -I src -o src/shell_prompt.cmo src/shell_prompt.ml` (note the missing -package core_extended) and then fails with the `Error: Unbound module Core_extended`
<Drup>
remove the _tags and add "threads" to the list of deps
<Drup>
you shouldn't write _tags yourself like than when using oasis
<Drup>
it conflicts with oasis' stuff
<TobiasBales>
that's good to know thanks, I'll give it a try
<TobiasBales>
okay
<TobiasBales>
and it works, thanks a ton. It seems weird to me that I have to add a dependency of a dependency but I guess that's how ocaml works? :D
<Drup>
No, it's just core_extended being wrong here
<Drup>
well, and also the fact that "threads" is a bit weird
<Drup>
(it's not only a library, it's also a modified runtime)
<TobiasBales>
Okay, so special snowflake kind of thing and not the norm. And if I add a library as a dependency (under normal circumstances) I should not have to add it's dependencies (or part of them) to my project ones, yes?
<Drup>
correct
<TobiasBales>
Okay, thank you very, very much for the help and insight.
<Drup>
TobiasBales: if you had to add all the dependencies of core_extended, it would be quite longer ...
<TobiasBales>
yeah thats what seemed odd
<Drup>
(try to type `opam list --resolve core_extended` :p)
KeyJoo has quit [Remote host closed the connection]
<TobiasBales>
:D
Associat0r has quit [Read error: Connection reset by peer]
eh_eff has joined #ocaml
Associat0r has joined #ocaml
Associat0r has quit [Changing host]
Associat0r has joined #ocaml
Associat0r has quit [Read error: Connection reset by peer]
Associat0r has joined #ocaml
Associat0r has joined #ocaml
Associat0r has quit [Changing host]
eh_eff has quit [Ping timeout: 248 seconds]
jagare has quit [Remote host closed the connection]
jagare_ has quit [Remote host closed the connection]
TheLemonMan has joined #ocaml
Associat0r has quit [Read error: Connection reset by peer]
ShalokShalom_ has joined #ocaml
ShalokShalom has quit [Ping timeout: 248 seconds]
Associat0r has joined #ocaml
Associat0r has joined #ocaml
Associat0r has quit [Changing host]
Associat0r has quit [Read error: Connection reset by peer]
Associat0r has joined #ocaml
Associat0r has joined #ocaml
Associat0r has quit [Changing host]
nicklaf has quit [Quit: leaving]
sam_ has joined #ocaml
Associat0r has quit [Read error: Connection reset by peer]
Associat0r has joined #ocaml
Associat0r has joined #ocaml
Associat0r has quit [Changing host]
sam_ has quit [Ping timeout: 246 seconds]
Associat0r has quit [Read error: Connection reset by peer]
Associat0r has joined #ocaml
Associat0r has joined #ocaml
Associat0r has quit [Changing host]
Associat0r has quit [Read error: Connection reset by peer]
Associat0r has joined #ocaml
Associat0r has joined #ocaml
Associat0r has quit [Changing host]
copy_ has joined #ocaml
Associat0r has quit [Read error: Connection reset by peer]
Associat0r has joined #ocaml
Associat0r has joined #ocaml
Associat0r has quit [Changing host]
Associat0r has quit [Read error: Connection reset by peer]
Associat0r has joined #ocaml
Associat0r has joined #ocaml
Associat0r has quit [Changing host]
sam_ has joined #ocaml
<theblatte>
what's the difference between "unknown" and "other" in spacetime profiling results? Most of my allocation shows up a big "unknown" section of live words :|
Andres_ has joined #ocaml
Andres_ has quit [Ping timeout: 260 seconds]
MK__ has joined #ocaml
Andres_ has joined #ocaml
igstan has joined #ocaml
igstan has quit [Client Quit]
<Andres_>
I would like to write a stateful protocol (over tcp) for some app similar to tcp ack-based protocol stack in ocaml. For instance, I have a start handshake, and then data passing, together with sending acks. Is there any peice of code that you can point me to as a best practice so I can start the basis using that structure?
<sgnb>
I guess mirage has that
ziyourenxiang has joined #ocaml
dakk__ has joined #ocaml
<def`>
theblatte: unknown... Could it be symbols lacking allocation information? (no debug symbols?)
<def`>
s/symbols/values
<def`>
could be C-allocated too
<theblatte>
I wanted to use spacetime to see if the GC was losing its shit because of allocations from C, so I'm biased towards thinking it's C :p
<theblatte>
hmm, so spacetime glumps everything without debug symbols together in "unknown"? that would be suboptimal as clicking on them would reveal their call sites, which could have debug symbols themselves
argent_smith has quit [Ping timeout: 240 seconds]
sepp2k has quit [Remote host closed the connection]
dakk__ has quit [Ping timeout: 248 seconds]
zv has quit [*.net *.split]
rjungemann has quit [*.net *.split]
mal`` has quit [*.net *.split]
abeaumont has quit [*.net *.split]
Orion3k has quit [*.net *.split]
jimmyrcom has quit [*.net *.split]
rossberg has quit [*.net *.split]
letoh has quit [*.net *.split]
vodkaInferno has quit [*.net *.split]
groovy2shoes has quit [*.net *.split]
ome has quit [*.net *.split]
grandy____ has quit [*.net *.split]
Fistine has quit [*.net *.split]
mankyKitty has quit [*.net *.split]
jimmyrcom has joined #ocaml
Orion3k has joined #ocaml
groovy2shoes has joined #ocaml
mal`` has joined #ocaml
_andre has joined #ocaml
argent_smith has joined #ocaml
ome has joined #ocaml
rossberg has joined #ocaml
zv has joined #ocaml
rjungemann has joined #ocaml
vodkaInferno has joined #ocaml
letoh has joined #ocaml
grandy____ has joined #ocaml
Fistine has joined #ocaml
mankyKitty has joined #ocaml
grandy____ has quit [Max SendQ exceeded]
mcspud has quit [Ping timeout: 255 seconds]
grandy____ has joined #ocaml
sam_ has quit [Ping timeout: 240 seconds]
Soni has quit [Excess Flood]
Soni has joined #ocaml
mcspud has joined #ocaml
Guest10288 is now known as micro_
ShalokShalom_ is now known as ShalokShalom
dakk has joined #ocaml
MK__ has quit [Remote host closed the connection]
dhil has joined #ocaml
samrat_ has joined #ocaml
sh0t has joined #ocaml
Andres_ has quit [Ping timeout: 260 seconds]
enterprisey has joined #ocaml
andreas__ has quit [Quit: Connection closed for inactivity]
enterprisey has quit [Remote host closed the connection]
abeaumont has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 248 seconds]
samrat_ has quit [Ping timeout: 255 seconds]
eh_eff has joined #ocaml
eh_eff has quit [Ping timeout: 252 seconds]
sam_ has joined #ocaml
Associat0r_ has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
TobiasBales has quit [Ping timeout: 240 seconds]
samrat_ has joined #ocaml
govg has quit [Ping timeout: 240 seconds]
Associat0r has quit [Ping timeout: 240 seconds]
dhil has quit [Ping timeout: 240 seconds]
al-damiri has joined #ocaml
yomimono has joined #ocaml
dhil has joined #ocaml
sam_ has quit [Ping timeout: 240 seconds]
samrat_ has quit [Ping timeout: 248 seconds]
samrat_ has joined #ocaml
Sakarah has joined #ocaml
jlam_ has joined #ocaml
MercurialAlchemi has joined #ocaml
ristos has joined #ocaml
maarhart has joined #ocaml
maarhart has quit [Client Quit]
dakk has quit [Ping timeout: 240 seconds]
jao has joined #ocaml
emias has quit [Ping timeout: 260 seconds]
sam_ has joined #ocaml
sam_ has quit [Ping timeout: 240 seconds]
jlam__ has joined #ocaml
jlam_ has quit [Ping timeout: 260 seconds]
samrat_ has quit [Ping timeout: 248 seconds]
KeyJoo has joined #ocaml
BitPuffin|osx has quit [Remote host closed the connection]
BitPuffin|osx has joined #ocaml
eh_eff has joined #ocaml
samrat_ has joined #ocaml
emias has joined #ocaml
yomimono has quit [Quit: Ex-Chat]
Sakarah has quit [Remote host closed the connection]
sam_ has joined #ocaml
sam_ has quit [Ping timeout: 255 seconds]
dhil has quit [Ping timeout: 240 seconds]
dhil has joined #ocaml
bruce_r has joined #ocaml
govg has joined #ocaml
TobiasBales has joined #ocaml
jnavila has joined #ocaml
TobiasBales has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Associat0r_ has quit [Read error: Connection reset by peer]
rostero has joined #ocaml
sam_ has joined #ocaml
sam_ has quit [Ping timeout: 240 seconds]
jlam_ has joined #ocaml
dhil has quit [Ping timeout: 240 seconds]
jlam__ has quit [Ping timeout: 264 seconds]
sillyotter has joined #ocaml
jlam_ has quit [Read error: Connection reset by peer]
jlam_ has joined #ocaml
Algebr has joined #ocaml
jnavila has quit [Ping timeout: 252 seconds]
jlam_ has quit [Read error: Connection reset by peer]
jlam_ has joined #ocaml
sillyotter has quit [Quit: WeeChat 1.4]
KeyJoo has quit [Read error: Connection reset by peer]
ygrek has joined #ocaml
dhil has joined #ocaml
TheLemonMan has joined #ocaml
samrat_ has quit [Ping timeout: 240 seconds]
freusque has quit [Quit: WeeChat 1.7.1]
sam_ has joined #ocaml
sam_ has quit [Ping timeout: 240 seconds]
ayxih has joined #ocaml
malina has joined #ocaml
dhil has quit [Ping timeout: 252 seconds]
eh_eff has quit [Ping timeout: 246 seconds]
jnavila has joined #ocaml
Denommus has joined #ocaml
rwmjones has quit [Ping timeout: 246 seconds]
jao has quit [Ping timeout: 255 seconds]
larhat has joined #ocaml
larhat has quit [Client Quit]
jao has joined #ocaml
sam_ has joined #ocaml
sam_ has quit [Ping timeout: 240 seconds]
MercurialAlchemi has quit [Ping timeout: 252 seconds]
igstan has joined #ocaml
igstan has quit [Client Quit]
eh_eff has joined #ocaml
jnavila has quit [Quit: Konversation terminated!]
argent_smith has quit [Quit: Leaving.]
sam_ has joined #ocaml
sam_ has quit [Ping timeout: 240 seconds]
Algebr has quit [Ping timeout: 240 seconds]
aciniglio has joined #ocaml
_andre has quit [Quit: leaving]
raphaelss has joined #ocaml
<ShalokShalom>
this article mentions "lack of support for shared libraries"