<< 22-06-2013 >>

00:35:29EXetoC"proc f[T: int](x: var seq[T])" is apparently not the same as "proc f(x: var seq[int])"
00:35:59EXetoCmaybe because of some seq magic
00:36:24Araqthe former is a generic, the latter isn't
00:38:11EXetoCyes but shouldn't the first one be identical to the second one when instantiated?
00:39:41EXetoC"new(result) f(result.someField)" doesn't work if the type parameter isn't there
00:42:46Araqwell generics are checked when you instantiate them mostly
00:43:07Araqthere is a prepass that captures symbols but apart from that they are quite macro-like
00:43:24Araqnew(result) is invalid for seqs
00:43:53Araqnot sure if that's what you mean
00:44:31EXetoCit's the field that is a sequence
00:44:38EXetoCI don't have a test case yet
00:50:00*q66 quit (Remote host closed the connection)
00:54:36EXetoCso 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:32EXetoCand I guess I'll report that along with all the other stuff some day :>
01:07:06EXetoCnevermind
01:07:41EXetoCcoding late at night is a bad idea. later
01:07:47*EXetoC quit (Quit: WeeChat 0.4.1)
01:29:19dom96gradha: 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:39OrionPKthat looks nice? :P
01:53:15OrionPKbtw, i tested that OpenSSL change on OSX as well, worked fine
01:53:40OrionPKdont have a linux machine set up
01:54:44dom96cool.
01:54:52dom96I'm on Windows right now fixing babel
01:54:57OrionPKcool
01:55:01dom96I should probably sleep.
01:55:03dom96heh
01:55:18OrionPKno rest for the weary
01:56:59dom96indeed
02:06:13*Trixar_za is now known as Trix[a]r_za
02:13:52dom96Araq: Did you fix the winansi crap that happens on Windows? Because I am still getting weird errors.
02:16:05dom96although I am using 0.9.2...
02:16:30dom96Anyway, time for sleep.
02:16:43OrionPKnight
02:17:19NimBotnimrod-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:26gradhadom96: before making it look pretty it first needs to compile under macosx
09:27:14*EXetoC joined #nimrod
09:28:41Araqdom96: 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:21EXetoCq66: duude
10:01:44q66EXetoC: deewd
10:18:04dom96Araq: What happens is really weird, and I can't find docs on the specific error return codes for RemoveDirectory.
10:20:09dom96gradha: The nimrod compiler still crashes huh?
10:22:44gradhait's a mistery
10:24:54dom96Looks like we have to call in the Hardy Boys.
14:26:08Araqping 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:56dom96Araq: 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:32shafirehi
17:20:08EXetoCmorning, or something
17:20:10dom96hello shafire
17:20:32shafire19:20 here
17:20:36shafirein Germany
17:21:21EXetoCI wasn't too far off then :>
17:21:39shafireWhere are you all from?
17:21:53shafireNimrod is more an American or Europe project?
17:22:10shafireEuropean*
17:22:16dom96Definitely more European.
17:22:34dom96I'm from the UK.
17:22:58shafirehttp://d24w6bsrhbeh9d.cloudfront.net/photo/axNNE72_700b.jpg :D
17:23:21EXetoClols
17:23:29dom96hah
17:24:53shafireEXetoC: where you from?
17:25:08EXetoCthere's a UK dish called faggot? awesome
17:25:11EXetoCshafire: IKEA land
17:25:26dom96there is?
17:25:53shafireIs IKEA popular in Sweden?
17:25:56*DAddYE quit (Remote host closed the connection)
17:26:06EXetoCI guess
17:26:37EXetoCdom96: apparently http://en.wikipedia.org/wiki/Faggot_%28food%29
17:27:12dom96hah, brilliant. Never heard of that dish.
17:28:15shafireWhat are you doing for your living?
17:28:50shafireyou go to school, I think, ... dom96 (because of 96?)
17:29:19EXetoCor maybe he's either 96 or older
17:29:19dom96yeah, but that is not actually my birth year. But yeah, i'm a student.
17:29:26EXetoChe looks younger though
17:29:34shafire;-)
17:29:42shafireI am a student too
17:31:00dom96university student I presume?
17:31:17EXetoCdom96: do you like that round headed buffoon?
17:31:43dom96EXetoC: who?
17:31:50EXetoCKarl Pilkington
17:32:15shafiredom96: yes, software engineering at moment
17:32:37dom96EXetoC: I don't watch much TV :P
17:32:46shafireAfter that, I want to go to New Zealnd to improve my english
17:33:10dom96cool. Why New Zealand?
17:33:43shafireBecause it's easy to get there :P
17:33:57dom96UK is closer :P
17:34:06shafireToo close :-)
17:34:23dom96ahh, so you want to get away.
17:34:24EXetoCgo to Wales
17:34:24shafireI want something far away
17:34:33EXetoCplenty of sun there *giggle*
17:36:07shafireI could be NZ or AU or both at the end. I don't know yet
17:36:20shafireHope, I will find an it job there
17:36:32shafireI don't want to work at farms :D
17:37:44dom96why not? You could work at a farm and do some cool stuff in Nimrod in your free time :P
17:38:10shafireI could yeah
17:39:18shafireDo you know the language Parasail from Tucker?
17:39:59shafireThere so many languages at moment, I don't know, which to learn :-(
17:40:09shafireout*
17:40:51AraqI do know Parasail
17:41:03Araqit's overly restrictive, can't believe it will work out
17:41:18Araqit's much more researchy than Nimrod or Rust
17:42:14dom96Araq: I think the problems with Aporia on Windows are due to NIM_BOOL not being compatible with GTK's bool type.
17:42:33Araqdom96: that's quite likely
17:42:48Araqand indeed would explain the bug
17:42:51dom96Araq: I'm not sure why it would work in release mode though.
17:43:11Araqsimple: the higher bytes end up being 0 by chance or something like that
17:43:41dom96i see.
17:44:40dom96In 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:29Araqgboolean was bool? o.O
17:46:01dom96yep
17:46:54dom96https://github.com/Araq/Nimrod/blob/master/lib/wrappers/gtk/glib2.nim#L30
17:49:10Araqjust make it cint please
17:49:27Araqit breaks code but it's always been a bug
17:49:34Araqso there is not much we can do about it
17:49:43dom96just 'cint' no 'distinct'?
17:49:50Araqthough your distinct+converter idea might work
17:50:13Araqit's up to you, both ways are acceptable
17:50:55dom96ok, a thing I noticed was that converters will not automatically convert types when they are used in a tuple constructor.
17:51:00dom96(From what I could tell)
17:51:05dom96I guess that's a bug?
17:52:01Araqconverter toBool(x: int): bool = bool(x)
17:52:05Araq(1, 3)
17:52:15Araq# should be (true, true) ?
17:52:26Araqhow can that work?
17:53:21dom96Ahh, I get it.
17:53:55dom96well it's easy enough to cast to bool anyway
17:55:19dom96interesting thing is that the distinct cint can be casted to a bool. with the '.bool' syntax.
17:55:46dom96is this just something that is allowed?
17:56:53Araqtype conversions of the form x.typ are allowed but I guess still not documented
17:57:05Araqhowever I heavily use them, so they'll stay
17:57:06dom96I'm slightly worried that my converters will cause problems.
17:57:33Araqthe dinstinct cint + converter should work
17:57:43EXetoCproc del... proc delete :>
17:57:48Araqand won't cause my trouble I think
17:57:54dom96I had to add a converter from a gbool to a bool and vice versa
17:58:03dom96is that still fine?
17:59:33Araqhmm I think so
18:03:09dom96btw out of curiosity, why is NIM_BOOL an unsigned char, why not just 'int'?
18:04:02Araqto save space
18:04:16dom96ahh, that's what I thought.
18:04:33dom96JStoker: ^
18:06:37Araqdom96: please extract the GTK2 stuff into a new repository
18:06:52Araqand make it a babel package of course
18:07:31dom96sure
18:09:05dom96I'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:07NimBotnimrod-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:20reactormonkdo we have a csv parser?
18:35:35dom96yes
18:47:10reactormonkno xpath in the xml?
18:47:35Araqnope
18:54:55reactormonkAraq, so how do I cross the DOM?
18:56:38*DAddYE quit (Remote host closed the connection)
18:57:14NimBotAraq/Nimrod master 8015f6f Dominik Picheta [+0 ±2 -0]: Changed the type of gboolean to a distinct cint.
18:57:14NimBotAraq/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:54Araqreactormonk: use your brain and traverse the xml tree
19:06:00reactormonk## gets the tag name of `n`. `n` has to be an ``xnElement`` node. < what's a tag?
19:07:01dom96Araq: Bootstrapping fails on Windows. I vaguely remember a similar error: json.nim(122, 14) Error: undeclared identifier: 'open'
19:07:07dom96I can't figure out what's wrong though
19:07:27dom96reactormonk: <tag>
19:19:49reactormonkdom96, ah, kk.
19:27:25reactormonkAraq, huh. breaks on declarations...
19:27:27reactormonk<?xml version="1.0" encoding="UTF-8"?>
19:27:30reactormonk<!DOCTYPE us-patent-grant SYSTEM "us-patent-grant-v42-2006-08-23.dtd" [ ]>
19:28:25Araqdom96: some old path?
19:29:24Araqmake sure you have no lexbase in compiler/
19:34:23*Endy quit (Ping timeout: 240 seconds)
19:34:27Araqreactormonk: do you parse xml or html?
19:34:45AraqI don't think !DOCTYPE is xml ...
19:35:38Araqbut yeah fix it
19:35:47Araqline 117 of xmlparser
19:35:59Araqjust skip the crap
19:37:09reactormonkAraq, let's see
19:39:02dom96Araq: ahh, yeah I had a lexbase.nim in my compiler/ dir.
19:41:14reactormonkAraq, the HTML parser is slow as fuck
19:41:26reactormonkand btw, the ruby xml parser accepts that document
19:41:36reactormonkAraq, and !DOCTYPE is xml.
19:43:23Araqslow as fuck? o.O
19:50:18reactormonkAraq, doesn't parse the XML in 2 minutes
19:51:36Araqwell I can see lots of room for improvements
19:52:16Araqbut 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:19Araqreactormonk: give me that file and I'll make it run fast
20:00:39reactormonkAraq, http://storage.googleapis.com/patents/grant_full_text/2008/ipg080520.zip
20:01:47Araqpastebin your code please
20:03:00reactormonkAraq, http://sprunge.us/IIPZ
20:05:57*EXetoC quit (Quit: WeeChat 0.4.1)
20:16:03Araqseriously? you parse an 296MB XML document into an XML tree?
20:17:28Araqhow much RAM do you have?
20:18:03reactormonk48GB
20:18:39Araquse parsexml for these stunts ...
20:18:54Araqthat doesn't build a tree in the first place then ...
20:20:50reactormonkSAX-parser?
20:22:20Araqsax-like
20:22:37reactormonkgood enough for me
20:22:45reactormonkwhere's code that uses it?
20:26:15Araqhttp://nimrod-code.org/parsexml.html
20:28:02Araqhmm front end inlining would really help for these things
20:43:16*EXetoC joined #nimrod
20:43:21EXetoCmmh, egg
20:52:10Araqhu? <frame> is deprecated in HTML 5?
20:52:23Araqremoved 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:52shafirehi
22:10:15Araqwb
22:10:31shafireDid someone something with CGI? Or better, is there any example?
22:11:01shafireIn nimrod of course
22:11:09dom96If you don't mind using SCGI you can use jester to develop web apps.
22:11:46shafireOr I copy from jester :p, thanks
22:11:58shafireYour project?
22:12:14dom96yeah
22:12:26dom96or you could add cgi support to jester :P
22:12:37dom96https://github.com/dom96/jester
22:13:19shafirecgi was my first step, fcgi my second...
22:13:30dom96Note 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:19shafireok
22:14:37Araqthere is a cgi module, shafire, but cgi is out
22:14:53dom96We don't currently have an fcgi module, it would be nice to have one.
22:15:03dom96You could create one and submit it to babel.
22:15:10dom96or maybe Araq wants it in the stdlib, dunno.
22:15:30Araqfcgi is quite some work
22:15:38shafireWould you rewrite fcgi in nimrod?
22:15:46Araqway more useful would be a websockets module...
22:15:59shafireOr write a wrapper for the fcgi in c?
22:16:13AraqI'd rewrite it in nimrod of course
22:16:57shafireIs there also already a pdf lib in nimrod?
22:18:11Araqno ...
22:18:32Araqdo you want to generate PDF or read PDF?
22:18:42shafirefirst one
22:18:59shafireOk, much stuff to do, but I am used to do it because of Ada :D
22:19:14AraqI started to translate some small php lib to nimrod that can generate pdf
22:19:31Araqbut it's still much work
22:19:42shafireThere is IText in Java and there was a cool ruby pdf lib
22:19:58shafireah, prawn: http://prawn.majesticseacreature.com/
22:21:39reactormonkAraq, how I see why it freaks out - the xml is invalid :-/
22:22:30Araqno worries, reactormonk; most xml is just as broken as html
22:24:13gradhashafire: maybe you are interested in something like http://podofo.sourceforge.net/about.html ?
22:26:58shafiremh, not that easy, gradha
22:27:26shafireI don't like the HelloWorld example
22:31:57shafireAraq: websockets to do stuff like that?: http://www.youtube.com/v/ahIJUkbq1JA
22:32:49Araqshafire: dunno the easiest example is a chat
22:33:02Araqwhich requires "push" features from the server
22:33:14Araqwhich http doesn't support
22:33:25shafireok
22:37:32OrionPKhow about webRTC?
22:38:48gradhathe things you request remind me of the 10-year-nimrod-experience-required job postings I read this morning
22:39:53shafirewhere?
22:39:58shafireMy requests?
22:40:34gradhadon't mind me, I'm slow, for me the web did stop at html 4.0
22:41:21EXetoC10 years lolwut
23:08:27*shafire quit (Quit: Page closed)
23:16:00EXetoCdom96: shouldn't jester rather than users have to import strtabs for example?
23:16:29dom96EXetoC: yeah, that was (still is?) a bug with the compiler.
23:16:46EXetoCok
23:17:04dom96for now you're going to have to live with importing it yourself
23:17:36AraqI still haven't merged the branch that fixes it
23:18:26EXetoCit's going to slow me down though, but it's fine
23:18:46Araqof course
23:18:59Araq"import strtabs" can easily take hours to write
23:19:49EXetoCyes 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)