BitPuffin has quit [Remote host closed the connection]
neatonk has joined #ocaml
markoong has quit [Remote host closed the connection]
mfp has quit [Ping timeout: 256 seconds]
hdon has quit [Ping timeout: 268 seconds]
silver_ has quit [Read error: Connection reset by peer]
halogena1dtoast has joined #ocaml
halogena1dtoast has quit [Ping timeout: 268 seconds]
hdon has joined #ocaml
hdon has quit [Ping timeout: 240 seconds]
tormen_ has joined #ocaml
tormen has quit [Ping timeout: 240 seconds]
moei has quit [Quit: Leaving...]
neatonk has quit [Ping timeout: 265 seconds]
jbrown has quit [Ping timeout: 260 seconds]
hdon has joined #ocaml
hdon has quit [Ping timeout: 260 seconds]
moei has joined #ocaml
malina has quit [Ping timeout: 264 seconds]
hdon has joined #ocaml
hdon has quit [Ping timeout: 240 seconds]
mal`` has quit [Quit: Leaving]
mal`` has joined #ocaml
TarVanimelde has joined #ocaml
keep_learning has quit [Remote host closed the connection]
hdon has joined #ocaml
cbot has quit [Quit: Leaving]
pierpal has quit [Read error: Connection reset by peer]
unyu has quit [Ping timeout: 276 seconds]
hdon has quit [Ping timeout: 260 seconds]
<ZirconiumX>
It's fantastic that I can debug a problem with a type with just a [@@deriving show]. Granted, the Lisp guys may have more introspectable code, but this is still pretty fantastic
keep_learning has joined #ocaml
TarVanimelde has quit [Quit: TarVanimelde]
pierpal has joined #ocaml
_whitelogger has joined #ocaml
orbifx has joined #ocaml
Haudegen has joined #ocaml
unyu has joined #ocaml
tarptaeya has joined #ocaml
yomimono has quit [Ping timeout: 265 seconds]
mk9 has joined #ocaml
zolk3ri has joined #ocaml
mk9 has quit [Quit: mk9]
mk9 has joined #ocaml
mk9 has quit [Client Quit]
hdon has joined #ocaml
FreeBirdLjj has joined #ocaml
nicoo has quit [Remote host closed the connection]
mfp has joined #ocaml
nicoo has joined #ocaml
hdon has quit [Ping timeout: 260 seconds]
larhat has joined #ocaml
mk9 has joined #ocaml
<ZirconiumX>
Is it possible to use Bigarray.Array1.change_layout to cast a uint8 array to int32?
BitPuffin has joined #ocaml
<mrvn>
don't think so. You can Obj.magic it if you are carefull about the alignment
<Armael>
uhhh never use Obj.magic
<bartholin>
s/never/always/
jnavila has joined #ocaml
<Armael>
:/
<ZirconiumX>
I'll make do with manually reading out the bytes for now.
orbifx has quit [Quit: WeeChat 2.1]
mk9 has quit [Quit: mk9]
tarptaeya has quit [Ping timeout: 240 seconds]
jnavila has quit [Ping timeout: 240 seconds]
mk9 has joined #ocaml
mk9 has quit [Client Quit]
<mrvn>
It would be better to start with an int32 array
ousado has quit [Ping timeout: 240 seconds]
ousado has joined #ocaml
BitPuffin has quit [Remote host closed the connection]
<ZirconiumX>
Mmm, I'm writing an emulator. I could use an int32 array, but arrays are too short on 32-bit platforms
Haudegen has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 268 seconds]
<discord>
<Perry> ZirconiumX: I was a lisp guy once. I kind of dream of the cross between OCaml and Scheme, but OCaml ain't bad.
shinnya has joined #ocaml
<ZirconiumX>
Maybe one day
BitPuffin has joined #ocaml
jnavila has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
jnavila has quit [Ping timeout: 256 seconds]
larhat has quit [Quit: Leaving.]
Haudegen has joined #ocaml
shw has left #ocaml [#ocaml]
hdon has joined #ocaml
hdon has quit [Ping timeout: 256 seconds]
shinnya has quit [Ping timeout: 245 seconds]
halogena1dtoast has joined #ocaml
sz0 has joined #ocaml
ratschance has quit [Remote host closed the connection]
ratschance has joined #ocaml
jack5638 has quit [Ping timeout: 276 seconds]
jack5638 has joined #ocaml
yomimono has joined #ocaml
tokomak has joined #ocaml
malina has joined #ocaml
shinnya has joined #ocaml
tokomak has quit [Ping timeout: 268 seconds]
tokomak has joined #ocaml
JimmyRcom has joined #ocaml
jbrown has joined #ocaml
larhat has joined #ocaml
halogena1dtoast has quit [Ping timeout: 256 seconds]
troydm has joined #ocaml
cthuluh has quit [Remote host closed the connection]
jimmyrcom_ has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
sz0 has quit [Quit: Connection closed for inactivity]
BitPuffin has quit [Ping timeout: 264 seconds]
inr has quit [Read error: Connection reset by peer]
inr has joined #ocaml
jave has quit [Ping timeout: 264 seconds]
Haudegen has quit [Quit: No Ping reply in 180 seconds.]
c4rc4s has quit [Ping timeout: 256 seconds]
kit_ty_kate has quit [Ping timeout: 264 seconds]
troydm has quit [Ping timeout: 264 seconds]
emias has quit [Ping timeout: 264 seconds]
Haudegen has joined #ocaml
emias has joined #ocaml
jave has joined #ocaml
kit_ty_kate has joined #ocaml
troydm has joined #ocaml
dhil has joined #ocaml
hdon has joined #ocaml
pierpal has quit [Ping timeout: 240 seconds]
pierpal has joined #ocaml
c4rc4s has joined #ocaml
hdon has quit [Ping timeout: 256 seconds]
pierpal has quit [Ping timeout: 240 seconds]
tane has joined #ocaml
Haudegen has quit [Remote host closed the connection]
mk9 has joined #ocaml
Haudegen has joined #ocaml
ziyourenxiang has quit [Ping timeout: 256 seconds]
unyu has quit [Quit: The end of the world is nigh. Bring as much popcorn as you can!]
halogena1dtoast has joined #ocaml
letoh has quit [Ping timeout: 256 seconds]
steenuil has quit [Remote host closed the connection]
halogena1dtoast has quit [Ping timeout: 245 seconds]
jnavila has quit [Remote host closed the connection]
<Leonidas>
hannes: oh, this is even better, thanks! I've used AVR a few years ago and I imagine it is easier to work with than PIC :)
shinnya has quit [Ping timeout: 264 seconds]
cthuluh has joined #ocaml
letoh_ has quit [Quit: Reconnecting]
letoh has joined #ocaml
larhat has joined #ocaml
<wilfredh>
is it idiomatic in ocaml to declare the types of your functions?
<wilfredh>
let parse_problem (p_line: string) : problem_spec = ...
<wilfredh>
or should I only put this in a .mli, or not bother?
<Armael>
I think it's good practice to do this
<wilfredh>
I feel like it sometimes makes the functions more readable
Jesin has joined #ocaml
steenuil has joined #ocaml
<Armael>
Yes
<Armael>
You also get better type error messages by specifying the types at boudaries
<ZirconiumX>
Generally I only explicitly type my variables when I have records with fields with the same name
mk9 has quit [Quit: mk9]
malina has quit [Ping timeout: 245 seconds]
Patch has joined #ocaml
noitakomentaja has quit [Ping timeout: 250 seconds]
tane has quit [Quit: Leaving]
dedgrant has joined #ocaml
octarin has quit [Quit: leaving]
wilfredh has quit [Ping timeout: 260 seconds]
noitakomentaja has joined #ocaml
<discord>
<Perry> Adafruit now sells Feathers with an ARM Cortex 4 on them, loads of RAM, etc., etc., for $22
<discord>
<Perry> Those might be interesting OCaml on MCU targets.
<discord>
<Perry> On type declarations: I don't know if it is common, but I start adding them when I have a type error until the error message becomes clear. 😃
<Armael>
I add them systematically nowadays
malina has joined #ocaml
keep_learning has quit [Quit: Ping timeout (120 seconds)]
al-damiri has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
larhat has quit [Quit: Leaving.]
Haudegen has quit [Read error: Connection reset by peer]
<discord>
<Perry> It would be neat if there was some merlin assistance in this. That is, if you could tell it "insert the type declaration here" and it did it.
<discord>
<Perry> It would take some of the tedium out of writing them.