#avr Logs

Mar 27 2019

#avr Calendar

12:43 AM day_ is now known as day
01:38 AM polprog: im porting ctags from the arduino tree to netbsd
01:39 AM polprog: they have redefined __unused__ as __attribute__((unused)) and our gcc doesnt wanna take that... had to use sed to change that token to CTAGS_UNUSED
01:40 AM polprog: same with printf attribute
01:40 AM polprog: it still wont compile but at least it produces more familiar errors
01:40 AM polprog: also gpl sucks.
02:18 AM rue_bed: ctags?
02:19 AM polprog: yeah
02:19 AM polprog: they made their own mix from exuberant ctags and something else
09:20 AM rue_mohr: oooh ok
09:20 AM rue_mohr: for when devs make files that are too big to find anything in
09:28 AM day: you're not living the "one c file" life?
09:30 AM rue_mohr: hell no
09:31 AM rue_mohr: I got a rule, no function is longer than what will fit on one screen in a reasonable font
09:53 AM cehteh: i have my screen in portrait mode :)
10:14 AM _ami_: cehteh, one of the screens? , for irc client?
10:46 AM cehteh: yeah
10:46 AM cehteh: but once a made fun with a picture where o have only the editor fullscreen
10:48 AM cehteh: cant find the pic
10:48 AM cehteh: https://pbs.twimg.com/media/Dssq4DfXcAExhEA.jpg but thats how it is now
11:15 AM LeoNerd: Anyone use the AVR 0-series or 1-series ATtiny chips much? I have a bunch of questions about them, unsure whether here is best because it might be too new; nobody really might know
11:20 AM cehteh: i recently looked at the 0-series and i am pretty underwhelmed
11:21 AM cehteh: i guess you need to know that it exactly fits your needs, esp with the little memory and you need lots of them to save money
11:22 AM LeoNerd: I've not seen the 0-series much. The 1-series adds quite a bit more on them though
11:23 AM cehteh: err 1 series perhaps. still underwhelmed, but i only skimmed the datasheets
11:23 AM LeoNerd: Overall they seem nice, and a lot more capable than the older generations of ATtiny
11:23 AM LeoNerd: random things like the xmega-style PORT modules, or the USART with fractional baud rate generator
11:23 AM LeoNerd: There's just a few -specific- things they seem lacking in, or at least, things that are more awkard and I've not worked out how to do
11:28 AM cehteh: i should look more in details
11:28 AM LeoNerd: I've slowly been writing a HAL for.. at least, the bits I usually use
11:29 AM LeoNerd: Overall I'm finding these chips don't need as much HAL as the previous generation, because the registers are generally a bit more sensibly laid out
11:30 AM LeoNerd: E.g. earlier ADCs probably need an adc_set_mux(ADC_MUX_WHATEVER); function because the MUX bits are part of one register so you have to do some messy bitmasking. But on these chips, there's a dedicated register for it, so an implementation of that would become just ADC0.MUXPOS = mux;
11:30 AM LeoNerd: at which point, why bother? Just inline that exactly into the application
12:46 PM paulo_ is now known as Guest44557
01:17 PM polprog: nice keyboard cehteh !
01:17 PM polprog: everyone has neat hd screen and im just sitting here porting arduino stuff on a 5:4 dell lcd
01:19 PM polprog: 1280x1024 in its NetBSD glory
01:19 PM polprog: https://i.ibb.co/mh0tYd3/2019-03-25-191059-1280x1024-scrot.png
01:47 PM gsi__ is now known as gsi_
03:00 PM vmt: polprog: i don't even know where to begin with on all the things i dislike in that screencap
03:00 PM polprog: take your time
03:01 PM vmt: may i ask why would you ever run something like netbsd
03:02 PM vmt: unless you have some specific hardware from yesteryear? well more like 10... yesteryears
03:02 PM polprog: yes and not really
03:02 PM polprog: no really*
03:03 PM polprog: i have a whole bunch of weird hardware...
03:03 PM polprog: i run it mostly for fun.
03:03 PM polprog: and to learn how kernels work etc.
03:03 PM vmt: also: urxvt, xmms and defo more so with a winamp skin
03:03 PM vmt: also arduino-ctags, what the hell
03:03 PM polprog: its not suitable for use as a daily driver imo, but good to throw on a weird x86 board like the thin clients
03:04 PM vmt: well surely not. if i had to do work on 1280x1024 i'd rather gouge my eyeballs out
03:05 PM polprog: i work on that resolution but its my second monitor, my primary is 1920x1080 or something
03:05 PM polprog: not on this pc the scrot is from
03:05 PM polprog: anyway, im porting the arduino stuff on netbsd, for fun
03:05 PM vmt: also sitting about 90% on a terminal, i have grown to dislike all terminal emulators not rendered with gpu
03:05 PM polprog: why would you even need to render a terminal emulator with gpu in the first place
03:06 PM polprog: urxvt is pretty neat imo... the default xfce one is not that bad either
03:06 PM polprog: when you sit 90% of time at a terminal, you need good contrast and proper, sharp font
03:07 PM vmt: e.g. scrolling is just so much smoother and more enjoyable, and my empirical evidence suggests it's much easier on my eyes
03:07 PM polprog: ive been using pretty many emulators over the years
03:08 PM polprog: urxvt seems to be the most balanced one. i only miss dynamic font size changing from xterm
03:08 PM vmt: the only one i can really stomach is kitty, which has pretty good font rendering too, via freetype2
03:08 PM polprog: literally two clicks away
03:08 PM polprog: oh, kitty is a cool font
03:08 PM vmt: no. terminal emulator
03:08 PM polprog: ah i remember
03:08 PM polprog: why did i think it was a font.. similar names
03:08 PM vmt: uses opengl, there's one rust terminal too but i really can't be bothered with rust so...
03:08 PM polprog: yeah... rust... lol
03:09 PM polprog: i need to give Kitty a try on my windows machines
03:09 PM vmt: arch ships with subpixel rendering disabled by default in ft2, but you can compile it yourself, just a switch or use aur for the patched one
03:09 PM vmt: iirc
03:10 PM polprog: nah, im happy, ive got pretty much similar setup on arch, different font
03:10 PM vmt: because of the possible patent infringement w/ microsoft on one of the filter presets
03:10 PM polprog: i think this on eis gohu and the one on netbsd is some default X server thing
03:11 PM polprog: https://i.ibb.co/1v4Kv1k/solaris-efer-fail.png
03:11 PM vmt: looks like a bitmap font
03:11 PM polprog: yeah
03:12 PM vmt: scaling will be dogturd
03:12 PM polprog: i think this one is good as well
03:12 PM polprog: https://i.ibb.co/3RGLfVq/2019-03-02-225445-1024x768-scrot.png
03:12 PM polprog: xfce4 terminal with DejaVu something font
03:13 PM polprog: this is the pentium mahcine that has capture cards installed
03:14 PM polprog: that cat uzi pic... its kinda sentimental... i remember my friend had that as a wallpaper on his computer back in 2009-odd
03:15 PM vmt: that looks like simple premul alpha ft2 rendering
03:15 PM vmt: i.e. non-subpixel
03:15 PM vmt: or... "cleartype"
03:15 PM polprog: its on debian, default setting
03:15 PM polprog: its was on a crt so subpixel rendering is not applicable xD
03:17 PM vmt: ohhh yeah kind of missed the whole 1024x768 part too
03:17 PM vmt: for some reason i thought it was cropped
03:20 PM vmt: oh by the way, rue_mohr i have a widget system ready. want to review it? i'm gonna need you to sign an nda though
03:20 PM polprog: so what are you up to recently?
03:21 PM polprog: if its not in perl+tk, im not even interested
03:21 PM vmt: it's c99
03:22 PM polprog: hmm... ill pass that. tell me more
03:22 PM vmt: and xml layouts for ease of design
03:22 PM vmt: well, a flavor of xml anyway.
03:25 PM vmt: i have the comm... loonix-version ready. xlib, uses a single x window for root windows for io, and a single shared opengl context
03:25 PM polprog: hmm
03:26 PM polprog: oh also, its bsd cause GPL sucks, linux kernel is massive
03:26 PM polprog: and with bsd kernel i was able to write a custom piece of code, compile and run it in about an hour from scratch
03:26 PM polprog: when i was hacking those bloody geode craputers.
03:27 PM vmt: sure
03:28 PM vmt: but e.g. gpu-support you can pretty much forget for modern chips
03:28 PM polprog: yeah
03:28 PM polprog: for that, definitely linux, or even windows sometimes.
03:28 PM vmt: nvidia is a total no-go and amd is good up to ~5-6 years ago
03:29 PM polprog: but in all seriousness, if you are doing this sort of work that is crucial to be done on high end GPUs then you can probably afford the api/docs/whatever
03:29 PM polprog: even matlab toolboxes, rofl
03:30 PM polprog: unless its like, mining shitcoin, then even on free software you're wasting money
03:30 PM polprog: lol
03:30 PM vmt: hmm... what do you mean by afford the api/docs/we=
03:30 PM vmt: ?* even
03:31 PM polprog: like, CUDA is free and open, but afaik the license is pretty commie as well
03:31 PM polprog: like, you have to publish all the data you use with CUDA
03:31 PM polprog: probably unelss you pay nvidia
03:31 PM vmt: well of course but you still need the driver layer, because gpu interfaces totally suck ass
03:32 PM vmt: and sure, for a big enough contract...
03:32 PM polprog: im not sure where they put that license, whether its the driver layer, or some library
03:32 PM polprog: havent done much of that in a long time. or much at all
03:33 PM polprog: i think it was mostly tensorflow with cuda support
03:34 PM vmt: sure. i think nvidia will want some *serious* cash to share their docs
03:34 PM polprog: ;)
03:35 PM vmt: amd is a much more open in that sense, even though their "foss" drivers still contain properitary black boxes
03:35 PM vmt: proprietary, even
03:38 PM vmt: also, for a spare-time project i've been toying with the idea of writing a modal editor for windows
03:39 PM vmt: a lack of a good one is the primary reason i won't switch to windows. gvim et al. are just horrible on windows
03:40 PM polprog: whats a modal editor?
03:40 PM polprog: modal as in modes? vi/vim?
03:40 PM vmt: yes
03:40 PM polprog: cool
03:41 PM vmt: but that would be a horrible timesink and just having finished the widget system for work, i feel kind of burned out
03:41 PM polprog: i decoded not to get involved in the FOSS or die bandwagon, i dont feel the need of having a custom system76 laptop with encrypted gentoo or anything.. i just wanna have fun computing
03:41 PM vmt: i have some ideas. now i just need someone to implement them for me. preferably for free, obviously
03:42 PM vmt: hahah
03:42 PM vmt: system76 is yesterday's news
03:43 PM polprog: its like what? custom lot of ME-disabled intel chips? My rubber hose and cable ties beat intel ME when it comes to you telling me your pw :D
03:43 PM vmt: yup
03:44 PM vmt: but that's yesterday's news, now it's all about POWER9
03:45 PM polprog: lol
03:45 PM polprog: some new powerpc iteration?
03:45 PM vmt: yes
03:45 PM vmt: e.g. the raptor ones
03:45 PM polprog: hmm
03:50 PM polprog: https://twitter.com/txsector/status/1110926907745304577?s=19
03:50 PM polprog: lol
03:52 PM vmt: hah
03:54 PM vmt: https://secure.raptorcs.com/content/TL2WK2/purchase.html
03:55 PM vmt: get them while they're hot
03:55 PM polprog: short of 5.5 grand :D
03:55 PM polprog: lol 7.5 with all the extras
03:56 PM vmt: $5.5k will get you 2x 4 smt4 cores
03:56 PM vmt: their flagship cpu is a 22 smt4 core p9
03:57 PM polprog: amazing
03:57 PM polprog: it might be cheaper and more secure to do things ont those geode thin clients, i paid like $2 for five
03:57 PM vmt: hahah
03:57 PM polprog: literally disposable
03:57 PM polprog: :D
03:58 PM polprog: also, recently got around to programming the pic board
03:58 PM vmt: oh, was it some free samples right?
03:58 PM polprog: yeah
03:58 PM vmt: i've been away for a month
03:58 PM vmt: of irc that is, roughly
03:59 PM polprog: mm
04:00 PM vmt: what'd you do with it?
04:00 PM davor_ is now known as davor
04:01 PM polprog: mmake it blink 3 leds like traffic lights
04:01 PM vmt: :D
04:01 PM polprog: cycled with the onboard pushbutton :D
04:01 PM vmt: iirc it was a tiny mcu yeah?
04:01 PM polprog: https://twitter.com/polprogpl/status/1109873033907453958
04:01 PM polprog: tiny as in waht?
04:01 PM polprog: pic18f16
04:03 PM vmt: oh, i remembered wrong
04:03 PM vmt: i remembered it being a very low pin count chip
04:03 PM vmt: was thinking of something else
04:04 PM polprog: its got... i think 26 pins broken out
04:05 PM vmt: sure. oh i saw ami there replying to that tweet. checked out his page and it seems full of stm32 stuff
04:05 PM vmt: so apparently people are getting on with the times!
04:07 PM vmt: https://twitter.com/RueNahcMohr/status/1109986370993307648
04:07 PM vmt: b-b-but your puny avr world is so slow compared to something like cm4/f
04:08 PM polprog: i need to make something with that stm32 thing
04:09 PM vmt: which
04:10 PM polprog: stm32f103? cortex m3
04:10 PM polprog: blue pill breakout
04:11 PM vmt: mmm. something creative with dma perhaps
04:11 PM polprog: ohh yeah
04:11 PM polprog: maybe some image related stuff
04:12 PM vmt: mmm. or fft is always fashionable
04:12 PM polprog: yeah, but i dont think i understand the maths behind it
04:13 PM vmt: i urge you to study it. it's not as complicated as it might seem off a first glance
04:14 PM polprog: i really want
04:14 PM polprog: but this time, in a month ill have my high school finals and ill need to get to some uni so im putting off a lot of not school related stuff
04:14 PM polprog: or at least im trying...
04:14 PM polprog: ;)
04:15 PM vmt: how many exams is that in poland?
04:15 PM polprog: hmm.
04:15 PM vmt: and can you choose which to take or are they all mandatory?
04:15 PM polprog: 3 basic level, mandatory, that is basic polish, basic maths and basic english
04:15 PM polprog: and i take ext. maths, ext physics and ext english, so six in total
04:16 PM vmt: that's not that bad then
04:16 PM polprog: yeah, they are pretty bearable
04:16 PM vmt: you have a degree in mind?
04:16 PM polprog: we have had so much mock exams that were pretty well prepared
04:16 PM polprog: ill probably study electronic engineering
04:17 PM vmt: sure. can you get in just by final score, figure math & phys, or will you need to take some kind of an admission exam?
04:17 PM polprog: no admission exams at all
04:18 PM vmt: so solely by final grades?
04:18 PM polprog: by exam score, yes
04:18 PM vmt: alright. well seems like you're pretty much set then:D
04:18 PM polprog: i hope so :D
04:19 PM vmt: also i figure you'll go through dft already during your bs degree so i guess it can wait a bit;D
04:24 PM polprog: most likely ;)
04:27 PM polprog: nighters
04:42 PM vmt: nn!
09:14 PM ville_ is now known as ville
10:49 PM kiki_lamb: Huh, any ideas why this line makes avr-g++ give me an "expected ')' before ')'"? line: if ( auto e = encoder_button_source.dequeue_event(); e != EVT_NOT_AVAILABLE ) queue_event(e);
10:49 PM kiki_lamb: that should be valid with std=g++17 turned on, no?