logs archiveBotHelp.net / Freenode / #2f30 / 2015 / August / 10 / 1
biniar
Good :)
I used to work with a Scotts man in the kitchen years ago
it involed a lot of yelling and throwing things across the kitchen and breaking glass and smoking weed
sure was fun
Evil_Bob
lol
good times, good times
disgusting_wall: please clean yourself, you're disgusting
FRIGN
damn, people spamming hackers@ again
k0ga
yeah
FRIGN: how was your week end?
FRIGN
k0ga: very nice, thanks for asking :)
what have you been working on?
k0ga
declarations
detect all the subtle things of declarations is not easy
FRIGN
yeah
k0ga
and the guys of ANSI comittee were totally stupid
extern keyword is totally fu*ked
Evil_Bob
FRIGN: ffs, someone pointed him to dev@ and he posts to hackers@ again... :|
morning btw :)
FRIGN
good morning! :)
having breakfast, cya
Evil_Bob
nice, off to work soon (first day again)
cya, good day sir, I SAID GOOD DAY
;)
k0ga
good day :P
FRIGN
good day lol
biniar
"Those who send HTML-mail only are doomed and should be banned."
Agree'd
hey everyone
atmc
k0ga: you ever programmed for microcontrollers?
like used a fu*kin compiler from fujitsu or the like
you can even redefine symbols on that
k0ga
atmc: in which form?
dsockwell
PIC is the last crazyassed proprietary microcontroller vendor as far as i know
atmc
you could define A in file a.c and extern A in file a.c which uses A from file b.c
dsockwell
that is, Microchip
these days you buy an AVR or ARM and compile for it with GCC
atmc
dsockwell: yea thats the best approach
dsockwell
Arduino also fits that description except it's cuter
k0ga
atmc: do you mean a.c{int a;extern int A;} and b.c{int a;} ?
atmc
nooo
a.c{int A; extern int A;}
and b.c{int A;}
k0ga
atmc: this is valid ANSI C code
atmc
what?
k0ga
stupid, but is valid
atmc
this should be banned
like banned by burning it in afire
k0ga
int A in a.c and b.c are tentative declarations
and the linker must join all the tentative declarations
atmc
you never know which variable you actually use
k0ga
the thing that is forbiden is:
atmc
because the effin compiler is mixing it up
or you are
dsockwell
~.
atmc
or both
k0ga
a.c{int A=1}, b.c{int A=1;}
you only can have one initilialization
atmc
i bet you can do this
k0ga
http://port70.net/~nsz/c/c89/c89-draft.html#3.7.2
A.6.2: * An identifier with external linkage is used but there does not exist exactly one external definition in the program for the identifier (3.1.2.2).
http://port70.net/~nsz/c/c89/c89-draft.html#A.6.2
in this aspect, c++ definition is better :(
external linkage in standard C is totally brain damaged
stateless
http://u.2f30.org/sin/cores-not-enough.png
:(
FRIGN
stateless, why did you fail me, son? :/
stateless
:(
FRIGN
btw, made some huge progess on the bignum library
:)
stateless
ah cool :)
FRIGN
LitoII does not like bignum libraries
:P
/rq
stateless
lol
I like hugenum libraries
FRIGN
what's the difference?
stateless
lol im joking
FRIGN
this is some output
255 255 255
0 0 0 1
the numbers are base 256
and this output is the addition + 1
255 255 255 = 255 * 255^0 + 255 * 255^1 + 255 * 255^2
= 16.646.655
:)
0 0 0 1 = 255^3 = 16.581.375
stateless
cool
FRIGN
ah my bad, stateless
if course it's 256^x instead of 255^x
:)
255 * 256^0 + 255 * 256^1 + 255 * 256^2 = 16777215
256^3 = 16777216
now it makes sense :)
stateless
ah ofc yes
what operations do you provide natively in the library?
just the basic ones or also things like sqrt()
or atan etc.
they can be built on top of it but they are very common for bignum stuff
we can then write a pi generator in a few lines :D
« prev 1 2 3 4 next »