These are chat archives for symengine/symengine

21st
Nov 2016
Siddharth
@bollu
Nov 21 2016 08:05
so, while I'm writing the haskell bindings, I need to deal with.. well, C-ness
what happens if something goes index out of bounds?
symengine currently crashes, correct?
Isuru Fernando
@isuruf
Nov 21 2016 08:05
index out of bounds of what?
Siddharth
@bollu
Nov 21 2016 08:06
for a vector
vecbasic_get
Isuru Fernando
@isuruf
Nov 21 2016 08:07
Yes, although those should be fixed.
This one doesn't crash, https://github.com/symengine/symengine/blob/master/symengine/cwrapper.cpp#L837
Siddharth
@bollu
Nov 21 2016 08:07
I see, thank you. So, well, how do I do error handling?
Isuru Fernando
@isuruf
Nov 21 2016 08:07
vecbasic_get should be changed like that
Siddharth
@bollu
Nov 21 2016 08:07
is there some sort of error code mechanism?
Any unrecognized error will return, SYMENGINE_RUNTIME_ERROR
Almost all functions return error codes like that. vecbasic_get and a few other are remaining
Siddharth
@bollu
Nov 21 2016 08:11
I see. I'll change it
shall I change all the vecbasic_* calls?
I'll make a PR
Isuru Fernando
@isuruf
Nov 21 2016 08:15
Yes, that'll be better
Siddharth
@bollu
Nov 21 2016 08:34
also, does symengine plan on having support for elliptic curve operations?
that's something I would be interested in coding up
Isuru Fernando
@isuruf
Nov 21 2016 08:35
what do you mean by that?
Siddharth
@bollu
Nov 21 2016 08:36
well, there's standard things you'd like to support, right? counting points on an elliptic curve over a finite field, discrete log implementation, etc. ?
Isuru Fernando
@isuruf
Nov 21 2016 08:41
Ah, @nishnik should be able to give an idea about finite fields.
Isuru Fernando
@isuruf
Nov 21 2016 08:48
@bollu, that is useful for the diophantine module in sympy as well.