4 ms·
Yes, Julia doesn't auto-convert to BigInt, it's a trade-off between performance and easy-to-useness, but they've definitely made the right decision. You have t
by RivieraKid 13y ago
Yes, Julia doesn't auto-convert to BigInt, it's a trade-off between performance and easy-to-useness, but they've definitely made the right decision.
You have to convert to BigInt or BigFloat like this:
julia> big(3) ^ 60
42391158275216203514294433201
- rdtsc 13y agoWhy not have them as BigInt and donwconvert to machine sized ints explicitly? In any case. If you think of it as a nicer C, it works very well. It is a slight disappointment if you think of it as a nicer Python.
- RivieraKid 13y agoBeacause it would make writing fast code inconvinient, it's a tradeoff, a right choice clearly imo. How often do you need BigInts? I try to use Julia instead of Python now if I don't need specific libs, it definitey feels like a nicer language to me (i.e. I can get stuff done faster).