logs archiveBotHelp.net / Freenode / #2f30 / 2015 / August / 10 / 2
k0ga
uhmmmmm, a big number library can be interesting to me
dealing with integer types in the compiler is a bit ugly
stateless
k0ga, you mean to use bignum in the compiler itself?
k0ga
yes
stateless
and converting back to primitive types after the operations are done?
k0ga
until they are printed to the IR
the problems with integer operations in the compiler is that you have to take care of the host and target type
stateless
right
k0ga
Maybe the best solution is do all the operations in long long and then you don't have any problem
stateless
yeah that's what I was thinking
k0ga
we can stand we are ot going to implement number biggers than target long long
FRIGN
stateless: sqrt is planned
it's possible as soon as add, subtract, divide and so on are there
I'm working on addition atm
unsigned addition works perfectly
but opposing signs could mean trouble :P
I got all the concepts ready though
for division, multiplication and so on
just gotta write them down :P
stateless: as it stands now, my library will be _very_ lightweight
It will most probably be below 500 LOC
maybe even less
stateless
nice :)
k0ga
FRIGN: are you going to implemete the same interface than libmp?
s/than/that/
stateless
FRIGN, cool, as long as it is fast enough
FRIGN
k0ga: yeah
stateless: we'll see :P
k0ga
coooool :)
stateless
FRIGN, I mean doing an sqrt on 200 digits is instant with GNU bc
:D
FRIGN
:DD
200 digits base 10?
that would mean ~50 digits base 255
I did a small benchmark
and made one million additions
with a 4 digit base 255 number
it took like 2-3 secs
stateless
nice :)
yes base 10
z3bra
Morning!
stateless
morning z3bra
z3bra
what's up?
stateless
not much, debugging some crap at work
u/
z3bra
fixing some crap at work :P
Also, I made my first cross-compiler this week-end, and it was working!
baby's first x-compiler
xenkey
awh
FRIGN
enough of that for today :P
my head is spinning ^^
atmc
stateless: http://man.cat-v.org/p9p/1/9
'search for greek in the password file'
:D
FRIGN
atmc: btw, this is wrong :P
stateless
FRIGN, hm why? :P
because it might not include everything?
plan9 doesn't implement the collation crap, so you have to specify all the ranges + extra sh*t directly
FRIGN
yeah
k0ga
stateless: a new tool could be used fot this: colate greek ±-¶
s/fot/for/
grep '['`collate greek ±-¶`']' /etc/passwd
atmc
i wonder how these macbooks perform in the heat
my thinkpad is at 50C just sitting on the balcony
stateless
atmc, the x series was pretty cool
early x series
my x200 was 45C under load
(that's what she said)
atmc
:D
stateless
my t420 is 85C under load
:P
atmc
my x220 is 50C in the sun
heavy file ops
__20h__
My x240 is always ~50°C when idling with the web.
FRIGN
k0ga: collation is a _very_ complex topic
stateless
a compiler is a very complex topic but it is still a separate tool :P
lol
FRIGN
stateless: yeah, it's difficult
just like the kernel
you'd love to design it unix-like, but it just doesn't work :P
stateless
yeah
well fu*k collation, I am tired of it
no wonder plan9 did not bother with this crap
FRIGN, what issues would it have if it were a separate tool? as k0ga said you can give as input the language + the desired range and it can spit out a concatenation of all the necessary ranges to cover the requested range
I mean the library will be doing that any way even if it were not a standalone tool
so overall I think it would be just as complex as implementing it in a library
god I hate freebsd
I restarted the network but apparently that kicks out the default route
you need to run another command to add it back :(
now I need to login to drac to fix this
FRIGN
stateless: thing is, where do you find collation information?
there is a library called ICU
http://site.icu-project.org/
but it's bloated beyond repaier
*repair
I mean, they even provide their own stdio-functions
stateless
yeah icu is insane
retard
oh fu*k icu :|
Evil_Bob
collate her right in the pu**y
retard
harfbuzz-icu
« prev 1 2 3 4 next »