2013-01-29 00:14 I don't have a big success rate in bios updates 2013-01-29 00:19 i try to ignore them. not having to figure out what to do with bios_updater_win_xp.zip is much better for my blood pressure ;-) 2013-01-29 00:23 well, this one is pretty good 2013-01-29 00:23 first, it *actually* can read the flash from a 32GB USB flash drive formatted to vfat 2013-01-29 00:23 and it doesn't require any windows bullshit 2013-01-29 00:24 as you can see it also can successfully flash the chip, which is also an achievement 2013-01-29 00:25 wow. didn't know it was christmas again ;-) 2013-01-29 00:25 wpwrak: christmas? 2013-01-29 00:26 when you get gifts :) 2013-01-29 00:26 heh 2013-01-29 00:26 it also has a nasty habit of making first power-up after flashing last for half a second 2013-01-29 00:26 after which the machine simply goes black 2013-01-29 00:27 I hope the engineer who designed that will wake up monthly to see a serial killer place his knife next to his neck and then silently flee 2013-01-29 00:28 aaaand no, of course these morons did not actually fix any of the actual BIOS bugs. 2013-01-29 00:28 *sigh 2013-01-29 00:28 again. 2013-01-29 00:28 sign 2013-01-29 00:28 [commit] Werner Almesberger: libubb/mmcclk.c (mmcclk_first): add flags to relax clock selection constraints (master) http://qi-hw.com/p/ben-blinkenlights/591bb64 2013-01-29 00:28 [commit] Werner Almesberger: ubb-patgen/ubb-patgen.c (frequencies): adapt use of mmcclk for API change (master) http://qi-hw.com/p/ben-blinkenlights/66a487b 2013-01-29 00:28 [commit] Werner Almesberger: ubb-la/ubb-la.c (frequency): adapt use of mmcclk for API change (master) http://qi-hw.com/p/ben-blinkenlights/85bda4c 2013-01-29 00:28 [commit] Werner Almesberger: ubb-la/ubb-la.c: new option -F freq_MHz to select "unsafe" frequencies (master) http://qi-hw.com/p/ben-blinkenlights/f862a82 2013-01-29 00:28 [commit] Werner Almesberger: ubb-patgen/ubb-patgen.c: new option -F freq_Hz to select "unsafe" frequencies (master) http://qi-hw.com/p/ben-blinkenlights/04b235c 2013-01-29 00:28 [commit] Werner Almesberger: ubb-patgen/ubb-patgen.c: new option -I inter_s to select "unsafe" frequencies (master) http://qi-hw.com/p/ben-blinkenlights/128590b 2013-01-29 00:29 i take the christmas back :) but it's nice to see my "don't worry about BIOS updates" policy validated 2013-01-29 00:30 well, they did add windows 8 support 2013-01-29 00:30 tiles, here we come ! ;-) 2013-01-29 00:31 * whitequark was going to add something sarcastic, but just "windows 8" is enough 2013-01-29 00:32 in unrelated news, my language slowly turns into something like C++, but without all the insane "oh we accidentally turing-completed templates" 2013-01-29 00:32 the turing-completeness in my system is very much intended. 2013-01-29 00:32 well, tiles date back to the bronze age. so that sounds about right for windows :) 2013-01-29 00:33 templates, the ultimate achievement in obfuscation 2013-01-29 00:35 wpwrak: if you want a compile-time loop, you just write a fucking loop. that's how I do it :) 2013-01-29 00:35 or, if you for some weird reason want to parse some pngs at compile-time, then convert it to 2-bit grayscale and store as constants--why not. 2013-01-29 00:36 yeah, never underestimate the combined power of make and #include 2013-01-29 00:36 or compute a trigonometric function table taking into account endianness or word width of your target 2013-01-29 00:36 or... 2013-01-29 00:37 wpwrak: you can't do the latter without some really heavyweight magic. 2013-01-29 00:37 and then you have a target which has non-IEEE-compliant floats, and you need to generate something for them 2013-01-29 00:38 and then you begin to despise your desire to stay with make and #include ;) 2013-01-29 00:38 huh ? static crazy_type[] = { CONST1, CONST2, CONST3, ... }; 2013-01-29 00:38 leave it to the (cross-)compiler to figure out the machine representation 2013-01-29 00:39 and of course, that array is generated at make time 2013-01-29 00:39 wpwrak: obviously. now, make a sin() table. 2013-01-29 00:39 in a portable way of course, because that's a library. 2013-01-29 00:39 sin.inc:\n\tperl -e make_sin_table.pl >sin.inc 2013-01-29 00:40 not portable, because see above: you have a target with weird floats. 2013-01-29 00:41 so ? sin.inc has them in ASCII 2013-01-29 00:41 and from what I know, ARM floats and x86 floats do behave differently. 2013-01-29 00:41 the ASCII to weird conversion happens in the cross-compiler 2013-01-29 00:41 the one that #includes sin.inc 2013-01-29 00:42 you're just bloating the language instead of using the potential of the tools already available to you. of course, that's the C++ way ;-) 2013-01-29 00:42 you also cannot precisely represent floats in decimal notation, you know, right? :) 2013-01-29 00:43 this is why e.g. LLVM assembly has float literals in hex. 2013-01-29 00:43 well, i can make a worst-case estimate of epsilon and just pump out enough digits 2013-01-29 00:43 oh, I don't bloat anything, nor I require the programmer to use third-party tools for the stuff the compiler *already knows* 2013-01-29 00:43 it is aware of all target semantics, and of the precise configuration this code is being compiled with 2013-01-29 00:44 perl is not 2013-01-29 00:44 perl doesn't need to since you can intelligently divide the task :) 2013-01-29 00:47 meh 2013-01-29 00:50 emeb has quit [Quit: Leaving.] 2013-01-29 00:56 guanucoluis has joined #qi-hardware 2013-01-29 00:57 oh nice, that bios update actually broke the battery meter 2013-01-29 00:58 hmm, anti-christmas ? 2013-01-29 00:58 through I'm not sure how exactly because ACPI reports correct values. but my status widget displays inf% 2013-01-29 00:58 i guess i got coal :) 2013-01-29 00:59 better be careful what you wish for ... things like uncommanded overheating do exist 2013-01-29 00:59 it's called "oh this website has flash" 2013-01-29 00:59 interesting. "uncommanded" isn't in the dictionary. such a useful word. 2013-01-29 01:00 yeah, that's a good predicator 2013-01-29 01:00 the damn thing goes 100% on one of my cpu cores each time I wake the machine up 2013-01-29 01:00 something with alsa I guess 2013-01-29 01:01 that confirmation came quickly ;-) 2013-01-29 01:01 well it isn't quite bios-related. but still annoying. 2013-01-29 01:01 going from christmas to christmas cancelled to anti-christmas to antichrist-mas :) 2013-01-29 01:02 I only use it because russian facebook clone vk.com is easily the world's biggest archive of pirated mp3s 2013-01-29 01:02 which is, well, not very nice, I admit, but nothing else I know has an interface when you type the band name, hit "play" and forget about it. 2013-01-29 01:03 it'll just go on for hours. only needs manual intervention when someone hijacks the name with a dubstep remix. 2013-01-29 01:07 btw, did you know how C++ handles exceptions? 2013-01-29 01:07 it strcmp()s the class name and names of all its parents with all the classes in catch clauses 2013-01-29 01:07 and does it twice on the entire callstack 2013-01-29 01:07 and to walk the callstack, it uses DWARF debug info 2013-01-29 01:09 megha has quit [Read error: Operation timed out] 2013-01-29 01:11 as in my runtime the caller is responsible for allocating stack space for the result, I think I'll just use the 'regular' return value for 'stack unwinding' 2013-01-29 01:11 i.e. basically translate error handling with stack unwinding to error handling with error codes. 2013-01-29 01:12 combine the best! :) 2013-01-29 01:15 kuribas has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 2013-01-29 01:17 all the things you can do when you get to design your own ABI. 2013-01-29 01:19 rz2k has quit [] 2013-01-29 01:25 megha has joined #qi-hardware 2013-01-29 01:33 (C++ exceptions) nice. if Morgan Spurlock was a hacker, "Super Size Me" would have been about C++ 2013-01-29 01:44 btw, if you want to listen to music for a long time, you may find this interesting; http://musicmachinery.com/2012/11/12/the-infinite-jukebox/ 2013-01-29 01:44 works on linux with a reasonably recent chromium and chromium-codecs-ffmpeg-extra 2013-01-29 01:46 wolfspraul has joined #qi-hardware 2013-01-29 02:07 kristianpaul has quit [Quit: leaving] 2013-01-29 02:08 kristianpaul has joined #qi-hardware 2013-01-29 02:08 kristianpaul has quit [Changing host] 2013-01-29 02:08 kristianpaul has joined #qi-hardware 2013-01-29 02:11 wolfspraul has quit [Quit: leaving] 2013-01-29 02:11 wolfspraul has joined #qi-hardware 2013-01-29 02:23 urandom__ has quit [Quit: Konversation terminated!] 2013-01-29 03:05 guanucoluis has quit [Ping timeout: 256 seconds] 2013-01-29 03:32 xiangfu has joined #qi-hardware 2013-01-29 03:42 pcercuei has joined #qi-hardware 2013-01-29 03:51 pcercuei has quit [Ping timeout: 256 seconds] 2013-01-29 04:03 DocScrutinizer05 has quit [Disconnected by services] 2013-01-29 04:03 DocScrutinizer05 has joined #qi-hardware 2013-01-29 04:22 wolfspraul has quit [Ping timeout: 244 seconds] 2013-01-29 04:58 pcercuei has joined #qi-hardware 2013-01-29 05:17 xiangfu_ has joined #qi-hardware 2013-01-29 05:49 pcercuei has quit [Quit: Bye] 2013-01-29 07:06 jekhor has joined #qi-hardware 2013-01-29 07:29 megha has quit [Quit: WeeChat 0.4.0] 2013-01-29 07:33 megha has joined #qi-hardware 2013-01-29 07:36 megha has quit [Client Quit] 2013-01-29 07:41 megha has joined #qi-hardware 2013-01-29 07:55 jluis has quit [Read error: Operation timed out] 2013-01-29 08:14 megha has quit [Ping timeout: 252 seconds] 2013-01-29 08:18 megha has joined #qi-hardware 2013-01-29 08:45 jekhor has quit [Ping timeout: 240 seconds] 2013-01-29 08:56 jekhor has joined #qi-hardware 2013-01-29 09:04 jekhor has quit [Ping timeout: 256 seconds] 2013-01-29 09:19 bzb has joined #qi-hardware 2013-01-29 09:26 wolfspraul has joined #qi-hardware 2013-01-29 10:26 bzb has quit [Quit: Leaving] 2013-01-29 10:28 security has joined #qi-hardware 2013-01-29 10:30 megha has quit [Ping timeout: 264 seconds] 2013-01-29 10:32 security has quit [Quit: WeeChat 0.4.0] 2013-01-29 10:54 wpwrak: (music) thanks, I do! 2013-01-29 11:00 hmm, this is a very interesting experiment 2013-01-29 11:00 but unfortunately not good enoough to listen to it for an extended time :/ 2013-01-29 11:01 plus, "Sorry, cannot play music properly in the background". 2013-01-29 11:49 wolfspraul has quit [Ping timeout: 245 seconds] 2013-01-29 12:06 wolfspraul has joined #qi-hardware 2013-01-29 13:01 megha has joined #qi-hardware 2013-01-29 13:07 whitequark: yeah, works best if you have an extra screen. it seems to want to be visible. 2013-01-29 13:07 whitequark: some songs work amazingly well, e.g., "Blue Monday" 2013-01-29 13:08 whitequark: in some you can also see how lazy their makers really were :) 2013-01-29 13:15 hm, if I select one of the loops it jumps back? 2013-01-29 13:18 wpwrak: one of the most seamless ones is the "Nyan Cat" 2013-01-29 13:18 which somehow doesn't surprise me at all 2013-01-29 13:19 i'm not entirely sure about that part. when you click on it, it becomes red and is ignored on the next encounter. when you click again it becomes green (and stays green when you mouse away), in which case it may be taken the next time. not entirely sure if it works like this, though, since you're often not fast enough 2013-01-29 13:20 pcercuei has joined #qi-hardware 2013-01-29 13:20 whitequark: an, need to try that one once i get tired of blue monday :) 2013-01-29 13:21 wpwrak: well you kinda can just listen to it in a regular loop 2013-01-29 13:21 I'm not sure what point the creators of the jukebox tried to prove by including it 2013-01-29 13:21 also need to see how "bad apple" and "last jungle" go. they could be fun. 2013-01-29 13:21 (nyan cat) ah ;-) never quite got that meme 2013-01-29 13:22 neither did I 2013-01-29 13:22 they have a few oddities there. and i think they don't "include" anything (or at least they don't say). it's all based on user uploads and statistics 2013-01-29 13:26 pcercuei has quit [Ping timeout: 256 seconds] 2013-01-29 13:28 Hoolxi has joined #qi-hardware 2013-01-29 13:42 pcercuei has joined #qi-hardware 2013-01-29 13:47 pcercuei has quit [Ping timeout: 256 seconds] 2013-01-29 13:47 pcercuei has joined #qi-hardware 2013-01-29 13:57 emeb has joined #qi-hardware 2013-01-29 13:59 valhalla has quit [Read error: No route to host] 2013-01-29 14:06 urandom__ has joined #qi-hardware 2013-01-29 14:10 pcercuei has quit [Ping timeout: 256 seconds] 2013-01-29 14:15 xiangfu has quit [Remote host closed the connection] 2013-01-29 14:15 xiangfu_ has quit [Remote host closed the connection] 2013-01-29 14:21 valhalla has joined #qi-hardware 2013-01-29 14:23 pcercuei has joined #qi-hardware 2013-01-29 14:29 rz2k has joined #qi-hardware 2013-01-29 14:30 Hoolxi has quit [Remote host closed the connection] 2013-01-29 14:43 jekhor has joined #qi-hardware 2013-01-29 14:43 jluis has joined #qi-hardware 2013-01-29 14:58 megha has quit [Ping timeout: 255 seconds] 2013-01-29 14:58 jekhor has quit [Read error: Connection reset by peer] 2013-01-29 15:19 paroneayea has quit [Remote host closed the connection] 2013-01-29 15:22 hmm, it doesn't recognize "last jungle" :( "bad apple" works well, as expected 2013-01-29 15:23 paroneayea has joined #qi-hardware 2013-01-29 15:26 porchao has quit [Quit: Leaving...] 2013-01-29 15:29 porchao has joined #qi-hardware 2013-01-29 16:20 jluis has quit [Ping timeout: 248 seconds] 2013-01-29 16:26 jekhor has joined #qi-hardware 2013-01-29 16:29 pcercuei has quit [Quit: Bye] 2013-01-29 16:30 megha has joined #qi-hardware 2013-01-29 17:18 rz2k has quit [Read error: Connection reset by peer] 2013-01-29 17:27 kilae has joined #qi-hardware 2013-01-29 17:33 jekhor has quit [Ping timeout: 245 seconds] 2013-01-29 17:33 megha has quit [Quit: WeeChat 0.4.0] 2013-01-29 17:34 rz2k has joined #qi-hardware 2013-01-29 17:44 paroneayea has quit [Remote host closed the connection] 2013-01-29 17:51 paroneayea has joined #qi-hardware 2013-01-29 18:02 LunaVorax has joined #qi-hardware 2013-01-29 18:03 Hi! 2013-01-29 18:07 wej has joined #qi-hardware 2013-01-29 18:40 megha has joined #qi-hardware 2013-01-29 19:14 pcercuei has joined #qi-hardware 2013-01-29 19:18 pcercuei has quit [Ping timeout: 272 seconds] 2013-01-29 19:20 wej has quit [Ping timeout: 248 seconds] 2013-01-29 19:21 wej has joined #qi-hardware 2013-01-29 19:21 jekhor has joined #qi-hardware 2013-01-29 19:34 wej has quit [Ping timeout: 245 seconds] 2013-01-29 19:36 pcercuei has joined #qi-hardware 2013-01-29 19:36 pcercuei has quit [Client Quit] 2013-01-29 19:39 wej has joined #qi-hardware 2013-01-29 19:46 Jay7 has quit [Read error: Connection reset by peer] 2013-01-29 19:46 Jay7 has joined #qi-hardware 2013-01-29 19:52 Jay7 has quit [Ping timeout: 244 seconds] 2013-01-29 19:53 wej has quit [Ping timeout: 264 seconds] 2013-01-29 19:53 oh, that's interesting there seem to be some samsung notebooks, which, if you boot linux, brick themself. 2013-01-29 19:55 wow 2013-01-29 19:56 https://bugs.launchpad.net/ubuntu-cdimage/+bug/1040557?comments=all 2013-01-29 19:57 wej has joined #qi-hardware 2013-01-29 20:05 very nice 2013-01-29 21:28 kyak has quit [Ping timeout: 244 seconds] 2013-01-29 21:44 kilae has quit [Quit: ChatZilla 0.9.89 [Firefox 18.0.1/20130116073211]] 2013-01-29 22:07 erikkugel has left #qi-hardware [#qi-hardware] 2013-01-29 22:10 whitequark: "bug powder dust" works almost perfectly, with a nice mix of loop lengths. there are some small pops but they seem to come mainly from deficiencies of the algorithm. 2013-01-29 22:10 wpwrak: hm, thanks 2013-01-29 22:10 whitequark: also 3 am eternal works pretty well. 2013-01-29 22:10 talking about bugs, remember we talked about a faulty circuit breaker? 2013-01-29 22:11 you were right: the colder it is outside, the better it works 2013-01-29 22:11 ah, i don't remember the context 2013-01-29 22:12 wpwrak: http://irclog.whitequark.org/qi-hardware/2012-12-26#2552953; 2013-01-29 22:16 hmm. my comment about temperature was about holes (and cold) increasing the power consumption. 2013-01-29 22:16 oh. 2013-01-29 22:17 so ... "the better it works" was a) ironic or b) a conclusion about the validity of your fix ? 2013-01-29 22:17 no, the frequency of malfunction events actually decreases with the temperature outside. 2013-01-29 22:17 or at least I have this impression 2013-01-29 22:18 you'd enjoy the water problem we have here at the moment :) the mechanism that's supposed to control a pump that fills a water tank sometimes "sticks". fun ensues ... 2013-01-29 22:19 (circuit breaker) could be. frozen water is probably less conductive than the liquid variant. 2013-01-29 22:20 (water problem) so i've successfully applied the concept of "water hammer" to get it unstuck. not sure if i should explain the find points of it to anyone, though ;-) 2013-01-29 22:21 oooh 2013-01-29 22:21 that is a rather radical way of solving problems 2013-01-29 22:22 well, the domestic variant. the speed at which i can close those valves is limited. but still :) 2013-01-29 22:26 the nasty bit about that tank control is that the problem only shows up at night, because the frequency of normal activation decreases to a point where it can stay stuck long enough to overflow 2013-01-29 22:27 so the first encounter was one day at 2:30 am. i think i've heard part of it some days before, but didn't realize it was actually a problem. 2013-01-29 22:29 at least this gave me an opportunity to remind our administrator that she had (foolishly, IMHO) promised to be available 24/7 :) 2013-01-29 22:29 CERN OHL translation will follow suit of the FSF for translations. It's now available in English only. Translators to your editors! http://www.ohwr.org/projects/cernohl/wiki/Translations 2013-01-29 22:33 jekhor has quit [Ping timeout: 240 seconds] 2013-01-29 22:36 talking about translation, I'd be really glad to read http://www.premium-cola.de/betriebssystem and the links in English. I think it has a lot of potential for Free sw/hw business approaches 2013-01-29 22:41 google translate ? 2013-01-29 22:43 hmm, seems confusing 2013-01-29 22:43 but guessable, i guess 2013-01-29 22:45 xiangfu has joined #qi-hardware 2013-01-29 22:46 wej has quit [Ping timeout: 248 seconds] 2013-01-29 22:49 wej has joined #qi-hardware 2013-01-29 22:53 wpwrak: yes, that can serve as a first step, but a proper translation would be nice, so that it can be reused :) 2013-01-29 22:59 pick out the idea, apply them to the respective new context :) a 1:1 copy rarely work. well, unless you adjust all four dimensions. but then, the language wouldn't be an issue :) 2013-01-29 23:12 xiangfu has quit [Quit: leaving] 2013-01-29 23:13 yes, you're right. A reminiscence of my hate of the awful German language ;o) 2013-01-29 23:13 once you crack the grammar, the rest is almost easy :) 2013-01-29 23:13 hehe 2013-01-29 23:18 hm interesting 2013-01-29 23:18 (that'd be re: exceptions) 2013-01-29 23:18 llvm codebase has a nice feature called ErrorOr, i.e. ErrorOr 2013-01-29 23:18 which holds either an error code and a human-readable description, or an arbitrary value 2013-01-29 23:20 looks like it's better than exceptions, although it is quite loquacious. 2013-01-29 23:21 what does it do? 2013-01-29 23:22 ah 2013-01-29 23:23 the value can either be an error condition or of type ty 2013-01-29 23:23 exactly 2013-01-29 23:24 what I want is to add such a construct as a language builtin, add it to the ABI and then simply map it to exceptions 2013-01-29 23:24 it has a cost of 1 cycle per non-inlined function call on the common case. I consider this reasonable. 2013-01-29 23:24 (1 cycle on pipelined CPUs, i.e. everything.) 2013-01-29 23:25 why the extra cost? 2013-01-29 23:25 larsc: checking of the return value after the call 2013-01-29 23:25 see, the implementation of exceptions with unwinder is zero-cost in the common case 2013-01-29 23:25 i.e. non-exceptional control flow 2013-01-29 23:26 there are two problems however. first, ruby has to implement certain `break's and `return's, which cause nonlocal control flow (i.e. breaks/returns from closures), effectively as exceptions 2013-01-29 23:26 and how would you use it? 2013-01-29 23:27 second, the unwinder is really really unwieldy (pun intended) on the uncommon case 2013-01-29 23:27 the latency is thousands of cycles if you're lucky 2013-01-29 23:27 not to mention bloating the binary with all the tables, etc. 2013-01-29 23:28 of course, C++ doesn't have another option, as it has to support C interoperability, and even link with different languages. I'd have to translate them back and forth on FFI boundaries. 2013-01-29 23:29 larsc: (how to use it) you just raise exceptions. from the programmers' point of view, nothing has changed. 2013-01-29 23:29 the code, instead of invoking an external unwinder, then unwinds itself 2013-01-29 23:30 just as you'd do "if(!fd) return 1;" manually, but with 100% less boilerplate. 2013-01-29 23:31 thoughts? 2013-01-29 23:32 mirko has quit [Ping timeout: 276 seconds] 2013-01-29 23:32 mirko has joined #qi-hardware 2013-01-29 23:34 so you basically only jump one stackframe up instead of multiple 2013-01-29 23:35 the C++ unwinder still jumps stackframes one by one 2013-01-29 23:35 because it has to invoke destructors in each 2013-01-29 23:35 and, in fact, if it has *some* kind of catch/finally, including implicit, it *must* pass the control to the landing pad, because it's the code at landing pad which determines if the handlers will be ran 2013-01-29 23:35 and if the unwinding has to stop 2013-01-29 23:36 also, it actually searches the entire stack twice; "phase 1" verifies that there's a handler, and if not, calls abort() 2013-01-29 23:40 wej has quit [Ping timeout: 245 seconds] 2013-01-29 23:42 hm 2013-01-29 23:53 urandom__ has quit [Quit: Konversation terminated!]