Re: [dev] Learn C

2019-03-26 Thread sylvain . bertrand
On Tue, Mar 26, 2019 at 08:56:07PM +0100, Kurt Van Dijck wrote: > I agree with most of your arguments > > > * use sized types: u8 u16 i64 float32 etc... you can use the C > > preprocessor to fix that, but in some case, as a good tradeof (for > > instance in > > "object oriented C code"), add

Re: [dev] Learn C

2019-03-26 Thread Kurt Van Dijck
I agree with most of your arguments > * use sized types: u8 u16 i64 float32 etc... you can use the C > preprocessor to fix that, but in some case, as a good tradeof (for instance > in > "object oriented C code"), add a suffix to your type (u8_t, struct > my_class_t), then > for instance yo

Re: [dev] Learn C

2019-03-26 Thread sylvain . bertrand
On Tue, Mar 26, 2019 at 08:37:18PM +0100, Quentin Rameau wrote: > > * do not use enum (hard rule) > > * do not use typedef (hard rule) > > * use sized types: u8 u16 i64 float32 etc... you can use the C > > preprocessor to fix that, but in some case, as a good tradeof (for > > instance in > > "

Re: [dev] Learn C

2019-03-26 Thread Quentin Rameau
> * do not use enum (hard rule) > * do not use typedef (hard rule) > * use sized types: u8 u16 i64 float32 etc... you can use the C > preprocessor to fix that, but in some case, as a good tradeof (for instance > in > "object oriented C code"), add a suffix to your type (u8_t, struct > my_clas

Re: [dev] Learn C

2019-03-26 Thread sylvain . bertrand
On Sun, Mar 24, 2019 at 10:28:35AM +0100, Thuban wrote: > Hi, > I want to learn C. I mean, sane C. > What i read before was based on big IDE such as codeblocks. So, I don't > know how to write Makefiles from scratch. (just an example). > As an example, I found gobyexample [1] great. But it's go. >

[dev] utf8 insertion tool

2019-03-26 Thread Calvin Morrison
hi guys, one thing missing on my setup forever was an easy way to do utf8 insertion on X11. anyway i had a think abouit it and the script turned out to be easy enough if you borrow /lib/keyboard from 9front and use dmenu. I have the below shitty oneliner tagged to Alt-U in my i3 bindings, then ty