00:08:07 | flaviu | starless: Just realized, another use of `result` is to clean up after getting the return value |
00:09:07 | flaviu | `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:14 | Araq_ | flaviu: we use C's floating point parsing since a while now |
00:43:48 | flaviu | I 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:04 | flaviu | Can't the things in the `defined(nimParseBiggestFloatMagic)` branch be removed now then? |
00:49:16 | * | BlaXpirit quit (Quit: Quit Konversation) |
00:49:43 | Araq_ | yes but first we need to figure out where the bug comes from |
00:50:20 | * | Trustable quit (Quit: Leaving) |
00:50:38 | Araq_ | also thanks for "languages with proper float parsing" |
00:50:50 | Araq_ | which one are those? |
00:51:21 | Araq_ | the old algorithm comes from FreePascal, I guess that has no proper float parsing either |
00:52:55 | flaviu | Java, Javascript, Python |
00:53:16 | flaviu | I wouldn't be surprised if FreePascal had improper float parsing |
00:53:24 | flaviu | It's really a *major* PITA |
00:54:58 | flaviu | From what I understand, back in the day processor FPUs were terrible anyway, so it didn't really matter. |
00:58:58 | Araq_ | hrm indeed |
00:59:01 | Araq_ | it works in C |
00:59:09 | Araq_ | and yet defined(nimParseBiggestFloatMagic) is true |
00:59:46 | * | yglukhov joined #nimrod |
01:03:09 | Araq_ | oh wait |
01:03:20 | Araq_ | I see lol |
01:03:51 | Araq_ | nimParseBiggestFloat uses a 128 fixed size buffer for speed reasons |
01:04:24 | Araq_ | your literal is longer than that ... |
01:04:27 | * | yglukhov quit (Ping timeout: 264 seconds) |
01:04:47 | Araq_ | wtf how big should this buffer be? |
01:05:17 | Araq_ | how did you find this bug? o.O |
01:05:17 | flaviu | I think that's the longest literal that is possible |
01:05:42 | Araq_ | do you actually use this literal anywhere? |
01:05:51 | flaviu | I remembered there being problems with float parsing, so I tried to make the smallest number possible to expose them |
01:06:19 | flaviu | No, I didn't actually use the literal, I could have just used 1e-... |
01:06:19 | Araq_ | I remembered they are all fixed since forever :P |
01:06:34 | Araq_ | thanks a lot! |
01:07:19 | Araq_ | also the fix was painful because C's stdlib is ... suboptimal for this |
01:07:52 | flaviu | isn't atof exactly what you need? |
01:08:42 | flaviu | never mind, undefined behavior |
01:09:16 | flaviu | ah, and locales. |
01:13:57 | Araq_ | I think my old algorithm would in fact have handled this correctly |
01:14:12 | Araq_ | :P |
01:17:20 | dom96 | Alright: http://178.62.143.63/ |
01:17:29 | dom96 | Please test. |
01:17:44 | dom96 | If it works we can replace the old forum with it now. |
01:19:16 | Araq_ | dom96: ugh, make it use the real database please |
01:19:35 | dom96 | ok |
01:19:35 | Araq_ | test it against real data |
01:20:11 | flaviu | dom96: http://imgur.com/a/tHQaR |
01:20:55 | dom96 | how small is your screen? |
01:21:36 | flaviu | I resized it to cause the problems |
01:21:45 | flaviu | but at no point was it smaller than a phone |
01:22:17 | EXetoC | any progress regarding encryption and all that? |
01:22:25 | dom96 | In that case sorry but it's not a high priority. |
01:23:14 | flaviu | EXetoC: encryption is the wrong word for it, but the PR is at https://github.com/nim-lang/nimforum/pull/25 |
01:23:33 | dom96 | Araq_: Done |
01:24:17 | Araq_ | flaviu: remember: it doesn't have to be good. it only has to be better than the current one ;-) |
01:24:56 | flaviu | Still, these small things are easy to fix. |
01:25:02 | dom96 | flaviu: then fix them |
01:25:20 | Araq_ | er wtf ... nim-lang.org is a deadlink? |
01:25:34 | dom96 | ? |
01:25:48 | dom96 | works for me |
01:27:24 | Araq_ | I cannot even ping it |
01:27:55 | EXetoC | works for me too |
01:28:05 | dom96 | http://www.downforeveryoneorjustme.com/nim-lang.org |
01:28:26 | EXetoC | good old routing issue |
01:29:40 | Araq_ | ok well sorry |
01:29:57 | Araq_ | but when I have a syntax error, preview doesn't work but no error message is shown |
01:29:59 | flaviu | dom96: I don't like to bash unpaid work, but the css is sloppy |
01:30:06 | flaviu | https://raw.githubusercontent.com/nim-lang/nimforum/new_async/public/css/style.css |
01:30:39 | dom96 | Then why are you? |
01:31:08 | dom96 | That said, I agree. |
01:31:14 | flaviu | It's my justification for not wanting to fix it :P |
01:31:22 | dom96 | I was going to run it through a css prettifier. |
01:32:10 | dom96 | flaviu: Yeah. Talk is cheap :P |
01:32:25 | dom96 | Araq_: I shall fix that. |
01:32:32 | Araq_ | dom96: not convinced the list of users that participated is necessary |
01:32:48 | Araq_ | or how it looks like once *many* participated |
01:33:01 | dom96 | Araq_: Discourse disagrees and it's too late now. |
01:33:05 | willwillson | http://178.62.143.63/postActivity.xml seems to load a lot quicker now? |
01:33:29 | dom96 | willwillson: Might be because it's running on an SSD now. |
01:33:52 | willwillson | dom96: nice, it was dog slow before ;-) |
01:34:02 | dom96 | Which reminds me. I need to add the feed buttons somewhere. |
01:34:27 | Araq_ | hrm Trixar_za is an anime now too |
01:34:47 | dom96 | Araq_: It won't show all of them. |
01:34:56 | flaviu | Araq_: The little user buttons work really well actually. The wrap on overflow, and go out of bounds where they're invisible. |
01:35:34 | flaviu | dom96: Can you dump the database with the passwords stripped? |
01:35:46 | dom96 | flaviu: not easily. |
01:35:54 | dom96 | Why do you need it? |
01:35:57 | Araq_ | ha, just wait until I uploaded my ugly face and then it will be *everywhere* |
01:36:12 | flaviu | dom96: Curiosity, I want to look at statistics |
01:36:21 | dom96 | Araq_: A simple if statement can fix that. :P |
01:36:22 | Araq_ | and then you will realize how bad this an idea was |
01:37:10 | Araq_ | dom96 lol |
01:37:32 | Araq_ | how about an 'if' for Araq that disables images? |
01:38:28 | dom96 | Araq_: Just get adblock and block everything from gravatar.com :P |
01:39:19 | flaviu | dom96: Just download the database and run `UPDATE person SET password='';` |
01:39:29 | dom96 | flaviu: I have fixing to do. |
01:39:36 | dom96 | flaviu: Don't have time for that. |
01:39:41 | dom96 | Araq_: gimme some invalid rst |
01:39:47 | flaviu | Sqlitestudio makes it really easy! |
01:40:06 | Araq_ | dom96 don't close some ```nimrod |
01:42:38 | Araq_ | flaviu: try your HTML injection again please |
01:43:16 | EXetoC | I 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:28 | willwillson | how come LeuGim's search didn't make it? |
01:47:32 | dom96 | EXetoC: :( |
01:47:46 | dom96 | willwillson: It did. I need to run a script through the DB though. |
01:48:05 | willwillson | dom96: ahh cool |
01:48:19 | flaviu | Araq_: I'm not sure I remember how to reproduce it. |
01:48:34 | flaviu | Is the old database still available dom96? |
01:48:44 | Araq_ | flaviu: images |
01:48:55 | willwillson | looks nice by the way... I like the new syntax highlighting |
01:48:57 | EXetoC | I think it would look better if there weren't so many borders |
01:49:12 | flaviu | Araq_: 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:21 | dom96 | flaviu: old? |
01:49:27 | dom96 | flaviu: which old database? |
01:49:44 | flaviu | dom96: The one that was on before replacing it with the real one |
01:49:47 | flaviu | The testing database |
01:50:01 | dom96 | no, I deleted it. |
01:50:04 | dom96 | I have tried your hack |
01:50:08 | dom96 | Went into the cat picture |
01:50:12 | Araq_ | EXetoC: I said the same to dom96 ... ;-) |
01:50:15 | dom96 | didn't seem to be working. |
01:50:30 | dom96 | Araq_: You don't like the buttons either? :( |
01:50:35 | Araq_ | maybe my fix disables imagines completely |
01:50:40 | flaviu | dom96: Can you check the logs? |
01:50:56 | Araq_ | dom96: I'm talking about the many borders |
01:50:56 | dom96 | flaviu: to see if it crashes? |
01:51:10 | flaviu | Yes, my images aren't showing up at all for some reason. |
01:51:23 | flaviu | http://178.62.143.63/t/655 |
01:52:07 | Araq_ | flaviu: well your old ones are not valid |
01:52:18 | dom96 | Araq_: seems to be working fine |
01:52:21 | dom96 | er |
01:52:21 | EXetoC | backgrounds often vary only slightly |
01:52:22 | dom96 | flaviu: |
01:52:36 | * | tinAndi quit (Quit: ChatZilla 0.9.91 [Firefox 34.0/20141125180439]) |
01:52:47 | Araq_ | flaviu: so your old entries are simply omitted |
01:52:57 | dom96 | Araq_: there is only one border on the right sidebar. |
01:53:00 | Araq_ | what else should we do? crash? |
01:53:12 | flaviu | Araq_: Escape the url. |
01:53:29 | Araq_ | I don't think that's correct |
01:53:40 | dom96 | flaviu: what rst are you using? |
01:53:54 | flaviu | .. image:: test"></img>alert(1) |
01:54:05 | dom96 | yeah, that should be escaped. |
01:54:11 | dom96 | although |
01:54:12 | dom96 | meh |
01:54:22 | dom96 | if it's a url you would likely be pasting an escaped one anyway |
01:54:47 | flaviu | Yay, I crashed it! |
01:54:59 | Araq_ | argh, fuck, really? |
01:55:11 | flaviu | dbError: no such table: post_fts |
01:55:37 | dom96 | can you crash the live site please? |
01:55:40 | dom96 | I wanna see if it restarts |
01:56:14 | Araq_ | flaviu: please tell me you didn't succeed in an SQL injection |
01:56:35 | flaviu | Araq_: I don't think I did, but I may be on to something. |
01:56:37 | flaviu | dom96: https://gist.github.com/flaviut/f34ad472c94f1f4d6f82 |
01:57:02 | dom96 | jester caught it at least :D |
01:59:05 | willwillson | this guy sure lives up to his haxor username |
01:59:16 | dom96 | flaviu: how did you get it to crash? |
01:59:50 | flaviu | curl '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:47 | flaviu | It returns 502, which is wrong I think |
02:01:07 | flaviu | It should return 500. |
02:01:13 | dom96 | Ahh. Editing fails. |
02:01:16 | EXetoC | dom96: well I meant borders in general |
02:01:39 | dom96 | EXetoC: Good. Because I was going to remove some of them. |
02:01:39 | EXetoC | flaviu: do you find anything difficult to look at? |
02:01:44 | EXetoC | ok |
02:02:13 | Araq_ | good work anyway dom96! but I really need to sleep now. good night. |
02:02:21 | dom96 | Araq_: nooooo |
02:02:36 | Araq_ | it's 3 o'clock here ... |
02:02:45 | dom96 | Alright... |
02:02:48 | EXetoC | cya |
02:02:49 | dom96 | Will you be here tomorrow? |
02:03:00 | Araq_ | sure, I have no life |
02:03:12 | dom96 | k |
02:03:24 | flaviu | EXetoC: The black background on the .activity causes some nasty hinting for me, that's all. |
02:06:02 | EXetoC | ok |
02:11:31 | dom96 | There |
02:11:36 | dom96 | atom feed icons added |
02:12:28 | flaviu | dom96: Can you make the .activity font bigger or thinner? |
02:12:32 | dom96 | willwillson: search should now work |
02:12:45 | EXetoC | maybe 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:12 | willwillson | dom96: oh yeah, working a treat, good work! |
02:13:24 | dom96 | willwillson: needs some adjustment, the colors are a bit off. |
02:13:41 | EXetoC | but I'd have to see how it looks with my previous suggestions first. checking back tomorrow |
02:13:48 | dom96 | flaviu: I can make it 9pt |
02:14:43 | dom96 | flaviu: Is that better? |
02:15:10 | flaviu | dom96: Yes, significantly. |
02:16:35 | dom96 | I think i'll make the default color for code slightly less white |
02:18:17 | dom96 | flaviu: Please try to crash it. |
02:18:34 | dom96 | The edit crash should be fixed now |
02:24:06 | willwillson | some search results seem to miss a thread title (e.g a search for "array") |
02:25:08 | willwillson | well, only the first few results have a title |
02:25:21 | EXetoC | have you also run it through an audit framework? |
02:26:34 | willwillson | ahh, you only get get a thread title for an opening post? fair enough... |
02:26:44 | dom96 | willwillson: I think so |
02:26:49 | dom96 | EXetoC: no |
02:33:43 | flaviu | "Error: Subject not long enough" |
02:33:51 | flaviu | but I don't get a place to put a subject |
02:37:51 | dom96 | what are you doing? |
02:37:59 | flaviu | Submitting a reply |
02:38:12 | flaviu | It seems to think I want to use 0x01 as my subject, dunno why |
02:38:19 | dom96 | which thread? |
02:38:30 | flaviu | But 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:28 | flaviu | dom96: I don't think injection is possible, but I can cause a sql syntax error through issues with C strings. |
02:48:28 | flaviu | https://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:11 | dom96 | Search has been improved slightly. |
02:56:41 | dom96 | flaviu: weird |
02:57:06 | flaviu | Doesn't really matter though, I don't see any way of exploiting it. |
02:57:45 | dom96 | That part of the code should escape things properly. |
02:58:40 | dom96 | Time for sleep. |
02:58:44 | flaviu | 1 sec |
02:59:03 | flaviu | does nimforum have serve user-uploaded non-static assets? |
02:59:07 | flaviu | I don't think it does. |
02:59:15 | dom96 | no |
02:59:32 | dom96 | thanks for testing |
03:00:27 | flaviu | sure, happy to help |
03:01:01 | willwillson | some search results seem to not display post content (e.g search "array" again) |
03:02:11 | dom96 | Guess LeuGim will need to look into that. |
03:02:23 | dom96 | oh I know why. |
03:02:28 | dom96 | The rst parser fails. |
03:02:40 | dom96 | I guess I'll simply show the raw rst in that case. |
03:02:43 | dom96 | I'll fix that tomorrow. |
03:03:05 | willwillson | cool, good night |
03:03:37 | dom96 | bye |
03:07:41 | * | willwillson quit (Ping timeout: 260 seconds) |
03:15:29 | * | BitPuffin quit (Ping timeout: 250 seconds) |
03:20:40 | flaviu | Funny, tables.nim doesn't support hash()! |
03:23:11 | fowl | define support |
03:24:25 | flaviu | There is no proc hash(self: Table): THash |
03:25:01 | fowl | ok. the way you said it sounded like you expected hash(tables) to work |
03:25:08 | fowl | (the module) |
03:33:34 | * | q66 quit (Quit: Leaving) |
03:48:07 | * | q66 joined #nimrod |
03:54:36 | flaviu | Is there a way to convert a cstring of length n to a nim string? |
03:57:30 | flaviu | Allocating a new string of length n, moveMem seems to work |
03:58:17 | flaviu | It 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:24 | dts|pokeball | does 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:18 | dts|pokeball | better 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:13 | fowl | dts|pokeball, see the streams module |
09:44:05 | dts|pokeball | ok |
09:48:00 | fowl | there are two kinds of iterators, inline iterators and closure iterators, your use looks more like a closure iterator |
09:50:36 | fowl | http://build.nimrod-lang.org/docs/manual.html#first-class-iterators |
09:51:17 | fowl | good night |
09:51:45 | dts|pokeball | ty |
09:51:47 | dts|pokeball | night |
09:55:47 | * | pafmaf joined #nimrod |
09:57:53 | dts|pokeball | i 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:48 | flaviu | dts|pokeball: Still around? |
11:28:33 | flaviu | dts|pokeball: closure iterators are confusing, I don't completely understand how to use them either |
11:29:09 | flaviu | but try something like `proc getNext(source: var string): interator(): char = return interator(): char = ...` |
11:42:32 | yeye123 | hello everyone |
11:42:32 | * | gokr joined #nimrod |
11:42:52 | * | gokr quit (Remote host closed the connection) |
11:43:13 | yeye123 | proc set_border_width*(container: PContainer, border_width: guint){. |
11:43:13 | yeye123 | cdecl, dynlib: lib, importc: "gtk_container_set_border_width".} |
11:43:14 | * | gokr joined #nimrod |
11:43:26 | yeye123 | whats the meaning of * in the proc name? |
11:44:00 | flaviu | yeye123: It signifies that the proc is exported, that other modules can see it. |
11:44:29 | yeye123 | ahh ok, thank you, so no * means "private" for this module then? |
11:44:37 | flaviu | Yes. |
11:45:20 | yeye123 | i'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:16 | flaviu | It 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:57 | yeye123 | flaviu: thank you! |
11:48:33 | flaviu | happy 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:25 | flaviu | Has 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:45 | dom96 | flaviu: 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:47 | willwillson | dts|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:06 | EXetoC | what was the ip address for the new forum? |
13:13:59 | flaviu | EXetoC: http://178.62.143.63/ |
13:16:25 | * | gokr joined #nimrod |
13:17:07 | * | AFKMorpork is now known as AMorpork |
13:17:12 | EXetoC | thanks |
13:22:41 | shevy | the forum is written in nimrod? and shall we call nimrod nimrod or nim? |
13:25:09 | shevy | oh 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:52 | flaviu | shevy: 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:39 | flaviu | > A named tuple will be compatible to a tuple with different names. |
13:26:40 | flaviu | Woooo! |
13:28:54 | * | gour joined #nimrod |
13:29:21 | flaviu | dom96: 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:08 | shevy | I am glad that the forum has a big fat "Reply" button |
13:32:54 | flaviu | dom96: #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:58 | flaviu | shevy: Not big enough :P |
13:39:59 | flaviu | dom96: - #talk-info > .user-post > div > .reply {; + .reply { |
13:40:41 | shevy | you could make the buttons blink :> |
13:41:20 | flaviu | shevy: I mean the click-zone is much smaller than the apparent size. |
13:42:17 | EXetoC | where did my reply go? |
13:43:03 | shevy | flaviu I don't even register any zones with my eyes, I went straight for the kill... straight for the reply button |
13:43:09 | EXetoC | I'll add another one and see if it remains |
13:43:22 | shevy | the rest all else but the reply button I considered line noise at that instant :) |
13:44:02 | flaviu | I'm referring to this: http://i.imgur.com/0P0xJ2E.png |
13:44:08 | * | pafmaf__ joined #nimrod |
13:44:45 | EXetoC | shevy: and the logo area? it's too fuzzy for me |
13:45:19 | EXetoC | this is more suitable for a game UI perhaps :p |
13:46:30 | * | pafmaf quit (Ping timeout: 250 seconds) |
13:46:34 | shevy | EXetoC you mean that crown thing? |
13:47:10 | shevy | I also did not register it much; my eyes are actually focusing more on usability in a forum |
13:47:39 | shevy | let 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:50 | shevy | we don't even have a logo! |
13:48:02 | shevy | well, not on the ruby forum |
13:48:09 | flaviu | shevy: Well, that forum looks more like a mailing list archive |
13:48:19 | shevy | that is the ruby logo - totally unexciting http://sebastien.ferre.io/assets/img/ruby.png |
13:48:31 | shevy | flaviu kinda but you also can write on it without having a mailing account |
13:48:36 | flaviu | And it's the nicest mailing list forum I've seen :P |
13:48:51 | shevy | I never managed to handle the traffic from mails |
13:49:15 | shevy | so 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:22 | flaviu | shevy: Apparently people use filters that only let through stuff that they care about. I've never do it, I don't know. |
13:50:41 | flaviu | Does 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:15 | flaviu | SomeInteger is clearly more specific, but I don't think the compiler realizes. |
13:51:53 | EXetoC | I can see why people want to add pretty things, but I'm also all about functionality |
13:52:10 | dom96 | flaviu: can you give me a diff of the changes or give me line numbers so I know what to change? |
13:52:44 | EXetoC | I would perhaps add slight background variations to that ruby site though, that's all |
13:52:56 | EXetoC | oh, and lose the #fff :> |
13:53:53 | flaviu | dom96: Looks like line 206. |
13:56:00 | dom96 | flaviu: That adds a scrollbar... |
13:57:03 | dom96 | all you have to do is increase the margin |
13:57:08 | * | pafmaf__ quit (Quit: Verlassend) |
13:57:36 | flaviu | dom96: Looks like something overrides my width setting |
13:58:03 | EXetoC | just inspect the element |
13:59:13 | flaviu | dom96: actually, place it at 277. Looks like there are two identical selectors. |
13:59:53 | dom96 | flaviu: 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:09 | dom96 | flaviu: fixed |
14:45:56 | flaviu | Interesting. There isn't typedesc == |
14:48:08 | EXetoC | you want more specific checks than 'is' allows? |
14:49:05 | * | milosn quit (Ping timeout: 264 seconds) |
14:49:28 | EXetoC | assert(int8 != int8|int16) ? |
14:50:26 | flaviu | EXetoC: I didn't know about is, but I found another solution: when compiles(myType(val)) |
14:51:13 | * | q66 joined #nimrod |
14:53:15 | flaviu | `proc get*[T](self: YamlObj): T`; "cannot infer the return type of the proc", but it clearly returns T |
14:55:20 | flaviu | Looks like I need to pass T as a typedesc |
15:03:09 | EXetoC | rather than what? you mean pass something explicitly? |
15:08:16 | flaviu | It 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:30 | EXetoC | seems like a reasonable assumption |
15:14:04 | * | bitcrusher quit (Ping timeout: 255 seconds) |
15:16:58 | * | willwillson joined #nimrod |
15:17:08 | EXetoC | it doesn't seem to have been reported |
15:36:03 | EXetoC | flaviu: no it has. is your build more than 7 days old |
15:36:29 | flaviu | I think so, let me test check |
15:36:39 | flaviu | Yep |
15:37:09 | EXetoC | it might work if you upgrade https://github.com/Araq/Nimrod/issues/1687 |
15:39:08 | flaviu | Ok, but I've decided I like how T: typedesc looks better :P |
15:43:11 | EXetoC | there are people who want to replace the other way with that IIRC |
15:44:16 | flaviu | Well, 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:43 | EXetoC | it could work with inferrence, but I don't know of a type class that matches any type |
15:46:17 | EXetoC | for when you want to make the parameter an instance of said type, rather than being a typedesc |
15:49:26 | EXetoC | who was working on syntactic sugar for sum types? |
15:50:04 | * | darkf quit (Quit: Leaving) |
15:50:07 | flaviu | EXetoC: https://gist.github.com/flaviut/53b7f1928c944c010605 ? |
15:50:22 | flaviu | It 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:23 | EXetoC | assert, array, len, add etc are highlighted in nimrod.vim. I think it adds too much noise |
16:13:30 | dom96 | What are you guys coding? |
16:13:42 | EXetoC | msgpack |
16:13:43 | * | gokr joined #nimrod |
16:14:08 | flaviu | dom96: Yaml parser wrapper! |
16:14:15 | dom96 | cool |
16:15:03 | dom96 | gokr: 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:39 | Varriount | Ugh... 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:10 | dts|pokeball | whats the difference between inc(x) and succ(x)? they seem to both just increment x |
17:45:28 | flaviu | dts|pokeball: They do exactly the same thing, yes. |
17:46:02 | Araq_ | succ(x) --> x+1 |
17:46:08 | Araq_ | inc(x) --> x++ |
17:46:16 | Araq_ | not at all the same |
17:46:17 | dts|pokeball | ah |
17:46:30 | flaviu | Sorry, I misremembered then. |
17:46:52 | dts|pokeball | so succ(x, n) is x+n and inc(x, n) is while n--: x++? |
17:47:11 | dom96 | Araq_: Can we migrate to the new server fully? |
17:47:13 | Araq_ | x -= n; yes |
17:47:14 | dom96 | Think the forum is ready? |
17:47:33 | Araq_ | dom96 the question is: does flaviu think that? :P |
17:47:50 | dom96 | He still hasn't hacked it :P |
17:48:00 | dom96 | I still need to get nimbuild running on the new server. |
17:48:12 | flaviu | dom96: Do you have mailing implemented? |
17:48:24 | dom96 | flaviu: no |
17:48:41 | flaviu | Ok. I'm just asking because I'm curious, it shouldn't be a blocker. |
17:49:03 | Araq_ | dom96: does it use some new awesome hashing and not MD5 anymore? |
17:49:07 | dom96 | no |
17:49:20 | Araq_ | aww |
17:50:52 | flaviu | dom96: "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:45 | dom96 | flaviu: Yeah, and it wouldn't compile for me. |
17:52:01 | flaviu | On windows, but nimforum runs on linux. |
17:52:19 | dom96 | And I was too busy fixing silly style issues so I had no time to test it on Linux :P |
17:52:44 | Araq_ | huh? |
17:52:50 | Araq_ | but it runs on Linux right now |
17:52:59 | Araq_ | we have no windows server |
17:53:27 | dom96 | Araq_: what? |
17:53:32 | flaviu | dom96: Have you ever worked with pre-made CSS? |
17:53:44 | flaviu | You should if you haven't, you'll learn a lot. |
17:54:12 | dom96 | flaviu: Excuse me? |
17:54:46 | flaviu | Like bootstrap or something |
17:55:00 | EXetoC | I think foundation is better |
17:55:14 | flaviu | EXetoC: The idea is that the css is written by someone else |
17:55:23 | flaviu | so you pick up idioms and such. |
17:57:01 | Araq_ | dom96: I thought it already runs on our VPS ... |
17:57:11 | dom96 | Araq_: It does. You seem confused. |
17:57:24 | Araq_ | I am |
17:57:26 | dom96 | Araq_: bcrypt wouldn't compile so I didn't include it. |
17:57:37 | dom96 | The forum is currently running without the bcrypt patch. |
17:57:51 | Araq_ | because bcrypt doesn't compile on our VPS? |
17:58:00 | dom96 | Araq_: no, because it doesn't compile on my machine. |
17:58:17 | * | Araq_ is thinking ... |
17:58:20 | dom96 | flaviu: You do realise that I haven't written most of that CSS right? |
17:58:24 | * | Araq_ fails ... |
17:58:39 | Araq_ | so ... do you cross compile from Win to Lin? |
17:58:47 | dom96 | Araq_: No. |
17:58:58 | Araq_ | so you compile it again on the VPS? |
17:59:07 | dom96 | What's so hard to understand? |
17:59:29 | dom96 | If it compiles on Linux I can apply it. |
17:59:33 | dom96 | But then I won't be able to test it locally. |
17:59:43 | Araq_ | well you say bcrypt doesn't compile on your win machine, but who cares |
17:59:45 | flaviu | dom96: Ok, who do I go lecture then? :P |
17:59:50 | dom96 | I didn't check if it compiles on Linux yet because there were other things to do. |
17:59:57 | dom96 | flaviu: filwit |
18:00:18 | Araq_ | ok, so apply flaviu's patch please |
18:01:04 | Araq_ | our forum shall be more secure than my online banking |
18:01:18 | * | perturbation joined #nimrod |
18:02:40 | * | irrequietus joined #nimrod |
18:03:00 | flaviu | Araq_: That says more about online banking than the forum. |
18:03:41 | Araq_ | flaviu: that was my intention |
18:03:59 | Araq_ | wow |
18:04:05 | Araq_ | the search now rules! |
18:05:18 | dts|pokeball | is type similar to c's typedef? |
18:05:55 | flaviu | dts|pokeball: I suppose, although you can't have anonymous types in Nim. (excluding tuples) |
18:06:11 | dts|pokeball | ok |
18:08:13 | dts|pokeball | reading 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:30 | dts|pokeball | so it could be [1, 2, 3, 4, 5, 42]? |
18:08:43 | flaviu | dts|pokeball: No, 0..5 means that you can index it with that range |
18:10:45 | flaviu | ie, myArray: array[0..5, int]; myArray[0] # valid; myArray[4] # valid; myArray[6] # invalid |
18:11:19 | flaviu | dts|pokeball: The tutorial is a bit hard to understand, see if http://learnxinyminutes.com/docs/nim/ is better |
18:11:42 | ekarlso- | anon types ? ^^ |
18:12:01 | dts|pokeball | well i had tried using x in y before, but i didnt know nim at all, so let me try again |
18:12:12 | dom96 | flaviu: Your SQL script is failing with 'NOT NULL constraint failed: person.name' |
18:12:24 | flaviu | ekarlso-: I don't know much C, but I hear you can do stuff like `struct {int a; float b} doStuff()...` |
18:13:34 | dts|pokeball | in 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:02 | flaviu | dts|pokeball: It's a decision that you have to make, it depends on every part of your program. |
18:15:18 | flaviu | dom96: I'm not sure why - I'm not even touching person.name. |
18:16:58 | dom96 | using 'update' seems like a better idea |
18:17:21 | flaviu | Nope, I've got it. |
18:17:24 | dom96 | :\ |
18:17:27 | dom96 | unrecognized token: "'" |
18:17:49 | flaviu | Replace Into person(password) values (?) where person.rowid = ?; |
18:18:03 | dom96 | why not just update? |
18:18:20 | flaviu | Because I can't be bothered to check the syntax for update :P |
18:18:29 | dom96 | well I already got it. |
18:18:44 | dom96 | only 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:13 | flaviu | dom96: try hash(getMD5(salt & getMD5(password)), gensalt(8)) |
18:23:39 | dom96 | it's in the conversion program |
18:24:37 | dom96 | flaviu: https://gist.github.com/dom96/4a4fd5901d8195231b58 |
18:24:42 | dom96 | Must be one of the characters in the salt. |
18:24:52 | dom96 | So yeah. |
18:24:57 | dom96 | bcrypt definitely not ready |
18:25:28 | dom96 | or I dunno, maybe it has restrictions on the salt it can take |
18:26:03 | * | brson joined #nimrod |
18:26:50 | flaviu | dom96: Yes, that's it. |
18:27:27 | flaviu | dom96: Just do hash(row[1], genSalt(8)) then |
18:28:00 | dts|pokeball | i went through the x in y tutorial. is there one explaining iterators? |
18:28:06 | dom96 | flaviu: I will need to save two salts then. |
18:28:16 | flaviu | dom96: No, you don't. |
18:28:29 | flaviu | bcrypt handles saving the salt |
18:28:35 | dom96 | huh? how? |
18:29:00 | flaviu | $2a$08$5S2cZpm.ElP7qddUzKVKAuaJ92Oyef/JCwq5HGCg9cjPtP1TR8qIq |
18:29:12 | flaviu | $2a is the type of hash |
18:29:19 | flaviu | $08 means something else |
18:29:35 | dom96 | ok |
18:29:37 | flaviu | $5S2cZpm.ElP7qddUzKVKAuaJ92Oyef I think is the salt |
18:30:18 | flaviu | wait, no. |
18:30:56 | flaviu | $2a$ is the algorithm, 08 is the hash difficulty, the rest is base64 |
18:32:11 | * | starless joined #nimrod |
18:32:44 | flaviu | but it looks like that bcrypt library doesn't expose that stuff. |
18:32:54 | * | milosn joined #nimrod |
18:32:57 | dom96 | flaviu: I guess I don't need to pass genSalt(8) in makePassword then right? |
18:33:52 | dom96 | well, my login doesn't work. |
18:33:52 | EXetoC | I assume you have db backups |
18:34:04 | dom96 | EXetoC: No, I decided to wing it!!!! |
18:34:17 | EXetoC | living on the edge |
18:34:55 | flaviu | dom96: I don't have an answer, can you wait ~20 min until I come up with something? |
18:35:03 | dom96 | oh wait |
18:35:06 | dom96 | I forgot to git pull |
18:35:41 | flaviu | dom96: 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:28 | dom96 | Yeah... |
18:36:31 | dom96 | still doesn't work. |
18:37:00 | dom96 | ok, i'll wait. |
18:45:01 | dom96 | In any case, you said it would take me no time at all. |
18:45:11 | dom96 | Guess that proves you wrong :P |
18:45:49 | Araq_ | the quality of the average PR can be determined by this condition: |
18:46:16 | Araq_ | if author == "Jehan" or touchesAnyTest(): "good" else: "bad" |
18:47:02 | * | Matthias247 joined #nimrod |
18:50:48 | dts|pokeball | so 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:16 | EXetoC | what defines it? the compiler code |
18:51:59 | dts|pokeball | is like var x: int and then never using x? |
18:52:09 | dts|pokeball | /s/is/is it/ |
18:52:14 | flaviu | dts|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:31 | flaviu | s/,/./ |
18:52:46 | dts|pokeball | k. ty |
18:53:26 | EXetoC | how would you include both anyway? with complex heuristics perhaps |
18:54:17 | Araq_ | usually size optimizations are simply those optimizations that cannot negatively increase code size |
18:54:24 | flaviu | dom96: https://gist.github.com/591aa85871b715b9bd62 |
18:54:34 | Araq_ | and there are few if any specific optimizations done to reduce the size |
18:54:37 | flaviu | I've made wrapper for another package. |
18:55:14 | Araq_ | so "size" really means "speed, but keep code size in mind" |
18:55:44 | Araq_ | and not "size, even if it runs 10x slower then" |
18:57:43 | Araq_ | dts|pokeball: yes, it defaults to --app:console |
18:57:59 | dts|pokeball | k. ty |
19:00:40 | dom96 | flaviu: Should I be using the password as the salt then? |
19:00:51 | dom96 | or using your new package or both? |
19:00:55 | flaviu | dom96: Nope, it's a different package |
19:01:07 | flaviu | I'm trying to figure out how to mix in a makefile in the nim build process. |
19:01:22 | Araq_ | don't. |
19:01:32 | Araq_ | just tell it which files to .compile |
19:01:47 | Araq_ | it performs its own caching anyway |
19:02:12 | dts|pokeball | nim has a build tool? |
19:02:40 | Araq_ | the compiler knows what to recompile on its own |
19:02:59 | Araq_ | Nim isn't stuck in the 60ies. |
19:05:01 | flaviu | Does someone have an example of the compile pragma in use? |
19:05:30 | Araq_ | {.compile: "foo/bar/baz.c".} |
19:05:51 | Araq_ | what more could an example show? |
19:06:12 | flaviu | How to avoid linker errors. |
19:06:56 | EXetoC | Araq_: any disadvantages of a user-defined object variant interface? |
19:07:25 | Araq_ | no idea what that means |
19:07:51 | EXetoC | the current mechanism is defined by the language |
19:07:53 | dom96 | flaviu: Don't bother. |
19:07:56 | dom96 | flaviu: I got it working. |
19:08:05 | flaviu | Ok, good. |
19:08:39 | flaviu | Although I still want to post this wrapper |
19:08:57 | Araq_ | flaviu: instead of figuring out what the makefile does, just run it and log its commands |
19:09:04 | Araq_ | in particular the linker invocation |
19:09:30 | Araq_ | and then transform that to some {.passL: "".} command |
19:10:29 | * | Araq_ is a fan of runtime tracing |
19:12:26 | dom96 | Please check if you can login. |
19:13:57 | EXetoC | Araq_: having Variant[T...] rather than a language construct that is |
19:14:39 | dom96 | Araq_: ^ |
19:15:18 | flaviu | It doesn't seem to do anything unusual with linking. |
19:15:36 | flaviu | "multiple definition of gensalt_88060", and so on |
19:16:33 | flaviu | Well, it seems I can't have the C file be the same name as the nim file |
19:16:51 | Araq_ | you can if you use a Nimble package, I think |
19:18:15 | Araq_ | dom96: http://178.62.143.63/t/654 |
19:18:31 | dom96 | great |
19:18:47 | dom96 | Wanna switch to it now? |
19:19:06 | Araq_ | nah, I like the older design better. |
19:19:11 | Araq_ | JUST KIDDING! |
19:19:23 | Araq_ | sure go ahead but please |
19:19:33 | Araq_ | be here tomorrow when all the issues come up |
19:19:41 | dom96 | lol |
19:20:03 | EXetoC | is this going to work eventually: "echo\n param1,\n param2"? |
19:20:09 | dom96 | I'll be around but not sure how much time i'll have. |
19:20:18 | dom96 | But it should be fine. |
19:20:38 | dom96 | ok. point nim-lang.org to 178.62.143.63 |
19:20:40 | Araq_ | you could make your script swithc over to the old version if it crashes too often |
19:20:42 | dom96 | nimrod-lang.org too |
19:21:00 | dom96 | No I couldn't. |
19:21:04 | dom96 | The databases are different. |
19:21:25 | dom96 | Specifically the hashing algorithm :P |
19:21:41 | Araq_ | well you could use a backup DB then, you know |
19:21:49 | Araq_ | EXetoC: no and no. |
19:22:03 | dom96 | yeah, or I could take a well deserved breajk. |
19:22:05 | dom96 | *break |
19:22:39 | Araq_ | ok let's see |
19:23:01 | Araq_ | hrm I don't remember anything |
19:24:14 | EXetoC | ok 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:44 | Araq_ | dom96: done for nim-lang.org |
19:27:18 | dom96 | bah somebody just posted in the old forum lol |
19:28:25 | Araq_ | doesn't matter, it's just some guy who doesn't read anything :P |
19:28:36 | Araq_ | "cannot take addr from parameter" |
19:29:10 | EXetoC | from? of? |
19:29:27 | Araq_ | 'of', whatever |
19:29:34 | EXetoC | c(:)|< |
19:30:00 | dom96 | Araq_: Make sure to change the subdomain's IPs too |
19:31:23 | * | yglukhov joined #nimrod |
19:31:40 | Araq_ | ah yeah |
19:32:13 | Araq_ | just found the right tab ... gosh this web UI is so bad |
19:35:40 | wan | is `./koch web` supposed to work at the moment? I get a `lib/pure/algorithm.nim(186, 15) Error: internal error: genAddr: 4` |
19:35:47 | dom96 | Araq_: 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:02 | Araq_ | wan: worked when I last run it but that's a while ago |
19:37:25 | Araq_ | and people don't consider a working test suite to be important |
19:37:54 | Araq_ | 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:34 | flaviu | Araq_: What? From what I can tell, most people like a giant test suite. |
19:39:00 | Araq_ | yes but nobody likes to maintain such a thing |
19:39:43 | dts|pokeball | ok, 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:17 | flaviu | dom96: Irclogs don't work |
19:40:31 | dom96 | flaviu: indeed |
19:40:36 | flaviu | (06:27:48 AM) flaviu: dts|pokeball: Still around? |
19:40:36 | flaviu | (06:28:33 AM) flaviu: dts|pokeball: closure iterators are confusing, I don't completely understand how to use them either |
19:40:36 | flaviu | (06:29:09 AM) flaviu: but try something like `proc getNext(source: var string): interator(): char = return interator(): char = ...` |
19:40:36 | dom96 | flaviu: And they won't for a while. |
19:40:56 | flaviu | I have to dig up my own logs to post now :( |
19:41:05 | willwillson | or: dts|pokeball: for the closure iterator, try assigning it to a variable and then calling it: let getNextInstance = getNext ; getNextInstance("string") |
19:41:20 | Araq_ | flaviu: you cannot capture a 'var', so bad example |
19:41:52 | dts|pokeball | thanks guys |
19:42:23 | flaviu | Araq_: That should be directed at dts|pokeball |
19:42:55 | Araq_ | dom96: what do you mean? they won't for a while? I depend on them |
19:43:31 | wan | wow, there's a bit of reOutputsDiffer and reNimCrash when I run `koch tests` |
19:43:32 | dom96 | Araq_: I mean. There won't for a while. |
19:43:43 | dom96 | Araq_: Until I get the time to get them working. |
19:44:19 | Araq_ | how can you take a break when they don't work? |
19:45:19 | dom96 | I was going to get them working. But then you told me to get bcrypt working. |
19:45:56 | flaviu | dom96: bcrypt is now easy https://github.com/flaviut/easy-bcrypt ! |
19:46:03 | Araq_ | do not listen to Araq when he obviously has not the full picture of what's left to do! |
19:46:11 | dom96 | indeed. |
19:47:14 | Araq_ | when you get them to work tonight, I'll send you a package of German beer. |
19:48:13 | dom96 | Seriously? |
19:48:17 | dom96 | What kind? |
19:48:32 | Araq_ | seriously. |
19:48:42 | Araq_ | whatever kind you want |
19:49:28 | dom96 | I would honestly prefer some German food. |
19:49:45 | willwillson | some kraut and wurst? |
19:49:56 | Araq_ | so if somebody of you guys ever wondered what your paypal donations are used for, now you know :P |
19:50:59 | Araq_ | dom96: what kind of german food? |
19:51:15 | dom96 | Araq_: I dunno. Anything that's good. |
19:51:28 | dom96 | I'm a poor student who needs sustenance. |
19:51:32 | Araq_ | I'll send you some beer then. |
19:51:49 | wan | that should tell us a lot about german food |
19:51:54 | Araq_ | we say "7 beers can replace a full meal" |
19:52:32 | dom96 | You can send me a few beers. |
19:52:39 | dom96 | But send some actual food too :P |
19:52:51 | Araq_ | beer and crisps then :P |
19:53:31 | dom96 | meh |
19:53:42 | dom96 | no irclogs for you |
19:54:09 | * | nickles joined #nimrod |
19:54:31 | dom96 | Araq_: please delete this http://178.62.143.63/t/654 |
19:55:16 | dts|pokeball | ok, 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:37 | willwillson | use &, not + |
19:55:47 | dts|pokeball | oops |
19:55:49 | willwillson | for string concatenation |
19:55:49 | dts|pokeball | ty |
19:58:01 | flaviu | Guys, I'm not sure the forum has a rss feed: http://i.imgur.com/oM9coXH.png :P |
20:01:21 | willwillson | wasn't one supposed to be for new posts and the other for new threads? |
20:01:31 | dom96 | ^^ |
20:01:31 | * | gokr_ quit (Read error: Connection reset by peer) |
20:01:40 | * | gokr_ joined #nimrod |
20:01:53 | flaviu | Looks the same to me. |
20:03:07 | willwillson | I think the one above activity should point to http://forum.nimrod-lang.org/postActivity.xml though |
20:03:10 | dom96 | oops |
20:03:14 | dom96 | Yeah. |
20:03:39 | * | nickles quit (Quit: Page closed) |
20:05:10 | EXetoC | you don't notice things like that? :p |
20:05:38 | dom96 | I don't use atom feeds. |
20:06:20 | EXetoC | nm |
20:06:33 | dom96 | fixed |
20:11:07 | dts|pokeball | thanks everyone for putting up with me! i have a compiled version now |
20:15:01 | gokr1 | I think someone asked me something, but can |
20:15:04 | gokr1 | 't find it. |
20:15:16 | flaviu | dts|pokeball: What are you working on? |
20:15:32 | dts|pokeball | flaviu, a compiler |
20:15:51 | willwillson | it was "are you using sailfishOS?" and the question was from dom96 ;D |
20:16:40 | willwillson | gokr1: ^ |
20:18:10 | * | pafmaf_ joined #nimrod |
20:20:44 | * | brson quit (Quit: leaving) |
20:21:24 | gokr1 | Ah! Yeah, my phone is a Jolla |
20:21:43 | gokr1 | dom96: Yes, I got a Jolla phone. |
20:21:49 | dom96 | gokr1: cool |
20:22:00 | gokr1 | Its pretty slick, I like it a lot. |
20:22:23 | dom96 | Does it have any interesting features? |
20:22:45 | gokr1 | Had 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:02 | gokr1 | Yeah, its a "true Linux", all the UI is Qt based, really slick looking, very gesture based. |
20:23:24 | gokr1 | Also has an Android runtime, so it runs all the Android apps I have thrown at it. |
20:23:50 | gokr1 | But generally you want the Sailfish apps, they behave much smoother. |
20:24:03 | gokr1 | It would be fun to make a Sailfish app in Nim some day. |
20:24:12 | gokr1 | Ok, gotta put girls in bed |
20:24:58 | willwillson | maybe if that guy comes through with his QML wrapper you can :D |
20:27:26 | dom96 | Would be cool if Nim became Sailfish's official programming language :P |
20:29:47 | Araq_ | dom96: not gonna happen. we have a default value for 'result' :P |
20:30:51 | flaviu | It's not going to happen because they have to reason to switch from the much more mature and popular C++ |
20:32:31 | Araq_ | flaviu: it's good that you keep reminding us about the obvious |
20:34:11 | flaviu | Too many happy thoughts result in more time in this channel, and fewer bugs fixed, I can't have that :P |
20:36:07 | Araq_ | you don't need to push me, even when there is no visible activity i'm working on bugfixes |
20:37:27 | flaviu | Araq_: 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:20 | yeye123 | how about using nim for hard real time, industrial automation, plc stuff and so on, possible? |
21:03:35 | Araq_ | in principle yes. In practice the whole industry is busy to stay ignorant about anything that might improve productivity. |
21:04:45 | yeye123 | well, in a very conservative business I guess thats "normal" but I think there is some progress |
21:06:05 | Araq_ | most people I know cannot even imagine what's it like to have non broken tooling |
21:06:06 | yeye123 | even though its a toy theres a lot of people tinkering with raspberry pi and the like who could be introduced to nim |
21:07:34 | yeye123 | how is access to a bit in a byte in nim for example? |
21:08:34 | EXetoC | use good old bit-shifting/and'ing |
21:09:21 | Araq_ | yeye123: Nim runs on the RPI |
21:10:31 | Araq_ | dom96: I know it's annoying but |
21:10:39 | Araq_ | the top level navigation doesn't work yet |
21:11:04 | Araq_ | thought it was too obvious to mention but now it's live ... :P |
21:11:20 | dom96 | Argh. I forgot. |
21:11:41 | yeye123 | so 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:44 | Araq_ | you have to mask like in C |
21:14:25 | dom96 | fixed |
21:19:49 | * | milosn quit (Ping timeout: 245 seconds) |
21:20:21 | yeye123 | Araq_: 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:04 | yeye123 | I'm enjoying Nim so far, thats for sure |
21:22:09 | Araq_ | if you want the non rambling Araq you have to use the forum |
21:23:09 | yeye123 | no problem here Araq_ :) |
21:25:48 | * | yeye123 quit (Quit: Leaving) |
21:33:28 | Araq_ | hrm restarts of the browser are now as annoying as OS restarts |
21:34:52 | EXetoC | why? |
21:35:30 | Araq_ | 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:15 | gokr1 | dom96: Thanks a million for the new forum. Lovely with search. |
21:41:40 | dom96 | gokr1: No problem :) |
21:44:34 | willwillson | dom96: 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:07 | dom96 | willwillson: yep. Missed those. |
21:48:52 | * | ARCADIVS joined #nimrod |
21:49:37 | dom96 | willwillson: Now it should work. |
21:50:17 | willwillson | yep, working now, thanks |
21:51:53 | * | dts|pokeball quit (Ping timeout: 260 seconds) |
21:52:22 | flaviu | Araq_: You can tell firefox to save your tabs from last time |
21:55:05 | Araq_ | flaviu: I know |
21:56:15 | * | gour joined #nimrod |
22:04:09 | flaviu | does 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:36 | Araq_ | that's an everyone that excludes me and apart from that we have 3546 posts in the old format |
22:05:52 | Araq_ | does your wrapped markdown even support Nim syntax highlighting? |
22:06:07 | flaviu | No, I use pygments for that. |
22:07:51 | Araq_ | so to render an ordinary thread we have to invoke python a couple of times? |
22:08:21 | flaviu | It can be daemonized to reduce overhead |
22:08:29 | flaviu | but I see your point. |
22:10:51 | flaviu | You could also make the browser deal with it, there's a javascript highlight engine that supports Nim |
22:12:34 | Araq_ | 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:05 | dom96 | !ping |
22:29:05 | NimBot | pong |
22:29:05 | NimBot | pong |
22:29:31 | dom96 | "This address uses a network port which is normally used for purposes other than Web browsing." You kidding me firefox? |
22:30:08 | flaviu | !seen !ping |
22:30:08 | NimBot | I have not seen !ping |
22:30:15 | * | NimBot quit (Read error: Connection reset by peer) |
22:30:28 | * | NimBot joined #nimrod |
22:32:07 | flaviu | \nick !ping |
22:33:19 | * | NimBot quit (Read error: Connection reset by peer) |
22:35:27 | flaviu | dom96: So close.. Why does nickserv have to stop me? |
22:42:33 | Araq_ | !lag |
22:42:33 | NimBot | 147ms between me and the server. |
22:42:40 | Araq_ | now we're talking |
22:43:17 | EXetoC | !lag |
22:43:17 | NimBot | 147ms 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:04 | dom96 | Araq_: http://irclogs.nim-lang.org |
23:17:28 | Araq_ | nice |
23:17:50 | Araq_ | can I also see the logs for days in the future? |
23:18:23 | EXetoC | not yet |
23:18:56 | Araq_ | we could predict when I rant about Unix and OS9 |
23:19:32 | dom96 | Araq_: Sure, that'll be 5 billion euro. |
23:19:47 | fowl | i'll do it for half that |
23:22:07 | * | brson joined #nimrod |
23:22:18 | * | ARCADIVS quit (Quit: ARCADIVS) |
23:22:20 | Araq_ | dom96: everything is asynchronous |
23:22:35 | Araq_ | our future is the past for some alien |
23:22:43 | * | Matthias247 quit (Read error: Connection reset by peer) |
23:22:54 | dom96 | Guys, I think Araq_ is high. |
23:24:17 | EXetoC | well there's the theory about infinite variations and such |
23:24:53 | fowl | then theres the theory of varying infiniteness |
23:25:49 | EXetoC | wot |
23:34:55 | Araq_ | reactormonk: rename the channel now |
23:37:00 | dom96 | I thought I was going to do that? |
23:37:14 | Araq_ | oh ok |
23:37:17 | dom96 | Did you forget already? |
23:37:22 | Araq_ | yes |
23:38:13 | dom96 | We'll do it after release like I said. |
23:38:23 | * | pafmaf joined #nimrod |
23:39:46 | Araq_ | well the forum already says it's "Nim" |
23:40:07 | Araq_ | we should do everything at once for the improved user experience |
23:43:31 | dom96 | alright |
23:44:16 | * | flaviu quit (Remote host closed the connection) |
23:52:53 | * | pafmaf quit (Quit: Verlassend) |
23:55:40 | Araq_ | hrm ... using enum for hostOS and hostCPU is flawed |
23:56:15 | Araq_ | when I do: when hostOS == "newos" then this is simply false if the compiler doesn't know about newos |
23:56:45 | Araq_ | but if it's an enum people need to use the latest compiler just so that check is false |
23:57:35 | Araq_ | good that I already implemented this "improvement" ... :-/ |
23:59:15 | reactormonk | Araq_, you gotta enable the forward yourself, I don't have the permissions |
23:59:36 | Araq_ | reactormonk: it's ok, dom96 will do it. |