00:52:16 | * | SchalaZeal quit (Quit: Konversation terminated!) |
01:31:21 | * | Trixar_za is now known as Trix[a]r_za |
05:02:24 | * | SchalaZeal joined #nimrod |
05:02:37 | SchalaZeal | Dom, you on? |
05:50:41 | * | SchalaZeal quit () |
07:13:58 | * | zahary_ quit (Read error: Connection reset by peer) |
07:14:34 | * | zahary_ joined #nimrod |
09:31:50 | * | SchalaZeal joined #nimrod |
09:35:25 | * | Trix[a]r_za is now known as Trixar_za |
09:40:03 | SchalaZeal | Think tomorrow I'll bring Nimrod's PCRE wrapper up to date |
09:40:33 | Trixar_za | That should probably please dom96 considering Aporia uses it |
09:40:34 | Trixar_za | :P |
09:40:41 | SchalaZeal | looks like it's dependent on an old version |
09:41:19 | SchalaZeal | anyway, forked, I'm off to bed |
09:41:56 | * | SchalaZeal quit (Quit: Konversation terminated!) |
09:51:40 | zahary_ | hi Araq. I was not at home yesterday. sorry for not responding |
09:56:38 | * | zahary_ is now known as zahary |
10:03:39 | * | zahary left #nimrod (#nimrod) |
10:05:25 | * | zahary_ joined #nimrod |
10:11:32 | fowl | i had to comment out a deprecated function in 8.14 but its already fixed in head |
10:25:24 | * | Trixar_za is now known as Trix[a]r_za |
12:09:36 | * | Araq_ joined #nimrod |
12:10:46 | Araq_ | Amrykid: somebody actually tries to use your 'events' module :P |
12:10:55 | Araq_ | please answer the guy on the forum |
12:10:57 | Amrykid | :o where |
12:11:04 | Amrykid | oh |
12:11:43 | Araq_ | that's what you get for asking me to include in the stdlib :P |
12:11:54 | Araq_ | oh and please rewrite it to use closures instead :-) |
12:12:18 | Araq_ | that will be a good test for closures |
12:12:59 | Araq_ | see you later, bye |
12:13:01 | * | Araq_ quit (Client Quit) |
12:13:16 | Amrykid | uh? |
12:20:19 | Amrykid | why does code-block not work on the forum? |
12:21:52 | Amrykid | nvm, the alternate code block syntax works |
12:55:31 | * | ccssnet quit (Read error: Connection reset by peer) |
14:59:42 | * | zahary_ quit () |
15:09:45 | * | zahary joined #nimrod |
16:33:12 | * | SchalaZeal joined #nimrod |
16:37:53 | Araq | ping zahary |
16:38:03 | Araq | I don't have much time but: why does |
16:38:26 | Araq | proc += [T: TOrdinal](x: var T, y: T) |
16:38:31 | Araq | does not work? |
16:38:57 | Araq | it works if I remove the 'distinct's in TOrdinal ... |
16:48:13 | dom96 | hello |
16:48:22 | Araq | hi dom96 |
16:51:28 | dom96 | what's up? |
16:51:43 | dom96 | btw the Pi ran out of memory. |
16:52:06 | dom96 | That's why the bootstrap just failed D: |
16:52:26 | dom96 | Is there anything I can do to tell nimrod to use less memory? |
16:58:55 | Araq | how much ram do you have? |
17:01:23 | dom96 | ~200MB |
17:02:11 | Araq | that should be enough by far ... bootstrapping takes 140MB on my machine ... |
17:02:32 | dom96 | Yes, well gcc takes up memory too |
17:02:38 | dom96 | so does nimbuild |
17:02:40 | dom96 | and other apps |
17:02:45 | Araq | I see :-) |
17:02:59 | Araq | what about swapping? |
17:03:05 | dom96 | In fact gcc takes up a lot of space |
17:03:09 | dom96 | er, memory |
17:04:50 | Araq | well you can do --genScript --compileOnly |
17:04:59 | Araq | and then execute GCC with the script |
17:05:13 | Araq | then the Nimrod has exited and freed all the RAM |
17:05:40 | dom96 | That could work. |
17:05:47 | dom96 | Would require adjustments to the builder's code... |
17:06:43 | Araq | well I dunno, maybe you shouldn't run nimbuild on your Pi ... |
17:07:17 | Araq | I will feel sad when I broke your SD by pushing too often ... |
17:07:58 | Araq | we could also make Nimrod run the GC before executing GCC btw |
17:08:08 | Araq | I dunno how much that would gain though |
17:08:34 | Araq | it'd need to free some global data structures explicitely before that |
17:08:44 | Araq | as the GC has not much to do otherwise |
17:09:31 | dom96 | I can just run it every so often. |
17:09:45 | dom96 | That will lessen the pain on the SD card |
17:11:47 | dom96 | But yeah, i'm trying not to use a swap file so that my SD card doesn't fry |
17:14:37 | SchalaZeal | Hey Dom, how would I go about making an AUR package for babel? Just install the resulting binary and leave it at that, or... is there a system directory I can install .babel files to? |
17:15:47 | dom96 | SchalaZeal: Please don't make a package yet. |
17:15:54 | dom96 | Wait until I release 0.1 |
17:16:01 | dom96 | Babel needs a large overhaul before it's ready |
17:17:52 | SchalaZeal | ah |
17:18:05 | Araq | SchalaZeal: about the cross compiling |
17:18:10 | SchalaZeal | hm? |
17:18:12 | Araq | if targetOS == osWindows: exe = addFileExt(exe, "exe") # is in the code |
17:18:25 | SchalaZeal | which file? |
17:18:27 | Araq | I suppose it should be 'if hostOS == osWindows'? |
17:18:33 | Araq | extccomp.nim |
17:18:52 | SchalaZeal | ah yeah |
17:18:58 | SchalaZeal | that'll work |
17:19:16 | Araq | I dunno ... |
17:19:25 | Araq | what if it does '--genScript'? |
17:19:34 | Araq | then it should add the .exe for targetOS ... |
17:19:45 | SchalaZeal | yeah |
17:19:46 | Araq | I suppose that's the proper fix then: |
17:20:16 | dom96 | 31 issues. |
17:20:23 | Araq | if (genScript and targetOS == osWindows) or (hostOs == osWindows) ... |
17:20:25 | dom96 | Why do I always have a job whenever the issues pile up? |
17:20:31 | SchalaZeal | It's just having .exe applied to an ELF formatted executable just confuses Linux because it doesn't exist |
17:20:38 | Araq | sure |
17:20:53 | Araq | dom96: it's not like you can fix the issues :P |
17:21:20 | SchalaZeal | I actually want to update the PCRE wrapper |
17:21:40 | dom96 | Araq: That's cruel. |
17:21:40 | Araq | SchalaZeal: btw the code used to simply not add an .exe but that's *wrong* for windows |
17:21:48 | dom96 | Araq: Now I'm sad :( |
17:21:58 | Araq | dom96: sorry, but it's true; most bugs there are hard :P |
17:22:40 | dom96 | Araq: Fine. In that case I will just spend my time working and earn money instead of attempting to help with Nimrod :P |
17:22:58 | Araq | hey don't put words into my mouth |
17:23:16 | Araq | alright prove me wrong :P |
17:23:23 | Araq | and fix one |
17:23:50 | dom96 | Hey, I already fixed a couple. |
17:23:57 | dom96 | But apparently the way I fixed them is wrong... |
17:24:07 | dom96 | And now I don't feel like refactoring my fix... |
17:27:10 | Araq | SchalaZeal: if you work on PCRE please provide a 'noDLL' option for windows |
17:27:22 | Araq | the dependency is annoying |
17:32:14 | Araq | brb |
17:36:21 | SchalaZeal | if I work on the wrapper or the actual thing? |
17:36:32 | SchalaZeal | oh wait |
17:36:36 | SchalaZeal | nevermind |
17:37:02 | Araq | and check your PCRE version supports the JIT :-) |
17:37:19 | SchalaZeal | I'm always up to date. Compiled 8.31 yesterday |
17:37:29 | Araq | good |
17:38:04 | SchalaZeal | with as many features as possible enables -- 16-bit library, Unicode properties, JIT, etc |
17:38:24 | Araq | ugh |
17:38:30 | Araq | no 16-bit please |
17:38:40 | Araq | Nimrod doesn't support utf-16 anyway ... |
17:38:45 | dom96 | bbl |
17:39:02 | SchalaZeal | Well that's fine, it's a separate library |
17:39:18 | Araq | in fact utf-16 is kind of brain dead now that unicode contains more than 0xffff glyphs ... |
17:39:40 | SchalaZeal | Don't the Japanese need it though? |
17:39:57 | SchalaZeal | internationally speaking that is |
17:40:09 | Araq | er ... read a bit about unicode |
17:40:19 | Araq | utf-8 supports every glyph too |
17:40:31 | SchalaZeal | Alright. |
17:42:10 | SchalaZeal | As for a DLL-less dependency, I suppose I could do that but my only strategy of doing it would involve ugly code like the type Nimrod's posix wrapper has, explicitly importing from header files and then linking a static library |
17:43:14 | Araq | yeah well I merged all the .c files of PCRE once |
17:43:17 | Araq | and did: |
17:43:26 | Araq | {.compile: "pcre_all.c".} |
17:43:45 | Araq | no need for a static lib nor headers this way |
17:43:45 | SchalaZeal | ............I guess that'll work. |
17:44:12 | SchalaZeal | but the source would have to be redistributed I think. Not that that's a problem with its license. |
17:44:26 | Araq | yeah that's what I did |
17:44:33 | dom96 | back |
17:46:16 | SchalaZeal | I think it'd be wise to have Nimrod interact with CMake or autotools in that case though, because explicitly setting up configuration would be cumnersome. |
17:46:22 | SchalaZeal | cumbersome** |
17:46:36 | Araq | I only did it once |
17:46:47 | Araq | hardcoded the configuration I wanted it to have |
17:46:54 | Araq | it's not OS specific anyway |
17:47:16 | Araq | and even if it were, there is still the option to bind to the DLL |
17:47:17 | SchalaZeal | alright |
17:47:59 | Araq | a native regex implementation in nimrod would be sweet too ;-) |
17:48:11 | Araq | but lots of work and another uphill battle |
17:48:32 | SchalaZeal | My belief on static vs. DLL is a DLL preference because it's better to have a bunch of smaller dependencies depend on one module than several fat sized binaries hardcoding the same library |
17:49:21 | Araq | nah dynamic linking is stupid IMHO |
17:49:55 | SchalaZeal | Well on embedded software, yeah. |
17:50:10 | SchalaZeal | But.... I find it useful otherwise. |
17:50:25 | Araq | the OS could simply merge multiple definitions/pages in memory |
17:50:42 | Araq | and you don't get the dependency hell |
17:51:01 | SchalaZeal | that sounds taxing on memory though. |
17:51:27 | Araq | and the "only 1 place to fix" argument doesn't hold anyway; the bugfix could break compatibility |
17:51:48 | SchalaZeal | Well okay, there's a good point. |
17:52:03 | Araq | plus most clients of the library most likely don't use the code that is infected by the bug ... |
17:52:30 | Araq | many libs have lots of special functions but clients only use common stuff |
17:52:45 | Araq | which tends to not have many bugs left |
17:52:59 | Araq | often bugfixes fix some weird corner cases |
17:53:36 | Araq | hurray, the corner case is fixed for every client; except that it didn't rely on this case in the first place ... |
17:54:09 | SchalaZeal | heh |
17:55:23 | Araq | and as I said, the OS should deal with "wasted" memory so that static linking only takes up more harddisc space |
17:55:59 | Araq | which is only a concern on embedded systems |
17:57:31 | SchalaZeal | Well I'll add a PCRE wrapper to my Nimrod fork later. Will make sure to allow a define of noDLL |
17:57:48 | Araq | excellent |
17:58:10 | Araq | it will be compatible with the current pcre wrapper, right? |
17:58:17 | Araq | so that re.nim continues to work? |
17:58:19 | SchalaZeal | I'll try |
17:58:27 | SchalaZeal | hopefully so |
17:59:07 | SchalaZeal | if defined(noDLL): import from header files else: use the DLL imports |
17:59:40 | Araq | there is an easier way, checkout the {.pragma.} pragma :-) |
18:00:16 | SchalaZeal | turns a procedure into a pragma if I remember, right? |
18:00:29 | Araq | when defined(noDLL): |
18:01:13 | Araq | {.pragma prceImport.} |
18:01:15 | Araq | else: |
18:01:32 | Araq | {.pragma prceImport: dynlib: "pcre.dll", importc.} |
18:01:32 | SchalaZeal | hmm... |
18:01:44 | Araq | proc x() {.pcreImport.} |
18:01:54 | Araq | it declares a user defined pragma |
18:02:25 | SchalaZeal | and you just designate the proc as the definition? |
18:02:31 | Araq | yep |
18:02:46 | SchalaZeal | Alright, sounds doable |
18:02:53 | Araq | checkout opengl.nim for a full example |
18:05:39 | SchalaZeal | hmm... importc without arguments imports a symbol with the same identifier as its Nimrod counterpart? |
18:06:05 | Araq | yes |
18:06:24 | SchalaZeal | looks like I have to adjust my own wrappers, hehe |
18:08:12 | SchalaZeal | anyway, time to nap, see you in a few hours |
18:08:16 | * | SchalaZeal quit () |
18:20:53 | dom96 | Araq: hrm, maybe I could use tinyc on the RPI? |
18:21:13 | Araq | you can try but I doubt it still works |
18:21:19 | Araq | tiny C is not maintained anymore |
18:39:57 | dom96 | right. I might try it. |
18:40:05 | dom96 | For now I need to go to the train station |
18:40:06 | dom96 | bbl |
18:40:11 | Araq | bye |
19:24:09 | dom96 | back |
19:24:19 | dom96 | The train station was closed -.- |
19:25:12 | Araq | nimbot doesn't notice my pushes :-/ |
19:25:28 | Araq | do I need to trigger it manually again? |
19:27:02 | Araq | dom96? |
19:27:24 | dom96 | sec |
19:27:48 | dom96 | weird |
19:28:05 | dom96 | Let me reboot and check whether maybe the github process crashed |
19:28:39 | Araq | well I need to go |
19:28:58 | dom96 | too bad |
19:32:13 | Araq | see you later |
19:32:34 | dom96 | bye |
19:41:31 | dom96 | Araq: I'm not sure what happened. I'm assuming github is failing. |
20:04:56 | * | ccssnet joined #nimrod |
20:45:58 | * | SchalaZeal joined #nimrod |
20:47:00 | SchalaZeal | Well I tried the cross compiler again with the latest revision, but this time, this happened: http://pastebin.com/T6absJ1P |
20:49:38 | SchalaZeal | oh |
20:49:44 | SchalaZeal | odd... nevermind |
20:49:55 | SchalaZeal | gcc is the linker and not ld |
20:49:57 | SchalaZeal | hmm |
20:50:38 | SchalaZeal | well it works when the linker is gcc and *not* ld |
20:55:31 | dom96 | lol? |
20:55:55 | dom96 | Maybe there is a simple mistake somewhere in the code |
21:01:33 | SchalaZeal | Nah |
21:01:38 | SchalaZeal | it's a gcc thing |
21:02:19 | dom96 | ahh |
21:02:46 | SchalaZeal | I guess linkerexe is for compilers that have an inferior compiler |
21:02:51 | SchalaZeal | err |
21:02:56 | SchalaZeal | inferior linker* |
21:29:06 | Araq | SchalaZeal: if you invoke 'ld' you need to provide all the static libs etc. that GCC passes to ld for you |
21:29:18 | Araq | so it's better to let GCC do the linking step |
21:29:38 | Araq | and yeah 'linkerexe' is for inferior compilers/linkers |
21:31:59 | SchalaZeal | ah |
21:43:34 | Araq | so dom96, should I pull the github trigger? |
21:46:10 | SchalaZeal | how do I merge Araq/Nimrod with my fork? |
21:46:21 | SchalaZeal | err into |
21:46:48 | Araq | dunno I keep forgetting the git commands that I never use ;-) |
21:47:02 | SchalaZeal | lol |
22:07:12 | * | Trix[a]r_za is now known as Trixar_za |
22:09:14 | dom96 | Araq: Yes, go ahead. |
22:09:55 | Trixar_za | Btw dom96 |
22:10:18 | Trixar_za | I created an organization page, but it's not allowing me to upload |
22:10:25 | Trixar_za | It's annoying :/ |
22:10:51 | Araq | yay at least the trigger worked |
22:10:57 | Araq | stupid github |
22:10:59 | Trixar_za | error: SSL certificate problem, verify that the CA cert is OK. Details: |
22:11:00 | Trixar_za | error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://github.com/SliTaz/Tazpanel.git/info/refs |
22:11:00 | Trixar_za | fatal: HTTP request failed |
22:11:05 | * | Trixar_za agrees with Araq |
22:11:34 | dom96 | Trixar_za: Ask in #github> |
22:11:36 | dom96 | *? |
22:11:50 | Trixar_za | They have a channel here? |
22:12:34 | dom96 | yep |
22:16:36 | Araq | yay github works again ... |
22:18:00 | dom96 | :) |
22:20:51 | SchalaZeal | looks like it's cd nimrod-git && makepkg -fi again... |
22:21:49 | Araq | SchalaZeal: forking is bad if you never make pull requests |
22:23:13 | SchalaZeal | Git seems pretty complicated for me so... forking and pull requests....I know zilch about |
22:25:32 | Araq | git and github are so common that everything is a simple google away |
22:26:10 | SchalaZeal | hmm |
22:27:35 | SchalaZeal | ah that's what a pull request is |
22:27:50 | SchalaZeal | had it confused with fetch/merge upstream |
22:32:43 | SchalaZeal | huh... the fork count didn't go down when I got cold feet the first 2 times |
22:32:53 | SchalaZeal | still at 17 |
23:05:29 | * | Trixar_za is now known as Trix[a]r_za |
23:06:34 | Araq | SchalaZeal: you're on windows, right? |
23:06:48 | SchalaZeal | currently? no |
23:06:49 | Araq | oh never mind, you cross compile to windows ... |
23:06:55 | SchalaZeal | but I do dual boot |
23:07:10 | Araq | anyway can you have a look at http://forum.nimrod-code.org/t/55 |
23:07:15 | SchalaZeal | I have Nimrod on my Win32 partition as well |
23:07:34 | Araq | and see if you can figure out this weird stuff |
23:09:12 | SchalaZeal | http://pastebin.com/nFnjBVSn |
23:09:30 | Araq | argh |
23:12:30 | Araq | should now compile under windows |
23:12:37 | Araq | I have to sleep, good night |
23:38:05 | SchalaZeal | oh wow.... hey Araq, remember how I told you I tried getting banned from Warcraft? |
23:38:14 | SchalaZeal | err wait nevermind |