<< 07-12-2014 >>

00:08:07flaviustarless: Just realized, another use of `result` is to clean up after getting the return value
00:09:07flaviu`let myFoo: ptr Foo = ...; result = Bar(field1 : myFoo.thing1); myFoo.free()`
00:24:15*Matthias247 quit (Read error: Connection reset by peer)
00:31:06*starless quit (Ping timeout: 244 seconds)
00:40:23*starless joined #nimrod
00:41:51*ekarlso- joined #nimrod
00:43:14Araq_flaviu: we use C's floating point parsing since a while now
00:43:48flaviuI can't be bothered cleaning https://gist.github.com/flaviut/6efab0d6bfde4f5c54ee up so it's platform and publishable to nimble, but anyone is welcome to do so. My work is MIT licenced
00:46:04flaviuCan't the things in the `defined(nimParseBiggestFloatMagic)` branch be removed now then?
00:49:16*BlaXpirit quit (Quit: Quit Konversation)
00:49:43Araq_yes but first we need to figure out where the bug comes from
00:50:20*Trustable quit (Quit: Leaving)
00:50:38Araq_also thanks for "languages with proper float parsing"
00:50:50Araq_which one are those?
00:51:21Araq_the old algorithm comes from FreePascal, I guess that has no proper float parsing either
00:52:55flaviuJava, Javascript, Python
00:53:16flaviuI wouldn't be surprised if FreePascal had improper float parsing
00:53:24flaviuIt's really a *major* PITA
00:54:58flaviuFrom what I understand, back in the day processor FPUs were terrible anyway, so it didn't really matter.
00:58:58Araq_hrm indeed
00:59:01Araq_it works in C
00:59:09Araq_and yet defined(nimParseBiggestFloatMagic) is true
00:59:46*yglukhov joined #nimrod
01:03:09Araq_oh wait
01:03:20Araq_I see lol
01:03:51Araq_nimParseBiggestFloat uses a 128 fixed size buffer for speed reasons
01:04:24Araq_your literal is longer than that ...
01:04:27*yglukhov quit (Ping timeout: 264 seconds)
01:04:47Araq_wtf how big should this buffer be?
01:05:17Araq_how did you find this bug? o.O
01:05:17flaviuI think that's the longest literal that is possible
01:05:42Araq_do you actually use this literal anywhere?
01:05:51flaviuI remembered there being problems with float parsing, so I tried to make the smallest number possible to expose them
01:06:19flaviuNo, I didn't actually use the literal, I could have just used 1e-...
01:06:19Araq_I remembered they are all fixed since forever :P
01:06:34Araq_thanks a lot!
01:07:19Araq_also the fix was painful because C's stdlib is ... suboptimal for this
01:07:52flaviuisn't atof exactly what you need?
01:08:42flaviunever mind, undefined behavior
01:09:16flaviuah, and locales.
01:13:57Araq_I think my old algorithm would in fact have handled this correctly
01:14:12Araq_:P
01:17:20dom96Alright: http://178.62.143.63/
01:17:29dom96Please test.
01:17:44dom96If it works we can replace the old forum with it now.
01:19:16Araq_dom96: ugh, make it use the real database please
01:19:35dom96ok
01:19:35Araq_test it against real data
01:20:11flaviudom96: http://imgur.com/a/tHQaR
01:20:55dom96how small is your screen?
01:21:36flaviuI resized it to cause the problems
01:21:45flaviubut at no point was it smaller than a phone
01:22:17EXetoCany progress regarding encryption and all that?
01:22:25dom96In that case sorry but it's not a high priority.
01:23:14flaviuEXetoC: encryption is the wrong word for it, but the PR is at https://github.com/nim-lang/nimforum/pull/25
01:23:33dom96Araq_: Done
01:24:17Araq_flaviu: remember: it doesn't have to be good. it only has to be better than the current one ;-)
01:24:56flaviuStill, these small things are easy to fix.
01:25:02dom96flaviu: then fix them
01:25:20Araq_er wtf ... nim-lang.org is a deadlink?
01:25:34dom96?
01:25:48dom96works for me
01:27:24Araq_I cannot even ping it
01:27:55EXetoCworks for me too
01:28:05dom96http://www.downforeveryoneorjustme.com/nim-lang.org
01:28:26EXetoCgood old routing issue
01:29:40Araq_ok well sorry
01:29:57Araq_but when I have a syntax error, preview doesn't work but no error message is shown
01:29:59flaviudom96: I don't like to bash unpaid work, but the css is sloppy
01:30:06flaviuhttps://raw.githubusercontent.com/nim-lang/nimforum/new_async/public/css/style.css
01:30:39dom96Then why are you?
01:31:08dom96That said, I agree.
01:31:14flaviuIt's my justification for not wanting to fix it :P
01:31:22dom96I was going to run it through a css prettifier.
01:32:10dom96flaviu: Yeah. Talk is cheap :P
01:32:25dom96Araq_: I shall fix that.
01:32:32Araq_dom96: not convinced the list of users that participated is necessary
01:32:48Araq_or how it looks like once *many* participated
01:33:01dom96Araq_: Discourse disagrees and it's too late now.
01:33:05willwillsonhttp://178.62.143.63/postActivity.xml seems to load a lot quicker now?
01:33:29dom96willwillson: Might be because it's running on an SSD now.
01:33:52willwillsondom96: nice, it was dog slow before ;-)
01:34:02dom96Which reminds me. I need to add the feed buttons somewhere.
01:34:27Araq_hrm Trixar_za is an anime now too
01:34:47dom96Araq_: It won't show all of them.
01:34:56flaviuAraq_: The little user buttons work really well actually. The wrap on overflow, and go out of bounds where they're invisible.
01:35:34flaviudom96: Can you dump the database with the passwords stripped?
01:35:46dom96flaviu: not easily.
01:35:54dom96Why do you need it?
01:35:57Araq_ha, just wait until I uploaded my ugly face and then it will be *everywhere*
01:36:12flaviudom96: Curiosity, I want to look at statistics
01:36:21dom96Araq_: A simple if statement can fix that. :P
01:36:22Araq_and then you will realize how bad this an idea was
01:37:10Araq_dom96 lol
01:37:32Araq_how about an 'if' for Araq that disables images?
01:38:28dom96Araq_: Just get adblock and block everything from gravatar.com :P
01:39:19flaviudom96: Just download the database and run `UPDATE person SET password='';`
01:39:29dom96flaviu: I have fixing to do.
01:39:36dom96flaviu: Don't have time for that.
01:39:41dom96Araq_: gimme some invalid rst
01:39:47flaviuSqlitestudio makes it really easy!
01:40:06Araq_dom96 don't close some ```nimrod
01:42:38Araq_flaviu: try your HTML injection again please
01:43:16EXetoCI don't think the lines under the buttons look good, and the contrast added by the right side of the list adds some distraction
01:47:28willwillsonhow come LeuGim's search didn't make it?
01:47:32dom96EXetoC: :(
01:47:46dom96willwillson: It did. I need to run a script through the DB though.
01:48:05willwillsondom96: ahh cool
01:48:19flaviuAraq_: I'm not sure I remember how to reproduce it.
01:48:34flaviuIs the old database still available dom96?
01:48:44Araq_flaviu: images
01:48:55willwillsonlooks nice by the way... I like the new syntax highlighting
01:48:57EXetoCI think it would look better if there weren't so many borders
01:49:12flaviuAraq_: I know, I don't remember the specifics. Right now I'm not getting any images at all, I assume I'm crashing it or something.
01:49:21dom96flaviu: old?
01:49:27dom96flaviu: which old database?
01:49:44flaviudom96: The one that was on before replacing it with the real one
01:49:47flaviuThe testing database
01:50:01dom96no, I deleted it.
01:50:04dom96I have tried your hack
01:50:08dom96Went into the cat picture
01:50:12Araq_EXetoC: I said the same to dom96 ... ;-)
01:50:15dom96didn't seem to be working.
01:50:30dom96Araq_: You don't like the buttons either? :(
01:50:35Araq_maybe my fix disables imagines completely
01:50:40flaviudom96: Can you check the logs?
01:50:56Araq_dom96: I'm talking about the many borders
01:50:56dom96flaviu: to see if it crashes?
01:51:10flaviuYes, my images aren't showing up at all for some reason.
01:51:23flaviuhttp://178.62.143.63/t/655
01:52:07Araq_flaviu: well your old ones are not valid
01:52:18dom96Araq_: seems to be working fine
01:52:21dom96er
01:52:21EXetoCbackgrounds often vary only slightly
01:52:22dom96flaviu:
01:52:36*tinAndi quit (Quit: ChatZilla 0.9.91 [Firefox 34.0/20141125180439])
01:52:47Araq_flaviu: so your old entries are simply omitted
01:52:57dom96Araq_: there is only one border on the right sidebar.
01:53:00Araq_what else should we do? crash?
01:53:12flaviuAraq_: Escape the url.
01:53:29Araq_I don't think that's correct
01:53:40dom96flaviu: what rst are you using?
01:53:54flaviu.. image:: test"></img>alert(1)
01:54:05dom96yeah, that should be escaped.
01:54:11dom96although
01:54:12dom96meh
01:54:22dom96if it's a url you would likely be pasting an escaped one anyway
01:54:47flaviuYay, I crashed it!
01:54:59Araq_argh, fuck, really?
01:55:11flaviudbError: no such table: post_fts
01:55:37dom96can you crash the live site please?
01:55:40dom96I wanna see if it restarts
01:56:14Araq_flaviu: please tell me you didn't succeed in an SQL injection
01:56:35flaviuAraq_: I don't think I did, but I may be on to something.
01:56:37flaviudom96: https://gist.github.com/flaviut/f34ad472c94f1f4d6f82
01:57:02dom96jester caught it at least :D
01:59:05willwillsonthis guy sure lives up to his haxor username
01:59:16dom96flaviu: how did you get it to crash?
01:59:50flaviucurl 'http://178.62.143.63/doedit#preview' -H 'Host: 178.62.143.63' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: http://178.62.143.63/t/655?action=edit&postid=3554' -H 'Cookie: sid=5436feedcd1c1c2c5e425731b688c440' -H 'Connection: keep-alive' -H 'Cache-Contro
02:00:47flaviuIt returns 502, which is wrong I think
02:01:07flaviuIt should return 500.
02:01:13dom96Ahh. Editing fails.
02:01:16EXetoCdom96: well I meant borders in general
02:01:39dom96EXetoC: Good. Because I was going to remove some of them.
02:01:39EXetoCflaviu: do you find anything difficult to look at?
02:01:44EXetoCok
02:02:13Araq_good work anyway dom96! but I really need to sleep now. good night.
02:02:21dom96Araq_: nooooo
02:02:36Araq_it's 3 o'clock here ...
02:02:45dom96Alright...
02:02:48EXetoCcya
02:02:49dom96Will you be here tomorrow?
02:03:00Araq_sure, I have no life
02:03:12dom96k
02:03:24flaviuEXetoC: The black background on the .activity causes some nasty hinting for me, that's all.
02:06:02EXetoCok
02:11:31dom96There
02:11:36dom96atom feed icons added
02:12:28flaviudom96: Can you make the .activity font bigger or thinner?
02:12:32dom96willwillson: search should now work
02:12:45EXetoCmaybe keep the background at the top, and then have most other backgrounds fall somewhere between the color of the content area and the nearest border
02:13:12willwillsondom96: oh yeah, working a treat, good work!
02:13:24dom96willwillson: needs some adjustment, the colors are a bit off.
02:13:41EXetoCbut I'd have to see how it looks with my previous suggestions first. checking back tomorrow
02:13:48dom96flaviu: I can make it 9pt
02:14:43dom96flaviu: Is that better?
02:15:10flaviudom96: Yes, significantly.
02:16:35dom96I think i'll make the default color for code slightly less white
02:18:17dom96flaviu: Please try to crash it.
02:18:34dom96The edit crash should be fixed now
02:24:06willwillsonsome search results seem to miss a thread title (e.g a search for "array")
02:25:08willwillsonwell, only the first few results have a title
02:25:21EXetoChave you also run it through an audit framework?
02:26:34willwillsonahh, you only get get a thread title for an opening post? fair enough...
02:26:44dom96willwillson: I think so
02:26:49dom96EXetoC: no
02:33:43flaviu"Error: Subject not long enough"
02:33:51flaviubut I don't get a place to put a subject
02:37:51dom96what are you doing?
02:37:59flaviuSubmitting a reply
02:38:12flaviuIt seems to think I want to use 0x01 as my subject, dunno why
02:38:19dom96which thread?
02:38:30flaviuBut I think I have a sql injection, or very close.
02:40:12*EXetoC quit (Quit: WeeChat 1.0.1)
02:42:57*starless quit (Ping timeout: 260 seconds)
02:47:59*darkf joined #nimrod
02:48:28flaviudom96: I don't think injection is possible, but I can cause a sql syntax error through issues with C strings.
02:48:28flaviuhttps://gist.github.com/flaviut/8ca323e9652ddd7fb102
02:48:37*yglukhov joined #nimrod
02:49:37*AMorpork is now known as ZzZMorpork
02:53:28*yglukhov quit (Ping timeout: 265 seconds)
02:54:11dom96Search has been improved slightly.
02:56:41dom96flaviu: weird
02:57:06flaviuDoesn't really matter though, I don't see any way of exploiting it.
02:57:45dom96That part of the code should escape things properly.
02:58:40dom96Time for sleep.
02:58:44flaviu1 sec
02:59:03flaviudoes nimforum have serve user-uploaded non-static assets?
02:59:07flaviuI don't think it does.
02:59:15dom96no
02:59:32dom96thanks for testing
03:00:27flaviusure, happy to help
03:01:01willwillsonsome search results seem to not display post content (e.g search "array" again)
03:02:11dom96Guess LeuGim will need to look into that.
03:02:23dom96oh I know why.
03:02:28dom96The rst parser fails.
03:02:40dom96I guess I'll simply show the raw rst in that case.
03:02:43dom96I'll fix that tomorrow.
03:03:05willwillsoncool, good night
03:03:37dom96bye
03:07:41*willwillson quit (Ping timeout: 260 seconds)
03:15:29*BitPuffin quit (Ping timeout: 250 seconds)
03:20:40flaviuFunny, tables.nim doesn't support hash()!
03:23:11fowldefine support
03:24:25flaviuThere is no proc hash(self: Table): THash
03:25:01fowlok. the way you said it sounded like you expected hash(tables) to work
03:25:08fowl(the module)
03:33:34*q66 quit (Quit: Leaving)
03:48:07*q66 joined #nimrod
03:54:36flaviuIs there a way to convert a cstring of length n to a nim string?
03:57:30flaviuAllocating a new string of length n, moveMem seems to work
03:58:17flaviuIt forces an extra copy in my use, but I'm not dealing with more than a few megabytes
04:16:57*dts|pokeball quit (Ping timeout: 245 seconds)
04:20:21*q66 quit (Quit: Leaving)
04:37:34*yglukhov joined #nimrod
04:41:59*perturbation joined #nimrod
04:42:13*yglukhov quit (Ping timeout: 265 seconds)
04:51:05*perturbation quit (Quit: Leaving)
05:02:35*saml_ joined #nimrod
05:09:42*starless joined #nimrod
05:27:15*Jesin quit (Ping timeout: 264 seconds)
05:28:59*flaviu quit (Ping timeout: 245 seconds)
05:44:00*Jesin joined #nimrod
06:03:35*bjz quit (Read error: Connection reset by peer)
06:03:49*bjz joined #nimrod
06:26:23*yglukhov joined #nimrod
06:30:51*yglukhov quit (Ping timeout: 264 seconds)
06:41:11*gour joined #nimrod
06:51:09*saml_ quit (Quit: Leaving)
06:52:02*starless quit (Quit: WeeChat 1.0.1)
07:09:37*flaviu joined #nimrod
07:49:27*bjz quit (Ping timeout: 264 seconds)
08:00:35*bjz joined #nimrod
08:02:32*biscarch quit (Ping timeout: 272 seconds)
08:02:37*hguux_ quit (Ping timeout: 260 seconds)
08:04:02*biscarch joined #nimrod
08:04:05*hguux_ joined #nimrod
08:15:14*yglukhov joined #nimrod
08:19:46*yglukhov quit (Ping timeout: 250 seconds)
08:19:54*ARCADIVS quit (Quit: ARCADIVS)
08:21:16*bjz quit (Ping timeout: 264 seconds)
08:21:22*bjz_ joined #nimrod
08:27:21*yglukhov joined #nimrod
08:32:03*yglukhov quit (Ping timeout: 264 seconds)
08:38:25*yglukhov joined #nimrod
08:39:07*dts|pokeball joined #nimrod
08:40:40*yglukhov quit (Read error: Connection reset by peer)
08:41:07*yglukhov joined #nimrod
08:42:13*Matthias247 joined #nimrod
08:44:00*gour quit (Quit: Konversation terminated!)
08:48:23*yglukhov quit (Quit: Be back later ...)
09:08:19*Matthias247 quit (Read error: Connection reset by peer)
09:13:24dts|pokeballdoes nim have something resembling c++'s stringstream?
09:16:35*gour joined #nimrod
09:21:06*gokr_ joined #nimrod
09:35:39*milosn quit (Ping timeout: 264 seconds)
09:36:29*BlaXpirit joined #nimrod
09:38:35*gour quit (Quit: Konversation terminated!)
09:39:18dts|pokeballbetter question... how would i get this iterator working? if i cant call it then what would be a better way of writing it? http://paste.ubuntu.com/9409530/ http://paste.ubuntu.com/9409531/
09:43:13fowldts|pokeball, see the streams module
09:44:05dts|pokeballok
09:48:00fowlthere are two kinds of iterators, inline iterators and closure iterators, your use looks more like a closure iterator
09:50:36fowlhttp://build.nimrod-lang.org/docs/manual.html#first-class-iterators
09:51:17fowlgood night
09:51:45dts|pokeballty
09:51:47dts|pokeballnight
09:55:47*pafmaf joined #nimrod
09:57:53dts|pokeballi added {.closure.} to my iterator, but i still cant call it
09:59:12*darkf_ joined #nimrod
09:59:26*gour joined #nimrod
10:01:46*darkf quit (Ping timeout: 258 seconds)
10:02:22*darkf joined #nimrod
10:04:50*darkf_ quit (Ping timeout: 258 seconds)
10:12:47*pafmaf quit (Quit: This computer has gone to sleep)
10:16:47*gour quit (Quit: Konversation terminated!)
10:17:47*pafmaf joined #nimrod
10:30:10*gokr joined #nimrod
10:33:59*gokr_ quit (Ping timeout: 245 seconds)
10:35:18*EastByte_ is now known as EastByte
10:40:40*gour joined #nimrod
10:46:51*milosn joined #nimrod
10:51:55*gokr1 quit (Quit: Leaving.)
11:01:11*yglukhov joined #nimrod
11:01:21*gokr_ joined #nimrod
11:04:12*gour quit (Quit: Konversation terminated!)
11:04:37*gokr quit (Ping timeout: 240 seconds)
11:10:24*EXetoC joined #nimrod
11:15:27*gour joined #nimrod
11:19:11*yeye123 joined #nimrod
11:25:22*Trustable joined #nimrod
11:27:48flaviudts|pokeball: Still around?
11:28:33flaviudts|pokeball: closure iterators are confusing, I don't completely understand how to use them either
11:29:09flaviubut try something like `proc getNext(source: var string): interator(): char = return interator(): char = ...`
11:42:32yeye123hello everyone
11:42:32*gokr joined #nimrod
11:42:52*gokr quit (Remote host closed the connection)
11:43:13yeye123proc set_border_width*(container: PContainer, border_width: guint){.
11:43:13yeye123 cdecl, dynlib: lib, importc: "gtk_container_set_border_width".}
11:43:14*gokr joined #nimrod
11:43:26yeye123whats the meaning of * in the proc name?
11:44:00flaviuyeye123: It signifies that the proc is exported, that other modules can see it.
11:44:29yeye123ahh ok, thank you, so no * means "private" for this module then?
11:44:37flaviuYes.
11:45:20yeye123i'm playing a bit with the gtk2 examples, is it the gtk documentation is should go to, is it mapped 1:1 so to speak?
11:46:16flaviuIt is, and the nim file was probably converted from the C header with an automated tool, c2nim
11:47:38*hguux_ quit (Read error: Connection reset by peer)
11:47:38*biscarch quit (Remote host closed the connection)
11:47:38*clone1018 quit (Remote host closed the connection)
11:47:57yeye123flaviu: thank you!
11:48:33flaviuhappy to help
11:49:10*willwillson joined #nimrod
12:03:21*ZzZMorpork is now known as AMorpork
12:05:55*gour quit (Quit: Konversation terminated!)
12:20:46*gokr quit (Quit: Leaving.)
12:22:24*pafmaf__ joined #nimrod
12:23:25flaviuHas anyone implemented a dynamically typed mini-language for nim?
12:23:27*gokr_ quit (Remote host closed the connection)
12:23:41*gokr_ joined #nimrod
12:23:44*pafmaf quit (Ping timeout: 250 seconds)
12:33:45dom96flaviu: I attempted to a while back but never finished it.
12:38:56*BitPuffin joined #nimrod
12:43:34*BitPuffin quit (Ping timeout: 245 seconds)
13:02:21*AMorpork is now known as AFKMorpork
13:07:47willwillsondts|pokeball: for the closure iterator, try assigning it to a variable and then calling it: let getNextInstance = getNext ; getNextInstance("string")
13:08:33*BitPuffin joined #nimrod
13:12:16*willwillson quit (Ping timeout: 250 seconds)
13:13:06EXetoCwhat was the ip address for the new forum?
13:13:59flaviuEXetoC: http://178.62.143.63/
13:16:25*gokr joined #nimrod
13:17:07*AFKMorpork is now known as AMorpork
13:17:12EXetoCthanks
13:22:41shevythe forum is written in nimrod? and shall we call nimrod nimrod or nim?
13:25:09shevyoh I like PV - that guy could be me :) http://178.62.143.63/t/650 "The documentation does not need to be a novel, lots and lots of small examples usually do better." \o/
13:25:52flaviushevy: It's being renamed to Nim soon, might as well as use that. It is written in Nim, https://github.com/nim-lang/nimforum/
13:26:39flaviu> A named tuple will be compatible to a tuple with different names.
13:26:40flaviuWoooo!
13:28:54*gour joined #nimrod
13:29:21flaviudom96: Just a bit of feedback on the forum: The post contents are too close to the sides, perhaps another ~6-8px margin would make it look much better
13:31:08shevyI am glad that the forum has a big fat "Reply" button
13:32:54flaviudom96: #talk-thread>div>.topic{width: calc(85% - 20px); padding-left: 10px; padding-right: 10px;}
13:34:48*pafmaf__ quit (Ping timeout: 250 seconds)
13:35:16*pafmaf joined #nimrod
13:39:58flaviushevy: Not big enough :P
13:39:59flaviudom96: - #talk-info > .user-post > div > .reply {; + .reply {
13:40:41shevyyou could make the buttons blink :>
13:41:20flaviushevy: I mean the click-zone is much smaller than the apparent size.
13:42:17EXetoCwhere did my reply go?
13:43:03shevyflaviu I don't even register any zones with my eyes, I went straight for the kill... straight for the reply button
13:43:09EXetoCI'll add another one and see if it remains
13:43:22shevythe rest all else but the reply button I considered line noise at that instant :)
13:44:02flaviuI'm referring to this: http://i.imgur.com/0P0xJ2E.png
13:44:08*pafmaf__ joined #nimrod
13:44:45EXetoCshevy: and the logo area? it's too fuzzy for me
13:45:19EXetoCthis is more suitable for a game UI perhaps :p
13:46:30*pafmaf quit (Ping timeout: 250 seconds)
13:46:34shevyEXetoC you mean that crown thing?
13:47:10shevyI also did not register it much; my eyes are actually focusing more on usability in a forum
13:47:39shevylet me show you the ruby forum in all its "glory" - https://www.ruby-forum.com/ compared to that, the nimrod forum is an elegant beast ;)
13:47:50shevywe don't even have a logo!
13:48:02shevywell, not on the ruby forum
13:48:09flaviushevy: Well, that forum looks more like a mailing list archive
13:48:19shevythat is the ruby logo - totally unexciting http://sebastien.ferre.io/assets/img/ruby.png
13:48:31shevyflaviu kinda but you also can write on it without having a mailing account
13:48:36flaviuAnd it's the nicest mailing list forum I've seen :P
13:48:51shevyI never managed to handle the traffic from mails
13:49:15shevyso the forum interface was the only way for me to partake at all (in the past... I don't write much on the forum anymore, stackoverflow simply is too good these days)
13:49:22flaviushevy: Apparently people use filters that only let through stuff that they care about. I've never do it, I don't know.
13:50:41flaviuDoes anyone here understand how to fix "ambiguous call; both yaml.yamlize(val: SomeInteger): YamlObj and yaml.yamlize(val: T): YamlObj match for: (int)" without giving up genericity?
13:51:15flaviuSomeInteger is clearly more specific, but I don't think the compiler realizes.
13:51:53EXetoCI can see why people want to add pretty things, but I'm also all about functionality
13:52:10dom96flaviu: can you give me a diff of the changes or give me line numbers so I know what to change?
13:52:44EXetoCI would perhaps add slight background variations to that ruby site though, that's all
13:52:56EXetoCoh, and lose the #fff :>
13:53:53flaviudom96: Looks like line 206.
13:56:00dom96flaviu: That adds a scrollbar...
13:57:03dom96all you have to do is increase the margin
13:57:08*pafmaf__ quit (Quit: Verlassend)
13:57:36flaviudom96: Looks like something overrides my width setting
13:58:03EXetoCjust inspect the element
13:59:13flaviudom96: actually, place it at 277. Looks like there are two identical selectors.
13:59:53dom96flaviu: I just did it myself.
14:07:43*hguux_ joined #nimrod
14:08:09*gokr quit (Ping timeout: 245 seconds)
14:29:11*gokr joined #nimrod
14:32:07*biscarch joined #nimrod
14:35:40*clone1018 joined #nimrod
14:43:09dom96flaviu: fixed
14:45:56flaviuInteresting. There isn't typedesc ==
14:48:08EXetoCyou want more specific checks than 'is' allows?
14:49:05*milosn quit (Ping timeout: 264 seconds)
14:49:28EXetoCassert(int8 != int8|int16) ?
14:50:26flaviuEXetoC: I didn't know about is, but I found another solution: when compiles(myType(val))
14:51:13*q66 joined #nimrod
14:53:15flaviu`proc get*[T](self: YamlObj): T`; "cannot infer the return type of the proc", but it clearly returns T
14:55:20flaviuLooks like I need to pass T as a typedesc
15:03:09EXetoCrather than what? you mean pass something explicitly?
15:08:16flaviuIt doesn't work when I pass T in the brackets, but it works when I pass T as (T: typedesc). I thought they'd be equvilent.
15:09:30EXetoCseems like a reasonable assumption
15:14:04*bitcrusher quit (Ping timeout: 255 seconds)
15:16:58*willwillson joined #nimrod
15:17:08EXetoCit doesn't seem to have been reported
15:36:03EXetoCflaviu: no it has. is your build more than 7 days old
15:36:29flaviuI think so, let me test check
15:36:39flaviuYep
15:37:09EXetoCit might work if you upgrade https://github.com/Araq/Nimrod/issues/1687
15:39:08flaviuOk, but I've decided I like how T: typedesc looks better :P
15:43:11EXetoCthere are people who want to replace the other way with that IIRC
15:44:16flaviuWell, for my use case, the type parameter shouldn't be inferred, and it flows better when reading the code.
15:44:30*gokr quit (Quit: Leaving.)
15:45:43EXetoCit could work with inferrence, but I don't know of a type class that matches any type
15:46:17EXetoCfor when you want to make the parameter an instance of said type, rather than being a typedesc
15:49:26EXetoCwho was working on syntactic sugar for sum types?
15:50:04*darkf quit (Quit: Leaving)
15:50:07flaviuEXetoC: https://gist.github.com/flaviut/53b7f1928c944c010605 ?
15:50:22flaviuIt only works in the same module though; some weirdness with bindSym.
15:59:40*dts|pokeball quit (Ping timeout: 264 seconds)
16:02:04*BlaXpirit quit (Read error: Connection reset by peer)
16:03:08*BlaXpirit joined #nimrod
16:07:05*yglukhov quit (Quit: Be back later ...)
16:12:23EXetoCassert, array, len, add etc are highlighted in nimrod.vim. I think it adds too much noise
16:13:30dom96What are you guys coding?
16:13:42EXetoCmsgpack
16:13:43*gokr joined #nimrod
16:14:08flaviudom96: Yaml parser wrapper!
16:14:15dom96cool
16:15:03dom96gokr: Are you running Sailfish OS?
16:15:43*gokr1 joined #nimrod
16:16:29*gokr_ quit (Ping timeout: 245 seconds)
16:27:11*gokr_ joined #nimrod
16:27:17*gokr quit (Ping timeout: 240 seconds)
16:30:31*yglukhov joined #nimrod
17:23:39VarriountUgh... I just made a java class called "ListListModel"... I think I'm going to be sick.
17:27:01*yglukhov quit (Quit: Be back later ...)
17:27:29*dts|pokeball joined #nimrod
17:40:14*def- quit (Ping timeout: 245 seconds)
17:43:14*yglukhov joined #nimrod
17:44:10dts|pokeballwhats the difference between inc(x) and succ(x)? they seem to both just increment x
17:45:28flaviudts|pokeball: They do exactly the same thing, yes.
17:46:02Araq_succ(x) --> x+1
17:46:08Araq_inc(x) --> x++
17:46:16Araq_not at all the same
17:46:17dts|pokeballah
17:46:30flaviuSorry, I misremembered then.
17:46:52dts|pokeballso succ(x, n) is x+n and inc(x, n) is while n--: x++?
17:47:11dom96Araq_: Can we migrate to the new server fully?
17:47:13Araq_x -= n; yes
17:47:14dom96Think the forum is ready?
17:47:33Araq_dom96 the question is: does flaviu think that? :P
17:47:50dom96He still hasn't hacked it :P
17:48:00dom96I still need to get nimbuild running on the new server.
17:48:12flaviudom96: Do you have mailing implemented?
17:48:24dom96flaviu: no
17:48:41flaviuOk. I'm just asking because I'm curious, it shouldn't be a blocker.
17:49:03Araq_dom96: does it use some new awesome hashing and not MD5 anymore?
17:49:07dom96no
17:49:20Araq_aww
17:50:52flaviudom96: "He still hasn't hacked it" - no fair! I've submitted the bcrypt patch!
17:51:37*yglukhov quit (Quit: Be back later ...)
17:51:45dom96flaviu: Yeah, and it wouldn't compile for me.
17:52:01flaviuOn windows, but nimforum runs on linux.
17:52:19dom96And I was too busy fixing silly style issues so I had no time to test it on Linux :P
17:52:44Araq_huh?
17:52:50Araq_but it runs on Linux right now
17:52:59Araq_we have no windows server
17:53:27dom96Araq_: what?
17:53:32flaviudom96: Have you ever worked with pre-made CSS?
17:53:44flaviuYou should if you haven't, you'll learn a lot.
17:54:12dom96flaviu: Excuse me?
17:54:46flaviuLike bootstrap or something
17:55:00EXetoCI think foundation is better
17:55:14flaviuEXetoC: The idea is that the css is written by someone else
17:55:23flaviuso you pick up idioms and such.
17:57:01Araq_dom96: I thought it already runs on our VPS ...
17:57:11dom96Araq_: It does. You seem confused.
17:57:24Araq_I am
17:57:26dom96Araq_: bcrypt wouldn't compile so I didn't include it.
17:57:37dom96The forum is currently running without the bcrypt patch.
17:57:51Araq_because bcrypt doesn't compile on our VPS?
17:58:00dom96Araq_: no, because it doesn't compile on my machine.
17:58:17*Araq_ is thinking ...
17:58:20dom96flaviu: You do realise that I haven't written most of that CSS right?
17:58:24*Araq_ fails ...
17:58:39Araq_so ... do you cross compile from Win to Lin?
17:58:47dom96Araq_: No.
17:58:58Araq_so you compile it again on the VPS?
17:59:07dom96What's so hard to understand?
17:59:29dom96If it compiles on Linux I can apply it.
17:59:33dom96But then I won't be able to test it locally.
17:59:43Araq_well you say bcrypt doesn't compile on your win machine, but who cares
17:59:45flaviudom96: Ok, who do I go lecture then? :P
17:59:50dom96I didn't check if it compiles on Linux yet because there were other things to do.
17:59:57dom96flaviu: filwit
18:00:18Araq_ok, so apply flaviu's patch please
18:01:04Araq_our forum shall be more secure than my online banking
18:01:18*perturbation joined #nimrod
18:02:40*irrequietus joined #nimrod
18:03:00flaviuAraq_: That says more about online banking than the forum.
18:03:41Araq_flaviu: that was my intention
18:03:59Araq_wow
18:04:05Araq_the search now rules!
18:05:18dts|pokeballis type similar to c's typedef?
18:05:55flaviudts|pokeball: I suppose, although you can't have anonymous types in Nim. (excluding tuples)
18:06:11dts|pokeballok
18:08:13dts|pokeballreading the tutorial, TIntArray = array[0..5, int] does this mean: an array with the values, 1, 2, 3, 4, 5, and then any valid int?
18:08:30dts|pokeballso it could be [1, 2, 3, 4, 5, 42]?
18:08:43flaviudts|pokeball: No, 0..5 means that you can index it with that range
18:10:45flaviuie, myArray: array[0..5, int]; myArray[0] # valid; myArray[4] # valid; myArray[6] # invalid
18:11:19flaviudts|pokeball: The tutorial is a bit hard to understand, see if http://learnxinyminutes.com/docs/nim/ is better
18:11:42ekarlso-anon types ? ^^
18:12:01dts|pokeballwell i had tried using x in y before, but i didnt know nim at all, so let me try again
18:12:12dom96flaviu: Your SQL script is failing with 'NOT NULL constraint failed: person.name'
18:12:24flaviuekarlso-: I don't know much C, but I hear you can do stuff like `struct {int a; float b} doStuff()...`
18:13:34dts|pokeballin the mean time, if i compile a non release version of my exe with --bound_checks:on, and no errors are generated, would it be fine to do --bound_checks:off on release?
18:15:02flaviudts|pokeball: It's a decision that you have to make, it depends on every part of your program.
18:15:18flaviudom96: I'm not sure why - I'm not even touching person.name.
18:16:58dom96using 'update' seems like a better idea
18:17:21flaviuNope, I've got it.
18:17:24dom96:\
18:17:27dom96unrecognized token: "'"
18:17:49flaviuReplace Into person(password) values (?) where person.rowid = ?;
18:18:03dom96why not just update?
18:18:20flaviuBecause I can't be bothered to check the syntax for update :P
18:18:29dom96well I already got it.
18:18:44dom96only problem is that bcrypt now is giving me an empty output
18:22:34*yeye123 quit (Ping timeout: 250 seconds)
18:22:48*def- joined #nimrod
18:23:13flaviudom96: try hash(getMD5(salt & getMD5(password)), gensalt(8))
18:23:39dom96it's in the conversion program
18:24:37dom96flaviu: https://gist.github.com/dom96/4a4fd5901d8195231b58
18:24:42dom96Must be one of the characters in the salt.
18:24:52dom96So yeah.
18:24:57dom96bcrypt definitely not ready
18:25:28dom96or I dunno, maybe it has restrictions on the salt it can take
18:26:03*brson joined #nimrod
18:26:50flaviudom96: Yes, that's it.
18:27:27flaviudom96: Just do hash(row[1], genSalt(8)) then
18:28:00dts|pokeballi went through the x in y tutorial. is there one explaining iterators?
18:28:06dom96flaviu: I will need to save two salts then.
18:28:16flaviudom96: No, you don't.
18:28:29flaviubcrypt handles saving the salt
18:28:35dom96huh? how?
18:29:00flaviu$2a$08$5S2cZpm.ElP7qddUzKVKAuaJ92Oyef/JCwq5HGCg9cjPtP1TR8qIq
18:29:12flaviu$2a is the type of hash
18:29:19flaviu$08 means something else
18:29:35dom96ok
18:29:37flaviu$5S2cZpm.ElP7qddUzKVKAuaJ92Oyef I think is the salt
18:30:18flaviuwait, no.
18:30:56flaviu$2a$ is the algorithm, 08 is the hash difficulty, the rest is base64
18:32:11*starless joined #nimrod
18:32:44flaviubut it looks like that bcrypt library doesn't expose that stuff.
18:32:54*milosn joined #nimrod
18:32:57dom96flaviu: I guess I don't need to pass genSalt(8) in makePassword then right?
18:33:52dom96well, my login doesn't work.
18:33:52EXetoCI assume you have db backups
18:34:04dom96EXetoC: No, I decided to wing it!!!!
18:34:17EXetoCliving on the edge
18:34:55flaviudom96: I don't have an answer, can you wait ~20 min until I come up with something?
18:35:03dom96oh wait
18:35:06dom96I forgot to git pull
18:35:41flaviudom96: Even though the salt is stored with the hash, there is not an easy way of getting to it. Give me a few moments.
18:36:28dom96Yeah...
18:36:31dom96still doesn't work.
18:37:00dom96ok, i'll wait.
18:45:01dom96In any case, you said it would take me no time at all.
18:45:11dom96Guess that proves you wrong :P
18:45:49Araq_the quality of the average PR can be determined by this condition:
18:46:16Araq_if author == "Jehan" or touchesAnyTest(): "good" else: "bad"
18:47:02*Matthias247 joined #nimrod
18:50:48dts|pokeballso i have a few questions about command line arguments: --deadCodeElim:on|off what exactly does that mean? what defines dead code? --opt:none|speed|size does this literally want one of those words or an int? can i optimize for speed and size or is one or the other. --app:console|gui|lib|staticlib does this default to --app:console or does using that do something to the program?
18:50:57*perturbation quit (Quit: Leaving)
18:51:16EXetoCwhat defines it? the compiler code
18:51:59dts|pokeballis like var x: int and then never using x?
18:52:09dts|pokeball/s/is/is it/
18:52:14flaviudts|pokeball: dead code is code that will never be executed, it wants the literal words. You can't optimize for speed and size because the C compiler doesn't like it.
18:52:31flavius/,/./
18:52:46dts|pokeballk. ty
18:53:26EXetoChow would you include both anyway? with complex heuristics perhaps
18:54:17Araq_usually size optimizations are simply those optimizations that cannot negatively increase code size
18:54:24flaviudom96: https://gist.github.com/591aa85871b715b9bd62
18:54:34Araq_and there are few if any specific optimizations done to reduce the size
18:54:37flaviuI've made wrapper for another package.
18:55:14Araq_so "size" really means "speed, but keep code size in mind"
18:55:44Araq_and not "size, even if it runs 10x slower then"
18:57:43Araq_dts|pokeball: yes, it defaults to --app:console
18:57:59dts|pokeballk. ty
19:00:40dom96flaviu: Should I be using the password as the salt then?
19:00:51dom96or using your new package or both?
19:00:55flaviudom96: Nope, it's a different package
19:01:07flaviuI'm trying to figure out how to mix in a makefile in the nim build process.
19:01:22Araq_don't.
19:01:32Araq_just tell it which files to .compile
19:01:47Araq_it performs its own caching anyway
19:02:12dts|pokeballnim has a build tool?
19:02:40Araq_the compiler knows what to recompile on its own
19:02:59Araq_Nim isn't stuck in the 60ies.
19:05:01flaviuDoes someone have an example of the compile pragma in use?
19:05:30Araq_{.compile: "foo/bar/baz.c".}
19:05:51Araq_what more could an example show?
19:06:12flaviuHow to avoid linker errors.
19:06:56EXetoCAraq_: any disadvantages of a user-defined object variant interface?
19:07:25Araq_no idea what that means
19:07:51EXetoCthe current mechanism is defined by the language
19:07:53dom96flaviu: Don't bother.
19:07:56dom96flaviu: I got it working.
19:08:05flaviuOk, good.
19:08:39flaviuAlthough I still want to post this wrapper
19:08:57Araq_flaviu: instead of figuring out what the makefile does, just run it and log its commands
19:09:04Araq_in particular the linker invocation
19:09:30Araq_and then transform that to some {.passL: "".} command
19:10:29*Araq_ is a fan of runtime tracing
19:12:26dom96Please check if you can login.
19:13:57EXetoCAraq_: having Variant[T...] rather than a language construct that is
19:14:39dom96Araq_: ^
19:15:18flaviuIt doesn't seem to do anything unusual with linking.
19:15:36flaviu"multiple definition of gensalt_88060", and so on
19:16:33flaviuWell, it seems I can't have the C file be the same name as the nim file
19:16:51Araq_you can if you use a Nimble package, I think
19:18:15Araq_dom96: http://178.62.143.63/t/654
19:18:31dom96great
19:18:47dom96Wanna switch to it now?
19:19:06Araq_nah, I like the older design better.
19:19:11Araq_JUST KIDDING!
19:19:23Araq_sure go ahead but please
19:19:33Araq_be here tomorrow when all the issues come up
19:19:41dom96lol
19:20:03EXetoCis this going to work eventually: "echo\n param1,\n param2"?
19:20:09dom96I'll be around but not sure how much time i'll have.
19:20:18dom96But it should be fine.
19:20:38dom96ok. point nim-lang.org to 178.62.143.63
19:20:40Araq_you could make your script swithc over to the old version if it crashes too often
19:20:42dom96nimrod-lang.org too
19:21:00dom96No I couldn't.
19:21:04dom96The databases are different.
19:21:25dom96Specifically the hashing algorithm :P
19:21:41Araq_well you could use a backup DB then, you know
19:21:49Araq_EXetoC: no and no.
19:22:03dom96yeah, or I could take a well deserved breajk.
19:22:05dom96*break
19:22:39Araq_ok let's see
19:23:01Araq_hrm I don't remember anything
19:24:14EXetoCok so at least one argument has to be on the same line. fair enough
19:25:25*milosn quit (Read error: Connection reset by peer)
19:25:56*milosn joined #nimrod
19:26:44Araq_dom96: done for nim-lang.org
19:27:18dom96bah somebody just posted in the old forum lol
19:28:25Araq_doesn't matter, it's just some guy who doesn't read anything :P
19:28:36Araq_"cannot take addr from parameter"
19:29:10EXetoCfrom? of?
19:29:27Araq_'of', whatever
19:29:34EXetoCc(:)|<
19:30:00dom96Araq_: Make sure to change the subdomain's IPs too
19:31:23*yglukhov joined #nimrod
19:31:40Araq_ah yeah
19:32:13Araq_just found the right tab ... gosh this web UI is so bad
19:35:40wanis `./koch web` supposed to work at the moment? I get a `lib/pure/algorithm.nim(186, 15) Error: internal error: genAddr: 4`
19:35:47dom96Araq_: you may wanna remove that Araq was here thread :P
19:35:57*shevy left #nimrod ("I'll be back ... maybe")
19:36:16*yglukhov quit (Ping timeout: 264 seconds)
19:37:02Araq_wan: worked when I last run it but that's a while ago
19:37:25Araq_and people don't consider a working test suite to be important
19:37:54Araq_seriously how hard can it be to show the website that the very tester already generates?
19:38:09*Araq_ is looking at Varriount ...
19:38:34flaviuAraq_: What? From what I can tell, most people like a giant test suite.
19:39:00Araq_yes but nobody likes to maintain such a thing
19:39:43dts|pokeballok, i know i asked this last night, but i missed it, so i promise this is the last question i ask today: why is my iterator still throwing an error? http://paste.ubuntu.com/9416315/ http://paste.ubuntu.com/9416316/
19:39:54*yeye123 joined #nimrod
19:40:17flaviudom96: Irclogs don't work
19:40:31dom96flaviu: indeed
19:40:36flaviu(06:27:48 AM) flaviu: dts|pokeball: Still around?
19:40:36flaviu(06:28:33 AM) flaviu: dts|pokeball: closure iterators are confusing, I don't completely understand how to use them either
19:40:36flaviu(06:29:09 AM) flaviu: but try something like `proc getNext(source: var string): interator(): char = return interator(): char = ...`
19:40:36dom96flaviu: And they won't for a while.
19:40:56flaviuI have to dig up my own logs to post now :(
19:41:05willwillsonor: dts|pokeball: for the closure iterator, try assigning it to a variable and then calling it: let getNextInstance = getNext ; getNextInstance("string")
19:41:20Araq_flaviu: you cannot capture a 'var', so bad example
19:41:52dts|pokeballthanks guys
19:42:23flaviuAraq_: That should be directed at dts|pokeball
19:42:55Araq_dom96: what do you mean? they won't for a while? I depend on them
19:43:31wanwow, there's a bit of reOutputsDiffer and reNimCrash when I run `koch tests`
19:43:32dom96Araq_: I mean. There won't for a while.
19:43:43dom96Araq_: Until I get the time to get them working.
19:44:19Araq_how can you take a break when they don't work?
19:45:19dom96I was going to get them working. But then you told me to get bcrypt working.
19:45:56flaviudom96: bcrypt is now easy https://github.com/flaviut/easy-bcrypt !
19:46:03Araq_do not listen to Araq when he obviously has not the full picture of what's left to do!
19:46:11dom96indeed.
19:47:14Araq_when you get them to work tonight, I'll send you a package of German beer.
19:48:13dom96Seriously?
19:48:17dom96What kind?
19:48:32Araq_seriously.
19:48:42Araq_whatever kind you want
19:49:28dom96I would honestly prefer some German food.
19:49:45willwillsonsome kraut and wurst?
19:49:56Araq_so if somebody of you guys ever wondered what your paypal donations are used for, now you know :P
19:50:59Araq_dom96: what kind of german food?
19:51:15dom96Araq_: I dunno. Anything that's good.
19:51:28dom96I'm a poor student who needs sustenance.
19:51:32Araq_I'll send you some beer then.
19:51:49wanthat should tell us a lot about german food
19:51:54Araq_we say "7 beers can replace a full meal"
19:52:32dom96You can send me a few beers.
19:52:39dom96But send some actual food too :P
19:52:51Araq_beer and crisps then :P
19:53:31dom96meh
19:53:42dom96no irclogs for you
19:54:09*nickles joined #nimrod
19:54:31dom96Araq_: please delete this http://178.62.143.63/t/654
19:55:16dts|pokeballok, last question now (probably). i promise. i just cant for the life of me get this one if anyone can help with this: http://paste.ubuntu.com/9416437/ http://paste.ubuntu.com/9416438/
19:55:37willwillsonuse &, not +
19:55:47dts|pokeballoops
19:55:49willwillsonfor string concatenation
19:55:49dts|pokeballty
19:58:01flaviuGuys, I'm not sure the forum has a rss feed: http://i.imgur.com/oM9coXH.png :P
20:01:21willwillsonwasn't one supposed to be for new posts and the other for new threads?
20:01:31dom96^^
20:01:31*gokr_ quit (Read error: Connection reset by peer)
20:01:40*gokr_ joined #nimrod
20:01:53flaviuLooks the same to me.
20:03:07willwillsonI think the one above activity should point to http://forum.nimrod-lang.org/postActivity.xml though
20:03:10dom96oops
20:03:14dom96Yeah.
20:03:39*nickles quit (Quit: Page closed)
20:05:10EXetoCyou don't notice things like that? :p
20:05:38dom96I don't use atom feeds.
20:06:20EXetoCnm
20:06:33dom96fixed
20:11:07dts|pokeballthanks everyone for putting up with me! i have a compiled version now
20:15:01gokr1I think someone asked me something, but can
20:15:04gokr1't find it.
20:15:16flaviudts|pokeball: What are you working on?
20:15:32dts|pokeballflaviu, a compiler
20:15:51willwillsonit was "are you using sailfishOS?" and the question was from dom96 ;D
20:16:40willwillsongokr1: ^
20:18:10*pafmaf_ joined #nimrod
20:20:44*brson quit (Quit: leaving)
20:21:24gokr1Ah! Yeah, my phone is a Jolla
20:21:43gokr1dom96: Yes, I got a Jolla phone.
20:21:49dom96gokr1: cool
20:22:00gokr1Its pretty slick, I like it a lot.
20:22:23dom96Does it have any interesting features?
20:22:45gokr1Had a Pre2 earlier - really loved the gesture based webOS, then I got myself a XiaoMi Mi2s, now Jolla, and the Jolla is really a developer phone.
20:23:02gokr1Yeah, its a "true Linux", all the UI is Qt based, really slick looking, very gesture based.
20:23:24gokr1Also has an Android runtime, so it runs all the Android apps I have thrown at it.
20:23:50gokr1But generally you want the Sailfish apps, they behave much smoother.
20:24:03gokr1It would be fun to make a Sailfish app in Nim some day.
20:24:12gokr1Ok, gotta put girls in bed
20:24:58willwillsonmaybe if that guy comes through with his QML wrapper you can :D
20:27:26dom96Would be cool if Nim became Sailfish's official programming language :P
20:29:47Araq_dom96: not gonna happen. we have a default value for 'result' :P
20:30:51flaviuIt's not going to happen because they have to reason to switch from the much more mature and popular C++
20:32:31Araq_flaviu: it's good that you keep reminding us about the obvious
20:34:11flaviuToo many happy thoughts result in more time in this channel, and fewer bugs fixed, I can't have that :P
20:36:07Araq_you don't need to push me, even when there is no visible activity i'm working on bugfixes
20:37:27flaviuAraq_: Sorry, I wasn't being at all serious. Fix bugs however quickly you want.
20:49:03*ARCADIVS joined #nimrod
20:57:00*bjz_ quit (Ping timeout: 256 seconds)
20:59:01*brson joined #nimrod
20:59:03*brson quit (Client Quit)
21:02:20yeye123how about using nim for hard real time, industrial automation, plc stuff and so on, possible?
21:03:35Araq_in principle yes. In practice the whole industry is busy to stay ignorant about anything that might improve productivity.
21:04:45yeye123well, in a very conservative business I guess thats "normal" but I think there is some progress
21:06:05Araq_most people I know cannot even imagine what's it like to have non broken tooling
21:06:06yeye123even though its a toy theres a lot of people tinkering with raspberry pi and the like who could be introduced to nim
21:07:34yeye123how is access to a bit in a byte in nim for example?
21:08:34EXetoCuse good old bit-shifting/and'ing
21:09:21Araq_yeye123: Nim runs on the RPI
21:10:31Araq_dom96: I know it's annoying but
21:10:39Araq_the top level navigation doesn't work yet
21:11:04Araq_thought it was too obvious to mention but now it's live ... :P
21:11:20dom96Argh. I forgot.
21:11:41yeye123so you have to mask it to get a single bit or do you have "bitwise" access? sorry i should read the manual i know
21:13:31*irrequietus quit ()
21:13:44Araq_you have to mask like in C
21:14:25dom96fixed
21:19:49*milosn quit (Ping timeout: 245 seconds)
21:20:21yeye123Araq_: But I am a bit sorry that you dismiss a whole industry like that in one sentence, no critique, just my 2 cents
21:22:04yeye123I'm enjoying Nim so far, thats for sure
21:22:09Araq_if you want the non rambling Araq you have to use the forum
21:23:09yeye123no problem here Araq_ :)
21:25:48*yeye123 quit (Quit: Leaving)
21:33:28Araq_hrm restarts of the browser are now as annoying as OS restarts
21:34:52EXetoCwhy?
21:35:30Araq_cause both lose about the same amount of state
21:40:14*milosn joined #nimrod
21:40:19*gour quit (Quit: Konversation terminated!)
21:41:15gokr1dom96: Thanks a million for the new forum. Lovely with search.
21:41:40dom96gokr1: No problem :)
21:44:34willwillsondom96: aren't the links in the bottom left hand corner still pointing to the wrong place? or is my browser caching something?
21:44:47*ARCADIVS quit (Quit: ARCADIVS)
21:45:07dom96willwillson: yep. Missed those.
21:48:52*ARCADIVS joined #nimrod
21:49:37dom96willwillson: Now it should work.
21:50:17willwillsonyep, working now, thanks
21:51:53*dts|pokeball quit (Ping timeout: 260 seconds)
21:52:22flaviuAraq_: You can tell firefox to save your tabs from last time
21:55:05Araq_flaviu: I know
21:56:15*gour joined #nimrod
22:04:09flaviudoes the forum have to use rst? I've wrapped discount markdown, we can just drop that in and get the markdown everyone loves.
22:05:36Araq_that's an everyone that excludes me and apart from that we have 3546 posts in the old format
22:05:52Araq_does your wrapped markdown even support Nim syntax highlighting?
22:06:07flaviuNo, I use pygments for that.
22:07:51Araq_so to render an ordinary thread we have to invoke python a couple of times?
22:08:21flaviuIt can be daemonized to reduce overhead
22:08:29flaviubut I see your point.
22:10:51flaviuYou could also make the browser deal with it, there's a javascript highlight engine that supports Nim
22:12:34Araq_we can also cache the problem away
22:12:38*pafmaf_ quit (Ping timeout: 250 seconds)
22:13:05*pafmaf joined #nimrod
22:14:34*pafmaf quit (Client Quit)
22:20:52*untitaker quit (Ping timeout: 250 seconds)
22:26:32*untitaker joined #nimrod
22:28:58*NimBot joined #nimrod
22:29:05dom96!ping
22:29:05NimBotpong
22:29:05NimBotpong
22:29:31dom96"This address uses a network port which is normally used for purposes other than Web browsing." You kidding me firefox?
22:30:08flaviu!seen !ping
22:30:08NimBotI have not seen !ping
22:30:15*NimBot quit (Read error: Connection reset by peer)
22:30:28*NimBot joined #nimrod
22:32:07flaviu\nick !ping
22:33:19*NimBot quit (Read error: Connection reset by peer)
22:35:27flaviudom96: So close.. Why does nickserv have to stop me?
22:42:33Araq_!lag
22:42:33NimBot147ms between me and the server.
22:42:40Araq_now we're talking
22:43:17EXetoC!lag
22:43:17NimBot147ms between me and the server.
22:52:47*gour quit (Quit: Konversation terminated!)
23:04:39*NimBot joined #nimrod
23:07:57*gokr_ quit (Ping timeout: 240 seconds)
23:08:30*NimBot joined #nimrod
23:08:59*gokr1 quit (Ping timeout: 245 seconds)
23:11:34*gokr joined #nimrod
23:15:27*NimBot joined #nimrod
23:17:04dom96Araq_: http://irclogs.nim-lang.org
23:17:28Araq_nice
23:17:50Araq_can I also see the logs for days in the future?
23:18:23EXetoCnot yet
23:18:56Araq_we could predict when I rant about Unix and OS9
23:19:32dom96Araq_: Sure, that'll be 5 billion euro.
23:19:47fowli'll do it for half that
23:22:07*brson joined #nimrod
23:22:18*ARCADIVS quit (Quit: ARCADIVS)
23:22:20Araq_dom96: everything is asynchronous
23:22:35Araq_our future is the past for some alien
23:22:43*Matthias247 quit (Read error: Connection reset by peer)
23:22:54dom96Guys, I think Araq_ is high.
23:24:17EXetoCwell there's the theory about infinite variations and such
23:24:53fowlthen theres the theory of varying infiniteness
23:25:49EXetoCwot
23:34:55Araq_reactormonk: rename the channel now
23:37:00dom96I thought I was going to do that?
23:37:14Araq_oh ok
23:37:17dom96Did you forget already?
23:37:22Araq_yes
23:38:13dom96We'll do it after release like I said.
23:38:23*pafmaf joined #nimrod
23:39:46Araq_well the forum already says it's "Nim"
23:40:07Araq_we should do everything at once for the improved user experience
23:43:31dom96alright
23:44:16*flaviu quit (Remote host closed the connection)
23:52:53*pafmaf quit (Quit: Verlassend)
23:55:40Araq_hrm ... using enum for hostOS and hostCPU is flawed
23:56:15Araq_when I do: when hostOS == "newos" then this is simply false if the compiler doesn't know about newos
23:56:45Araq_but if it's an enum people need to use the latest compiler just so that check is false
23:57:35Araq_good that I already implemented this "improvement" ... :-/
23:59:15reactormonkAraq_, you gotta enable the forward yourself, I don't have the permissions
23:59:36Araq_reactormonk: it's ok, dom96 will do it.