00:35:29 | EXetoC | "proc f[T: int](x: var seq[T])" is apparently not the same as "proc f(x: var seq[int])" |
00:35:59 | EXetoC | maybe because of some seq magic |
00:36:24 | Araq | the former is a generic, the latter isn't |
00:38:11 | EXetoC | yes but shouldn't the first one be identical to the second one when instantiated? |
00:39:41 | EXetoC | "new(result) f(result.someField)" doesn't work if the type parameter isn't there |
00:42:46 | Araq | well generics are checked when you instantiate them mostly |
00:43:07 | Araq | there is a prepass that captures symbols but apart from that they are quite macro-like |
00:43:24 | Araq | new(result) is invalid for seqs |
00:43:53 | Araq | not sure if that's what you mean |
00:44:31 | EXetoC | it's the field that is a sequence |
00:44:38 | EXetoC | I don't have a test case yet |
00:50:00 | * | q66 quit (Remote host closed the connection) |
00:54:36 | EXetoC | so I'm only referring to the signature, which should be identical when instantiated |
00:56:31 | * | DAddYE_ quit (Remote host closed the connection) |
00:56:32 | EXetoC | and I guess I'll report that along with all the other stuff some day :> |
01:07:06 | EXetoC | nevermind |
01:07:41 | EXetoC | coding late at night is a bad idea. later |
01:07:47 | * | EXetoC quit (Quit: WeeChat 0.4.1) |
01:29:19 | dom96 | gradha: You should try to get Aporia to look as nice as this on Mac OS X: http://projects.gnome.org/gedit/images/gedit5.png |
01:51:39 | OrionPK | that looks nice? :P |
01:53:15 | OrionPK | btw, i tested that OpenSSL change on OSX as well, worked fine |
01:53:40 | OrionPK | dont have a linux machine set up |
01:54:44 | dom96 | cool. |
01:54:52 | dom96 | I'm on Windows right now fixing babel |
01:54:57 | OrionPK | cool |
01:55:01 | dom96 | I should probably sleep. |
01:55:03 | dom96 | heh |
01:55:18 | OrionPK | no rest for the weary |
01:56:59 | dom96 | indeed |
02:06:13 | * | Trixar_za is now known as Trix[a]r_za |
02:13:52 | dom96 | Araq: Did you fix the winansi crap that happens on Windows? Because I am still getting weird errors. |
02:16:05 | dom96 | although I am using 0.9.2... |
02:16:30 | dom96 | Anyway, time for sleep. |
02:16:43 | OrionPK | night |
02:17:19 | NimBot | nimrod-code/babel master c5d8bca Dominik Picheta [+0 ±2 -0]: Fixes some Windows issues. |
04:55:08 | * | DAddYE joined #nimrod |
05:00:35 | * | OrionPK quit (Read error: Connection reset by peer) |
07:39:26 | gradha | dom96: before making it look pretty it first needs to compile under macosx |
09:27:14 | * | EXetoC joined #nimrod |
09:28:41 | Araq | dom96: I fixed them for 0.9.2 :-/ |
09:43:06 | * | DAddYE quit (Remote host closed the connection) |
09:58:54 | * | q66 joined #nimrod |
10:01:21 | EXetoC | q66: duude |
10:01:44 | q66 | EXetoC: deewd |
10:18:04 | dom96 | Araq: What happens is really weird, and I can't find docs on the specific error return codes for RemoveDirectory. |
10:20:09 | dom96 | gradha: The nimrod compiler still crashes huh? |
10:22:44 | gradha | it's a mistery |
10:24:54 | dom96 | Looks like we have to call in the Hardy Boys. |
14:26:08 | Araq | ping zahary_ |
14:36:09 | * | Trix[a]r_za is now known as Trixar_za |
14:49:48 | * | OrionPK joined #nimrod |
15:03:20 | * | Endy joined #nimrod |
16:30:56 | dom96 | Araq: I'm starting to think that it would be a good idea to split the gtk wrapper out of the stdlib, I don't want Aporia to always depend on the latest nimrod compiler because the wrapper needs an update. |
16:49:26 | * | Trixar_za is now known as Trix[a]r_za |
16:49:59 | * | DAddYE joined #nimrod |
17:18:25 | * | shafire joined #nimrod |
17:18:32 | shafire | hi |
17:20:08 | EXetoC | morning, or something |
17:20:10 | dom96 | hello shafire |
17:20:32 | shafire | 19:20 here |
17:20:36 | shafire | in Germany |
17:21:21 | EXetoC | I wasn't too far off then :> |
17:21:39 | shafire | Where are you all from? |
17:21:53 | shafire | Nimrod is more an American or Europe project? |
17:22:10 | shafire | European* |
17:22:16 | dom96 | Definitely more European. |
17:22:34 | dom96 | I'm from the UK. |
17:22:58 | shafire | http://d24w6bsrhbeh9d.cloudfront.net/photo/axNNE72_700b.jpg :D |
17:23:21 | EXetoC | lols |
17:23:29 | dom96 | hah |
17:24:53 | shafire | EXetoC: where you from? |
17:25:08 | EXetoC | there's a UK dish called faggot? awesome |
17:25:11 | EXetoC | shafire: IKEA land |
17:25:26 | dom96 | there is? |
17:25:53 | shafire | Is IKEA popular in Sweden? |
17:25:56 | * | DAddYE quit (Remote host closed the connection) |
17:26:06 | EXetoC | I guess |
17:26:37 | EXetoC | dom96: apparently http://en.wikipedia.org/wiki/Faggot_%28food%29 |
17:27:12 | dom96 | hah, brilliant. Never heard of that dish. |
17:28:15 | shafire | What are you doing for your living? |
17:28:50 | shafire | you go to school, I think, ... dom96 (because of 96?) |
17:29:19 | EXetoC | or maybe he's either 96 or older |
17:29:19 | dom96 | yeah, but that is not actually my birth year. But yeah, i'm a student. |
17:29:26 | EXetoC | he looks younger though |
17:29:34 | shafire | ;-) |
17:29:42 | shafire | I am a student too |
17:31:00 | dom96 | university student I presume? |
17:31:17 | EXetoC | dom96: do you like that round headed buffoon? |
17:31:43 | dom96 | EXetoC: who? |
17:31:50 | EXetoC | Karl Pilkington |
17:32:15 | shafire | dom96: yes, software engineering at moment |
17:32:37 | dom96 | EXetoC: I don't watch much TV :P |
17:32:46 | shafire | After that, I want to go to New Zealnd to improve my english |
17:33:10 | dom96 | cool. Why New Zealand? |
17:33:43 | shafire | Because it's easy to get there :P |
17:33:57 | dom96 | UK is closer :P |
17:34:06 | shafire | Too close :-) |
17:34:23 | dom96 | ahh, so you want to get away. |
17:34:24 | EXetoC | go to Wales |
17:34:24 | shafire | I want something far away |
17:34:33 | EXetoC | plenty of sun there *giggle* |
17:36:07 | shafire | I could be NZ or AU or both at the end. I don't know yet |
17:36:20 | shafire | Hope, I will find an it job there |
17:36:32 | shafire | I don't want to work at farms :D |
17:37:44 | dom96 | why not? You could work at a farm and do some cool stuff in Nimrod in your free time :P |
17:38:10 | shafire | I could yeah |
17:39:18 | shafire | Do you know the language Parasail from Tucker? |
17:39:59 | shafire | There so many languages at moment, I don't know, which to learn :-( |
17:40:09 | shafire | out* |
17:40:51 | Araq | I do know Parasail |
17:41:03 | Araq | it's overly restrictive, can't believe it will work out |
17:41:18 | Araq | it's much more researchy than Nimrod or Rust |
17:42:14 | dom96 | Araq: I think the problems with Aporia on Windows are due to NIM_BOOL not being compatible with GTK's bool type. |
17:42:33 | Araq | dom96: that's quite likely |
17:42:48 | Araq | and indeed would explain the bug |
17:42:51 | dom96 | Araq: I'm not sure why it would work in release mode though. |
17:43:11 | Araq | simple: the higher bytes end up being 0 by chance or something like that |
17:43:41 | dom96 | i see. |
17:44:40 | dom96 | In any case, I changed the definition of gboolean to a 'distinct cint' and it works now. But now i'm wondering if that's the best way to do it? It breaks some code, and I have to rely on some converters. |
17:45:29 | Araq | gboolean was bool? o.O |
17:46:01 | dom96 | yep |
17:46:54 | dom96 | https://github.com/Araq/Nimrod/blob/master/lib/wrappers/gtk/glib2.nim#L30 |
17:49:10 | Araq | just make it cint please |
17:49:27 | Araq | it breaks code but it's always been a bug |
17:49:34 | Araq | so there is not much we can do about it |
17:49:43 | dom96 | just 'cint' no 'distinct'? |
17:49:50 | Araq | though your distinct+converter idea might work |
17:50:13 | Araq | it's up to you, both ways are acceptable |
17:50:55 | dom96 | ok, a thing I noticed was that converters will not automatically convert types when they are used in a tuple constructor. |
17:51:00 | dom96 | (From what I could tell) |
17:51:05 | dom96 | I guess that's a bug? |
17:52:01 | Araq | converter toBool(x: int): bool = bool(x) |
17:52:05 | Araq | (1, 3) |
17:52:15 | Araq | # should be (true, true) ? |
17:52:26 | Araq | how can that work? |
17:53:21 | dom96 | Ahh, I get it. |
17:53:55 | dom96 | well it's easy enough to cast to bool anyway |
17:55:19 | dom96 | interesting thing is that the distinct cint can be casted to a bool. with the '.bool' syntax. |
17:55:46 | dom96 | is this just something that is allowed? |
17:56:53 | Araq | type conversions of the form x.typ are allowed but I guess still not documented |
17:57:05 | Araq | however I heavily use them, so they'll stay |
17:57:06 | dom96 | I'm slightly worried that my converters will cause problems. |
17:57:33 | Araq | the dinstinct cint + converter should work |
17:57:43 | EXetoC | proc del... proc delete :> |
17:57:48 | Araq | and won't cause my trouble I think |
17:57:54 | dom96 | I had to add a converter from a gbool to a bool and vice versa |
17:58:03 | dom96 | is that still fine? |
17:59:33 | Araq | hmm I think so |
18:03:09 | dom96 | btw out of curiosity, why is NIM_BOOL an unsigned char, why not just 'int'? |
18:04:02 | Araq | to save space |
18:04:16 | dom96 | ahh, that's what I thought. |
18:04:33 | dom96 | JStoker: ^ |
18:06:37 | Araq | dom96: please extract the GTK2 stuff into a new repository |
18:06:52 | Araq | and make it a babel package of course |
18:07:31 | dom96 | sure |
18:09:05 | dom96 | I'll keep it in there for now, i will split it out of there once I release babel. |
18:11:01 | * | DAddYE joined #nimrod |
18:19:32 | * | shafire quit (Quit: Page closed) |
18:25:07 | NimBot | nimrod-code/Aporia master 761c234 Dominik Picheta [+0 ±2 -0]: Replaced incorrect usage of bool where gboolean was supposed to be used. This fixes problems on Windows. |
18:35:20 | reactormonk | do we have a csv parser? |
18:35:35 | dom96 | yes |
18:47:10 | reactormonk | no xpath in the xml? |
18:47:35 | Araq | nope |
18:54:55 | reactormonk | Araq, so how do I cross the DOM? |
18:56:38 | * | DAddYE quit (Remote host closed the connection) |
18:57:14 | NimBot | Araq/Nimrod master 8015f6f Dominik Picheta [+0 ±2 -0]: Changed the type of gboolean to a distinct cint. |
18:57:14 | NimBot | Araq/Nimrod master 3c96f11 Dominik Picheta [+0 ±2 -0]: Fixed terminal module so that it doesn't raise an EOS exception when stdout is redirected. |
18:57:54 | Araq | reactormonk: use your brain and traverse the xml tree |
19:06:00 | reactormonk | ## gets the tag name of `n`. `n` has to be an ``xnElement`` node. < what's a tag? |
19:07:01 | dom96 | Araq: Bootstrapping fails on Windows. I vaguely remember a similar error: json.nim(122, 14) Error: undeclared identifier: 'open' |
19:07:07 | dom96 | I can't figure out what's wrong though |
19:07:27 | dom96 | reactormonk: <tag> |
19:19:49 | reactormonk | dom96, ah, kk. |
19:27:25 | reactormonk | Araq, huh. breaks on declarations... |
19:27:27 | reactormonk | <?xml version="1.0" encoding="UTF-8"?> |
19:27:30 | reactormonk | <!DOCTYPE us-patent-grant SYSTEM "us-patent-grant-v42-2006-08-23.dtd" [ ]> |
19:28:25 | Araq | dom96: some old path? |
19:29:24 | Araq | make sure you have no lexbase in compiler/ |
19:34:23 | * | Endy quit (Ping timeout: 240 seconds) |
19:34:27 | Araq | reactormonk: do you parse xml or html? |
19:34:45 | Araq | I don't think !DOCTYPE is xml ... |
19:35:38 | Araq | but yeah fix it |
19:35:47 | Araq | line 117 of xmlparser |
19:35:59 | Araq | just skip the crap |
19:37:09 | reactormonk | Araq, let's see |
19:39:02 | dom96 | Araq: ahh, yeah I had a lexbase.nim in my compiler/ dir. |
19:41:14 | reactormonk | Araq, the HTML parser is slow as fuck |
19:41:26 | reactormonk | and btw, the ruby xml parser accepts that document |
19:41:36 | reactormonk | Araq, and !DOCTYPE is xml. |
19:43:23 | Araq | slow as fuck? o.O |
19:50:18 | reactormonk | Araq, doesn't parse the XML in 2 minutes |
19:51:36 | Araq | well I can see lots of room for improvements |
19:52:16 | Araq | but it also depends on how you use it |
19:57:47 | * | DAddYE joined #nimrod |
19:58:04 | * | XAMPP quit (Read error: Connection reset by peer) |
19:59:19 | Araq | reactormonk: give me that file and I'll make it run fast |
20:00:39 | reactormonk | Araq, http://storage.googleapis.com/patents/grant_full_text/2008/ipg080520.zip |
20:01:47 | Araq | pastebin your code please |
20:03:00 | reactormonk | Araq, http://sprunge.us/IIPZ |
20:05:57 | * | EXetoC quit (Quit: WeeChat 0.4.1) |
20:16:03 | Araq | seriously? you parse an 296MB XML document into an XML tree? |
20:17:28 | Araq | how much RAM do you have? |
20:18:03 | reactormonk | 48GB |
20:18:39 | Araq | use parsexml for these stunts ... |
20:18:54 | Araq | that doesn't build a tree in the first place then ... |
20:20:50 | reactormonk | SAX-parser? |
20:22:20 | Araq | sax-like |
20:22:37 | reactormonk | good enough for me |
20:22:45 | reactormonk | where's code that uses it? |
20:26:15 | Araq | http://nimrod-code.org/parsexml.html |
20:28:02 | Araq | hmm front end inlining would really help for these things |
20:43:16 | * | EXetoC joined #nimrod |
20:43:21 | EXetoC | mmh, egg |
20:52:10 | Araq | hu? <frame> is deprecated in HTML 5? |
20:52:23 | Araq | removed even? |
21:09:53 | * | EXetoC quit (Ping timeout: 240 seconds) |
21:13:57 | * | EXetoC joined #nimrod |
21:16:11 | * | q66 quit (Remote host closed the connection) |
22:09:49 | * | shafire joined #nimrod |
22:09:52 | shafire | hi |
22:10:15 | Araq | wb |
22:10:31 | shafire | Did someone something with CGI? Or better, is there any example? |
22:11:01 | shafire | In nimrod of course |
22:11:09 | dom96 | If you don't mind using SCGI you can use jester to develop web apps. |
22:11:46 | shafire | Or I copy from jester :p, thanks |
22:11:58 | shafire | Your project? |
22:12:14 | dom96 | yeah |
22:12:26 | dom96 | or you could add cgi support to jester :P |
22:12:37 | dom96 | https://github.com/dom96/jester |
22:13:19 | shafire | cgi was my first step, fcgi my second... |
22:13:30 | dom96 | Note though that the current latest branch is 'sendfix', I don't want to push anything to the master branch because i'm afraid I will mess up the Framework Benchmarks which are happening on Tuesday. |
22:14:19 | shafire | ok |
22:14:37 | Araq | there is a cgi module, shafire, but cgi is out |
22:14:53 | dom96 | We don't currently have an fcgi module, it would be nice to have one. |
22:15:03 | dom96 | You could create one and submit it to babel. |
22:15:10 | dom96 | or maybe Araq wants it in the stdlib, dunno. |
22:15:30 | Araq | fcgi is quite some work |
22:15:38 | shafire | Would you rewrite fcgi in nimrod? |
22:15:46 | Araq | way more useful would be a websockets module... |
22:15:59 | shafire | Or write a wrapper for the fcgi in c? |
22:16:13 | Araq | I'd rewrite it in nimrod of course |
22:16:57 | shafire | Is there also already a pdf lib in nimrod? |
22:18:11 | Araq | no ... |
22:18:32 | Araq | do you want to generate PDF or read PDF? |
22:18:42 | shafire | first one |
22:18:59 | shafire | Ok, much stuff to do, but I am used to do it because of Ada :D |
22:19:14 | Araq | I started to translate some small php lib to nimrod that can generate pdf |
22:19:31 | Araq | but it's still much work |
22:19:42 | shafire | There is IText in Java and there was a cool ruby pdf lib |
22:19:58 | shafire | ah, prawn: http://prawn.majesticseacreature.com/ |
22:21:39 | reactormonk | Araq, how I see why it freaks out - the xml is invalid :-/ |
22:22:30 | Araq | no worries, reactormonk; most xml is just as broken as html |
22:24:13 | gradha | shafire: maybe you are interested in something like http://podofo.sourceforge.net/about.html ? |
22:26:58 | shafire | mh, not that easy, gradha |
22:27:26 | shafire | I don't like the HelloWorld example |
22:31:57 | shafire | Araq: websockets to do stuff like that?: http://www.youtube.com/v/ahIJUkbq1JA |
22:32:49 | Araq | shafire: dunno the easiest example is a chat |
22:33:02 | Araq | which requires "push" features from the server |
22:33:14 | Araq | which http doesn't support |
22:33:25 | shafire | ok |
22:37:32 | OrionPK | how about webRTC? |
22:38:48 | gradha | the things you request remind me of the 10-year-nimrod-experience-required job postings I read this morning |
22:39:53 | shafire | where? |
22:39:58 | shafire | My requests? |
22:40:34 | gradha | don't mind me, I'm slow, for me the web did stop at html 4.0 |
22:41:21 | EXetoC | 10 years lolwut |
23:08:27 | * | shafire quit (Quit: Page closed) |
23:16:00 | EXetoC | dom96: shouldn't jester rather than users have to import strtabs for example? |
23:16:29 | dom96 | EXetoC: yeah, that was (still is?) a bug with the compiler. |
23:16:46 | EXetoC | ok |
23:17:04 | dom96 | for now you're going to have to live with importing it yourself |
23:17:36 | Araq | I still haven't merged the branch that fixes it |
23:18:26 | EXetoC | it's going to slow me down though, but it's fine |
23:18:46 | Araq | of course |
23:18:59 | Araq | "import strtabs" can easily take hours to write |
23:19:49 | EXetoC | yes indeed |
23:31:45 | * | OrionPK quit (Read error: Connection reset by peer) |
23:34:21 | * | DAddYE quit (Remote host closed the connection) |
23:34:30 | * | DAddYE joined #nimrod |
23:58:52 | * | DAddYE quit (Remote host closed the connection) |