MercurialAlchemi has quit [Ping timeout: 248 seconds]
MercurialAlchemi has joined #ocaml
igmp has quit [Ping timeout: 248 seconds]
Fardale has quit [Ping timeout: 240 seconds]
Fistine has quit [Ping timeout: 252 seconds]
tobiasBora has quit [Ping timeout: 240 seconds]
sam____ has joined #ocaml
al-damiri has quit [Quit: Connection closed for inactivity]
Fardale has joined #ocaml
Fistine has joined #ocaml
igmp has joined #ocaml
tobiasBora has joined #ocaml
sam____ has quit [Ping timeout: 246 seconds]
mbuf has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 260 seconds]
infinity0 has quit [Ping timeout: 240 seconds]
MercurialAlchemi has joined #ocaml
infinity0 has joined #ocaml
MercurialAlchemi has quit [*.net *.split]
jimt_ has quit [*.net *.split]
trevorriles has quit [*.net *.split]
freusque has quit [*.net *.split]
jimmyrcom has quit [*.net *.split]
aantron has quit [*.net *.split]
kolko has quit [*.net *.split]
rpip has quit [*.net *.split]
Cypi has quit [*.net *.split]
strmpnk has quit [*.net *.split]
wickedshell has quit [*.net *.split]
chelfi3 has quit [*.net *.split]
RomanZ5 has quit [*.net *.split]
dmj` has quit [*.net *.split]
nore has quit [*.net *.split]
sspi has quit [*.net *.split]
grandy____ has quit [*.net *.split]
jeroud has quit [*.net *.split]
dogui has quit [*.net *.split]
JSharp has quit [*.net *.split]
jeffmo has quit [*.net *.split]
cbarrett has quit [*.net *.split]
rgrinberg has quit [*.net *.split]
Asmadeus has quit [*.net *.split]
rfv has quit [*.net *.split]
yawnt has quit [*.net *.split]
stephe has quit [*.net *.split]
Rome has joined #ocaml
trevorriles has joined #ocaml
Asmadeus has joined #ocaml
stephe has joined #ocaml
nore has joined #ocaml
JSharp has joined #ocaml
jeroud has joined #ocaml
rfv has joined #ocaml
jeffmo has joined #ocaml
dmj` has joined #ocaml
sspi has joined #ocaml
rgrinberg has joined #ocaml
strmpnk has joined #ocaml
wickedshell has joined #ocaml
john51 has quit [Read error: Connection reset by peer]
john51 has joined #ocaml
nahra has quit [Remote host closed the connection]
nahra has joined #ocaml
cbarrett has joined #ocaml
isaachodes[m] has quit [Ping timeout: 252 seconds]
hdurer[m] has quit [Ping timeout: 246 seconds]
timclassic has quit [Ping timeout: 255 seconds]
samrat[m] has quit [Ping timeout: 255 seconds]
drsmkl[m] has quit [Ping timeout: 255 seconds]
regnat[m] has quit [Ping timeout: 240 seconds]
yetanotherion[m] has quit [Ping timeout: 264 seconds]
M-martinklepsch has quit [Ping timeout: 240 seconds]
srenatus[m] has quit [Ping timeout: 240 seconds]
multiocracy[m] has quit [Ping timeout: 240 seconds]
aspiwack[m] has quit [Ping timeout: 246 seconds]
rgr[m] has quit [Ping timeout: 255 seconds]
orbifx[m] has quit [Ping timeout: 255 seconds]
nkhodyunya has quit [Ping timeout: 252 seconds]
Bluddy[m] has quit [Ping timeout: 252 seconds]
copy[m] has quit [Ping timeout: 276 seconds]
M-jimt has quit [Ping timeout: 276 seconds]
M-ErkkiSeppl has quit [Ping timeout: 264 seconds]
smondet[m] has quit [Ping timeout: 264 seconds]
freusque has joined #ocaml
Cypi has joined #ocaml
chelfi3 has joined #ocaml
grandy____ has joined #ocaml
jimt_ has joined #ocaml
MercurialAlchemi has joined #ocaml
jimmyrcom has joined #ocaml
dogui has joined #ocaml
grandy____ has quit [Max SendQ exceeded]
kolko has joined #ocaml
grandy____ has joined #ocaml
eh_eff has joined #ocaml
rpip has joined #ocaml
yawnt has joined #ocaml
yawnt has joined #ocaml
yawnt has quit [Changing host]
pete_8 has joined #ocaml
pete_8 has quit [Client Quit]
eh_eff has quit [Ping timeout: 260 seconds]
pluplog has joined #ocaml
sz0 has joined #ocaml
Simn has joined #ocaml
sam____ has joined #ocaml
sam____ has quit [Ping timeout: 255 seconds]
cbot_ has quit [Quit: Leaving]
xvilka has quit [Changing host]
xvilka has joined #ocaml
AltGr has joined #ocaml
inr has quit [Quit: WeeChat 1.8]
samrat[m] has joined #ocaml
inr has joined #ocaml
TheLemonMan has joined #ocaml
aantron has joined #ocaml
Bluddy[m] has joined #ocaml
aspiwack[m] has joined #ocaml
M-martinklepsch has joined #ocaml
hdurer[m] has joined #ocaml
drsmkl[m] has joined #ocaml
srenatus[m] has joined #ocaml
M-jimt has joined #ocaml
smondet[m] has joined #ocaml
isaachodes[m] has joined #ocaml
rgr[m] has joined #ocaml
multiocracy[m] has joined #ocaml
yetanotherion[m] has joined #ocaml
orbifx[m] has joined #ocaml
regnat[m] has joined #ocaml
M-ErkkiSeppl has joined #ocaml
copy[m] has joined #ocaml
nkhodyunya has joined #ocaml
timclassic has joined #ocaml
dhil has joined #ocaml
samrat_ has quit [Ping timeout: 240 seconds]
sam___ has joined #ocaml
sam___ has quit [Ping timeout: 255 seconds]
andreas__ has joined #ocaml
enterprisey has quit [Read error: Connection reset by peer]
<flux>
hannes, I think EBADF is always a sign of a bug..
<poindontcare>
EBADF?
<flux>
an error status returned by some system calls dealing with file descriptors
<poindontcare>
Bad file descriptor; for example, I/O on a descriptor that has been closed or reading from a descriptor open only for writing (or vice versa).
<poindontcare>
ah k
pluplog has quit [Quit: Leaving.]
<poindontcare>
sounds BAD
govg has quit [Quit: leaving]
<flux>
the first case in particular, as it might also happen that your program opens a new file before that "EBADF" write occurs, and then it might write the data to the wrong file
Algebr` has quit [Ping timeout: 264 seconds]
mfp__ has joined #ocaml
jimt_ is now known as jimt
sz0 has quit [Quit: Connection closed for inactivity]
sam___ has joined #ocaml
argent_smith has joined #ocaml
sam___ has quit [Ping timeout: 260 seconds]
ia0 has quit [Quit: reboot]
ia0 has joined #ocaml
mbuf has quit [Ping timeout: 264 seconds]
Algebr` has joined #ocaml
Algebr` has quit [Ping timeout: 240 seconds]
martintrojer has joined #ocaml
dhil has quit [Ping timeout: 240 seconds]
dhil has joined #ocaml
sam___ has joined #ocaml
sam___ has quit [Ping timeout: 240 seconds]
dhil has quit [Ping timeout: 240 seconds]
mbuf has joined #ocaml
Algebr` has joined #ocaml
Algebr` has quit [Ping timeout: 252 seconds]
dhil has joined #ocaml
<hannes>
flux: if you write()/send() on a network socket, which is nonblocking, and an error occurs while sending, you won't see this error. at a later pointer when you read()/recv() (or again write()/send()), you'll get the EBADF.
ziyourenxiang has joined #ocaml
eh_eff has joined #ocaml
eh_eff has quit [Ping timeout: 240 seconds]
Mercuria1Alchemi has joined #ocaml
<ShalokShalom>
why does 800/80/8 result in 1 in OCaml and in 1.25 in my calculator?
<flux>
hannes, I did not know that, thanks; I would have expected it to just return 0
sam___ has joined #ocaml
<hannes>
ShalokShalom: since the division operator / in OCaml uses int -> int -> int. If you want to use floating point "numbers", you've to do 800. /. 80. /. 8. (/. is the floating point division, and 8. is the floating point number)
<octachron>
ShalokShalom, ( / ) is the quotient part of euclidean division
jimmyrcom_ has quit [Ping timeout: 240 seconds]
copy_ has joined #ocaml
sam___ has quit [Ping timeout: 240 seconds]
Algebr` has joined #ocaml
Algebr` has quit [Ping timeout: 260 seconds]
Mercuria1Alchemi has quit [Ping timeout: 240 seconds]
sz0 has joined #ocaml
sam___ has joined #ocaml
samrat has joined #ocaml
igstan has joined #ocaml
igstan has quit [Client Quit]
Algebr` has joined #ocaml
Algebr` has quit [Ping timeout: 252 seconds]
ShalokShalom_ has joined #ocaml
ShalokShalom has quit [Ping timeout: 255 seconds]
_andre has joined #ocaml
nullifidian has quit [Ping timeout: 264 seconds]
ziyourenxiang has quit [Read error: Connection reset by peer]
<ShalokShalom_>
thanks
ShalokShalom_ is now known as ShalokShalom
nullifidian has joined #ocaml
samrat has quit [Ping timeout: 240 seconds]
samrat has joined #ocaml
jao has joined #ocaml
jao has quit [Ping timeout: 240 seconds]
Algebr` has joined #ocaml
Algebr` has quit [Ping timeout: 240 seconds]
dhil has quit [Ping timeout: 240 seconds]
dhil has joined #ocaml
rpip has quit [Remote host closed the connection]
jbrown has joined #ocaml
reliability has joined #ocaml
reliability has quit [Ping timeout: 240 seconds]
sh0t has joined #ocaml
Algebr` has joined #ocaml
Algebr` has quit [Ping timeout: 240 seconds]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
<ShalokShalom>
can i launch OCaml code by marking it in the IDE and pressing a key combination?
<ShalokShalom>
like F-sharp. It can do this with VSCode and its REPL
<Armael>
...depends on your IDE?
<companion_cube>
in emacs, I think you can (with tuareg) load it
<companion_cube>
in the other ones I don't know
<Armael>
in emacs I use the utop minor mode
<companion_cube>
in VSCode it works, too
<Armael>
(which is bundled by default in the ocaml layer of spacemacs)
marcux has joined #ocaml
marcux has quit [Remote host closed the connection]
samrat has quit [Ping timeout: 260 seconds]
kakadu has quit [Ping timeout: 240 seconds]
kakadu has joined #ocaml
sz0 has quit [Quit: Connection closed for inactivity]
MercurialAlchemi has quit [Ping timeout: 240 seconds]
johnelse has quit [Quit: leaving]
jbrown has quit [Ping timeout: 240 seconds]
johnelse has joined #ocaml
Algebr` has joined #ocaml
Algebr` has quit [Ping timeout: 240 seconds]
TheLemonMan has joined #ocaml
sh0t has quit [Ping timeout: 240 seconds]
jbrown has joined #ocaml
sh0t has joined #ocaml
Last has joined #ocaml
samrat has joined #ocaml
Last has quit [Client Quit]
Last0 has joined #ocaml
<Last0>
Hello, i m having a problem with lablgtk2. I m trying to create a model file selection window, and it doesn't work. There is something I don't understand. Here is a simple example :
<Last0>
open GMain let locale = GtkMain.Main.init () let callback () = let window = GWindow.file_selection ~modal:true () in window#show() let main () = let window_p = GWindow.window ~width:320 ~height:240 ~title:"Windows" () in let box = GPack.vbox ~packing:window_p#add () in let button = GButton.button ~label:"Button" ~packing:box#add () in ignore (button#connect#clicked ~callback:callback); window_
<Last0>
open GMain let locale = GtkMain.Main.init () let callback () = let window = GWindow.file_selection ~modal:true () in window#show() let main () = let window_p = GWindow.window ~width:320 ~height:240 ~title:"Windows" () in let box = GPack.vbox ~packing:window_p#add () in let button = GButton.button ~label:"Button" ~packing:box#add () in ignore (button#connect#clicked ~callback:callback); window_
sz0 has joined #ocaml
<Last0>
sorry for that.............................
<Last0>
open GMain
<Last0>
let locale = GtkMain.Main.init ()
<Last0>
let callback () =
<Last0>
let window = GWindow.file_selection ~modal:true () in
<Last0>
window#show()
<Last0>
let main () =
<Last0>
let window_p = GWindow.window ~width:320 ~height:240 ~title:"Windows" () in
<Last0>
Actually, i like to make also a modal GToolbox.question_box
FreeBirdLjj has joined #ocaml
samrat has joined #ocaml
reliability has joined #ocaml
reliability has quit [Ping timeout: 260 seconds]
ziyourenxiang has joined #ocaml
reliability has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
<Last0>
Hi again. I have a problem with lablgtk2. I can't make a modal file_selection window. I also can't make a GToolbox.question_box modal. I put a simple example at:
BitPuffin|osx has quit [Ping timeout: 246 seconds]
ygrek has quit [Ping timeout: 248 seconds]
mbuf has joined #ocaml
reliability has quit [Ping timeout: 240 seconds]
dhil has quit [Ping timeout: 248 seconds]
dhil has joined #ocaml
tane has joined #ocaml
ziyourenxiang has quit [Ping timeout: 264 seconds]
Ragora has joined #ocaml
samrat has quit [Quit: Leaving]
jao has joined #ocaml
eh_eff has joined #ocaml
xpinguin has quit [Read error: Connection reset by peer]
xpinguin has joined #ocaml
andreas__ has quit [Quit: Connection closed for inactivity]
sz0 has quit [Quit: Connection closed for inactivity]
dhil has quit [Ping timeout: 252 seconds]
mbuf has quit [Quit: Leaving]
MercurialAlchemi has quit [Remote host closed the connection]
sh0t has quit [Ping timeout: 240 seconds]
sh0t has joined #ocaml
Denommus has joined #ocaml
richi235 has quit [Remote host closed the connection]
<Last0>
Hi again. I have a problem with lablgtk2. I can't make a modal file_selection window. I also can't make a GToolbox.question_box modal. I put a simple example at:
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
aciniglio has joined #ocaml
kakadu has quit [Quit: Konversation terminated!]
reliability has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
<aciniglio>
Question about extensions, what's the entry point for an attribute like [@@deriving x]? i.e. what triggers the code that then operates on that attribute?
FreeBirdLjj has joined #ocaml
<octachron>
aciniglio, attributes are pure metadata that are attached to the AST generated by the compiler; ppx extensions are then essentially AST to AST transformation that are applied after the parsing phase and before the typing phase of the compiler
andreas__ has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
<aciniglio>
how does the @@deriving attribute get parsed by the ppx_deriving code? I don't understand how they do it without something like [%parsethis] (which I think as an extension would trigger a registered mapper?)
<octachron>
[%extension_node] are just used to indicate a part of the AST that must be rewritten by a ppx rewriter, it does not trigger any rewriting by itself
Denommus` has joined #ocaml
Denommus has quit [Ping timeout: 240 seconds]
<octachron>
in other words, ppx extensions transform the whole parsed AST and are not limited to extension node.
<octachron>
It is possible to write a ppx extension that rewrite any program to `print_endline "Hello world"`
FreeBirdLjj has joined #ocaml
Denommus` is now known as Denommus
vishesh has joined #ocaml
<aciniglio>
octachron: I think I get it. Thank you. So then the act of 'registering' the ppx extension makes it available, and the compiler decides whether to invoke it (based on flags I guess)? And the ppx extension nodes and attributes are just there as data to help inform the transformation
<octachron>
aciniglio, so yes extension nodes and attributes are data available for the sake of ppx extension, and generally registering a ppx extension tells the driver that this specific ppx extension should be applied to the input ast tree
<octachron>
with the idea that multiple ppx extensions can be chained, so it can make sense to register them all first before applying them
kakadu has joined #ocaml
enterprisey has joined #ocaml
xpinguin has quit [Quit: Leaving]
kakadu_ has joined #ocaml
kakadu has quit [Ping timeout: 252 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
eh_eff has quit [Ping timeout: 255 seconds]
FreeBirdLjj has quit [Ping timeout: 240 seconds]
Ragora has quit [Read error: Connection reset by peer]
Ergatis has joined #ocaml
Ergatis has quit [Client Quit]
Algebr` has joined #ocaml
copy_ has quit [Quit: Connection closed for inactivity]
Ragora has joined #ocaml
enterprisey has quit [Read error: Connection reset by peer]
Simn has quit [Read error: Connection reset by peer]
jnavila has quit [Client Quit]
<Denommus>
can merlin work with ocsigen-start?
<Denommus>
what would the .merlin file for it look like?
reliability has joined #ocaml
pierpa has joined #ocaml
<Denommus>
ok, I just need to find out how to make merlin understand the i18n extension
<Last0>
Hi, add S <path_to_source> and B <path_to_binaries> in your .merlin
<Last0>
Hi again. I have a problem with lablgtk2. I can't make a modal file_selection window. I also can't make a GToolbox.question_box modal. I put a simple example at:
<Denommus>
what I needed was FLG -ppx 'ocsigen-i18n-rewriter Ocsigenproj_i18n'
aciniglio has quit [Ping timeout: 240 seconds]
argent_smith has quit [Quit: Leaving.]
<octachron>
Last0, what is the problem precisely? Your example seems to work correctly here.
kakadu has joined #ocaml
kakadu_ has quit [Ping timeout: 260 seconds]
reliability has quit [Ping timeout: 240 seconds]
xttraces has quit [Quit: Connection closed for inactivity]
<Last0>
The file_selection is not modal. If you click several time on the button, you ll open several file_selection windows. I don't want that to happen, i want to freeze the main window when the file_selection window is open.
reliability has joined #ocaml
cbot has joined #ocaml
Denommus has quit [Ping timeout: 252 seconds]
kakadu has quit [Remote host closed the connection]
<octachron>
this seems system specific, on my linux system, the file selection windows is modal
reliability has quit [Ping timeout: 240 seconds]
reliability has joined #ocaml
enterprisey has quit [Ping timeout: 240 seconds]
reliability has quit [Ping timeout: 260 seconds]
reliability has joined #ocaml
reliability has quit [Ping timeout: 260 seconds]
Algebr` has quit [Ping timeout: 260 seconds]
reliability has joined #ocaml
reliability has quit [Ping timeout: 240 seconds]
enterprisey has joined #ocaml
enterprisey has quit [Remote host closed the connection]