adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.09 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.09/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
lembot has joined #ocaml
olle has quit [Ping timeout: 264 seconds]
olle has joined #ocaml
bitonic has quit [Ping timeout: 265 seconds]
rgrinberg has quit [Ping timeout: 260 seconds]
angerman has quit [Read error: Connection reset by peer]
higherorder has quit [Ping timeout: 258 seconds]
wildsebastian has quit [Ping timeout: 240 seconds]
jeroud_ has quit [Ping timeout: 240 seconds]
angerman has joined #ocaml
rgrinberg has joined #ocaml
bytesighs has quit [Read error: Connection reset by peer]
caasih has quit [Ping timeout: 256 seconds]
bytesighs has joined #ocaml
wildsebastian has joined #ocaml
caasih has joined #ocaml
jeroud_ has joined #ocaml
bitonic has joined #ocaml
angerman has quit [Ping timeout: 256 seconds]
higherorder has joined #ocaml
angerman has joined #ocaml
lembot has quit [Quit: WeeChat 2.3]
sleepydog has joined #ocaml
mfp has quit [Ping timeout: 256 seconds]
sleepydog has quit [Quit: Leaving]
inkbottle has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
dckc has quit [Ping timeout: 256 seconds]
dckc has joined #ocaml
amosbird has quit [Quit: ZNC 1.7.1 - https://znc.in]
runciter_ has joined #ocaml
runciter has quit [Ping timeout: 260 seconds]
runciter_ is now known as runciter
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
_whitelogger has joined #ocaml
mbuf has joined #ocaml
kleisli has joined #ocaml
coldpress66 has joined #ocaml
coldpress66 has quit [Remote host closed the connection]
coldpress69 has joined #ocaml
coldpress69 has quit [Remote host closed the connection]
chripell has joined #ocaml
ofzyh has joined #ocaml
Haudegen has joined #ocaml
vicfred has quit [Quit: Leaving]
dckc has quit [Ping timeout: 260 seconds]
dckc has joined #ocaml
bartholin has quit [Quit: Leaving]
jeroud_ has quit []
jeroud has joined #ocaml
jbrown has joined #ocaml
Serpent7776 has joined #ocaml
andreas303 has quit [Ping timeout: 240 seconds]
dborisog has joined #ocaml
andreas303 has joined #ocaml
rnrwashere has joined #ocaml
rnrwashere has quit [Client Quit]
gareppa has joined #ocaml
gareppa has quit [Quit: Leaving]
kleisli has quit [Ping timeout: 265 seconds]
stux|RC-only has quit [Ping timeout: 256 seconds]
mfp has joined #ocaml
olle_ has joined #ocaml
nullcone has quit [Quit: Connection closed for inactivity]
stux|RC-only has joined #ocaml
Anarchos has joined #ocaml
porchetta has quit [Ping timeout: 256 seconds]
porchetta has joined #ocaml
tane has joined #ocaml
porchetta has quit [Ping timeout: 256 seconds]
porchetta has joined #ocaml
jco has joined #ocaml
<jco> Hello! Building installing a local program with dune given two opam files. Our project structure is the following: we have two projects: one being in a subdirectory bot-components
<jco> and the other one is at the root of the directory
<jco> we generate the opam files for the two projects with a dune-project
Anarchos has quit [Quit: Vision[0.10.3]: i've been blurred!]
<jco> but when we install them with opam there is an error which indicates that a dune-project containing a field (name <>) should be added in bot-components/dune-project
jco1 has joined #ocaml
jco has quit [Ping timeout: 272 seconds]
Anarchos has joined #ocaml
Anarchos has quit [Quit: Vision[0.10.3]: i've been blurred!]
dckc has quit [Ping timeout: 272 seconds]
dckc has joined #ocaml
peterbb has joined #ocaml
peterbb has quit [Quit: peterbb]
peterbb has joined #ocaml
peterbb has quit [Remote host closed the connection]
leah2 has quit [Ping timeout: 260 seconds]
vicfred has joined #ocaml
olle_ has quit [Read error: Connection reset by peer]
leah2 has joined #ocaml
HyperTables has joined #ocaml
<HyperTables> how do I use this? `val pp_hum : Stdlib.Format.formatter -> t -> unit` ... I reckon it's printfable to something but I'm not too familiar with that
<HyperTables> I'd like to print a sexp (type `t`) to standard output or standard error (either suits me)
<companion_cube> `Format.printf "%a@." pp_hum the_sexp`
<companion_cube> (@. inserts a new line and flushes)
<HyperTables> thanks
muskan has joined #ocaml
oriba has joined #ocaml
tane has quit [Quit: Leaving]
peterbb has joined #ocaml
<oriba> I'm looking for a simple notty-example, something like open terminal, write some text here, write other text there (as if writing into two regions / subwindows with ncrurses). The examples use notty to just do enhanced fance printing (enhanced printf). But I need an example on a terminal application with different regions/subwindows.
<oriba> where to find such an example?
chripell has quit [Ping timeout: 246 seconds]
dborisog has quit [Ping timeout: 260 seconds]
muskan has quit [Ping timeout: 245 seconds]
HyperTables has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
andreas303 has quit [Remote host closed the connection]
andreas303 has joined #ocaml
<olle> the f is notty?
<rgrinberg> I don't think notty is enough for that, you need to use something like lwd on top
mbuf has quit [Quit: Leaving]
<flux1> is OCaml try catch 100% free if you don't catch anything?
<flux1> ..I mean, an exception isn't thrown
<companion_cube> it's pretty cheap
bartholin has joined #ocaml
Hrundi_V_Bakshi has joined #ocaml
<oriba> rgrinberg: notty has Notty.Term, Notty_unix, should be enough for a terminal application? With lwd, you mean https://github.com/let-def/lwd ?
<companion_cube> it's enough, but it's manual, is all
<oriba> so, notty without something on top is more work than curses?
<companion_cube> idk, what is curse like?
<oriba> in python it would look like this: https://docs.python.org/3/howto/curses.html
kleisli has joined #ocaml
<companion_cube> you don't really have windows in notty, afaict
<companion_cube> you get to draw an "image" on the terminal
<companion_cube> and get input events
<oriba> yes, I thought those images innotty might help there. But I don't know if its more work trying it this way.
jco1 has quit [Quit: WeeChat 2.8]
peterbb has quit [Quit: peterbb]
<olle> what's really the difference between a tuple and an array with fixed length?
<companion_cube> tuples contain different types
<companion_cube> int*bool*float
<olle> could they be extended? hm, guess it's not possible to design a function like add_to_tuple t element = ...
<olle> you'd end up with a tree :)
<olle> or a list
<olle> but you can store the length with the element, right?
<olle> but you get linear access times
<olle> hm
<olle> let new_tuple = (element, ...old_tuple) in
<olle> merge_tuples t s = ?
<companion_cube> merge_tuples wouldn't be typable
<companion_cube> new_tuple could be if we had row polymorphis,
<companion_cube> polymorphism
<olle> ah, so merge_objects works?
<olle> but maybe not for arbitrary objects
<companion_cube> hu, what?
<olle> let new_object obj el = <obj + el>
<olle> ?
<olle> for any obj and el
<olle> element*
nullcone has joined #ocaml
<waleee-cl> olle: in purescript you can have that tuple extension
<companion_cube> well not in OCaml
<olle> but ocaml objects *are* row polymorphism?
jbrown has quit [Ping timeout: 272 seconds]
<companion_cube> kind of, it's hidden though, afaik
<olle> ?
<olle> < n
<olle> < int, string, .. >
<companion_cube> well the operation you're talking about isn't available to the user, afaik
<olle> companion_cube: only if obj is explicitly typed?
<companion_cube> ocaml objects are typed
<companion_cube> I'm not sure what you mean
<olle> hm, so you can't do < 'a, 'b > ?
<companion_cube> no
<olle> awww
Serpent7776 has quit [Quit: leaving]
Anarchos has joined #ocaml
bartholin has quit [Ping timeout: 256 seconds]
Hrundi_V_Bakshi has quit [Ping timeout: 256 seconds]
Anarchos has quit [Ping timeout: 240 seconds]