09:41:57 | * | NimBot joined #nimrod |
10:26:06 | Araq | dom96: nimrod c --profiler:off -r --stackTrace:on -d:memProfiler temp1.nim |
10:26:08 | Araq | works for me |
10:26:24 | dom96 | oh, the profiler has to be off |
10:26:30 | dom96 | I see. |
10:26:30 | Araq | yep :P |
10:26:40 | Araq | a bit weird I know |
10:26:54 | Araq | but it's logical if you know what profiler:on does :P |
10:27:06 | Araq | maybe I shouldn't mention it in the docs as it's the default anyway |
10:27:14 | Araq | should be less confusing then |
10:40:43 | NimBot | Araq/Nimrod a198bb9 Araq [+0 ±1 -0]: attempt to fix a codegen bug |
10:41:19 | * | q66 joined #nimrod |
11:47:51 | * | ARCADIVS quit (Quit: WeeChat 0.3.8) |
12:11:11 | NimBot | nimrod-code/nimbuild 8c7d08a Dominik Picheta [+0 ±4 -0]: The builder can now generate an Inno Setup file on Windows. |
12:12:13 | Araq | hm the repo is 282 MB |
12:12:18 | Araq | this is really too big now |
12:13:08 | dom96 | Just need to get fibre optic internet, then it will be no problem. |
12:56:17 | * | xcombelle joined #nimrod |
13:42:46 | * | xcombelle quit (Remote host closed the connection) |
14:21:12 | * | zahary__ quit (Ping timeout: 256 seconds) |
14:59:59 | * | zahary_ joined #nimrod |
15:09:10 | NimBot | nimrod-code/nimbuild 2e12f5b Araq [+0 ±2 -0]: ported the builder to Windows |
15:09:10 | NimBot | nimrod-code/nimbuild bdf1777 Araq [+0 ±3 -0]: Merge branch 'master' of https://github.com/nimrod-code/nimbuild |
15:17:07 | * | Trix[a]r_za is now known as Trixar_za |
15:25:08 | NimBot | Araq/Nimrod 131c3f7 Araq [+0 ±2 -0]: version 0.9.2 |
15:25:08 | NimBot | Araq/Nimrod ce3afe8 Araq [+0 ±4 -0]: rebuilt C sources |
15:25:08 | NimBot | Araq/Nimrod e3335f4 Araq [+0 ±1 -0]: browsers.nim compiles again on Windows |
15:34:44 | NimBot | Araq/Nimrod 451a62f Araq [+0 ±1 -0]: osinfo_win compiles again |
15:34:44 | NimBot | Araq/Nimrod a26e12b Araq [+0 ±1 -0]: updated download.txt |
15:35:08 | NimBot | Araq/Nimrod 451a62f Araq [+0 ±1 -0]: osinfo_win compiles again |
15:35:08 | NimBot | Araq/Nimrod a26e12b Araq [+0 ±1 -0]: updated download.txt |
16:08:10 | * | xcombelle joined #nimrod |
16:17:37 | * | Endy joined #nimrod |
16:20:22 | reactormonk | oh, the arduino env has strings |
16:20:38 | * | xcombelle quit (Remote host closed the connection) |
16:58:32 | reactormonk | what's the difference between copyString and copyStringRC1? |
17:03:58 | Araq | copyStringRC1 is an optimized copyString |
17:07:23 | Araq | you don't want to know more than that |
17:13:23 | Araq | yay .. my XP is running out of disc space ... |
17:31:48 | dom96 | Well, that wasn't the most spectacular unveiling of the new version. But it's here ;) |
17:33:21 | * | gradha joined #nimrod |
17:33:37 | Araq | yay gradha |
17:33:47 | gradha | yay Araq |
17:33:50 | dom96 | right on time for the party! |
17:34:04 | dom96 | now then |
17:34:28 | dom96 | What should the title for the reddit/HN submission be? |
17:34:34 | dom96 | "Nimrod 0.9.2 released"? |
17:34:39 | Araq | sure why not |
17:34:51 | gradha | "with blackjack, and dongles" |
17:34:54 | Araq | let me check if I still have my HN account ... |
17:35:41 | dom96 | gradha: I dunno, some people may take offence to that... and start posting pictures on twitter. |
17:35:50 | dom96 | I don't want to lose my job :P |
17:36:20 | gradha | for a brief moment "pictures of Araq" crossed my mind, but of course those don't exist |
17:36:44 | gradha | dom96: isn't your job being a student? |
17:37:10 | dom96 | gradha: I have a part time job :P |
17:37:18 | Araq | gradha: I'm a collective |
17:37:43 | dom96 | ok, so "Nimrod 0.9.2 released" is it. |
17:37:50 | Araq | but rumors exist that you can find a picture of me on this site: |
17:38:02 | Araq | https://thestrangeloop.com/preconf |
17:39:18 | gradha | hah, I'm not going to fall for the "shock site" trick |
17:39:34 | dom96 | hrm, should I link to the news article or the main page? |
17:40:10 | dom96 | meh, news article makes more sense. |
17:40:16 | gradha | oh, so the release is actually true, with website and unicorns! |
17:40:47 | Araq | dom96: I agree |
17:41:01 | dom96 | http://www.reddit.com/r/programming/comments/1epf5s/nimrod_092_released/ |
17:41:04 | dom96 | Upvotes please |
17:41:17 | gradha | does reddit impose a limit on links? you could post several, one to the main site and another to the news/changelog? |
17:41:38 | dom96 | I don't think that's the best idea. |
17:41:46 | dom96 | People might think I am spamming :P |
17:42:10 | gradha | sorry, forgot reddit is not about content |
17:42:39 | dom96 | https://news.ycombinator.com/item?id=5738868 |
17:42:55 | dom96 | I feel like such a karma whore, but yeah. Upvotes please :P |
17:43:22 | Araq | gah I lost my reddit password. again. |
17:43:49 | gradha | I love the transition from the website to the documentation |
17:45:28 | dom96 | yeah, the documentation could use some unicorns. |
17:46:45 | dom96 | Already #8 on HN. |
17:51:18 | * | Vladar joined #nimrod |
17:51:29 | dom96 | hello Vladar, long time no see. |
17:54:46 | Araq | hi Vladar |
17:54:55 | Araq | glad you updated to 0.9.2 already |
17:55:01 | Vladar | Hi! Yeah, wasn't able to write for my projects for a while. |
17:55:33 | Araq | did 0.9.2 break anything actually? |
17:55:43 | Araq | or was it a simple recompile? |
17:58:03 | Vladar | Actually, there wasn't so much diff in terms of compatibility. Got rid of destructor-pragma and deleted some `;` that I left from c-code. |
17:58:42 | Araq | alright |
17:59:01 | Araq | yeah I should have fixed ';' before releasing 0.9.2 |
17:59:12 | Araq | but there is only so much you can do in 2 days ... |
17:59:38 | * | [1]Endy joined #nimrod |
18:01:30 | dom96 | I guess there aren't many HN'ers here huh? D: |
18:01:44 | * | Endy quit (Ping timeout: 240 seconds) |
18:01:44 | * | [1]Endy is now known as Endy |
18:06:58 | * | zahary joined #nimrod |
18:10:06 | Araq | hi zahary |
18:11:29 | zahary | hi |
18:11:35 | zahary | btw wow, you've been busy :) |
18:11:54 | Araq | yeah ... |
18:12:15 | Araq | I wished to fix every "critical" bug though ... |
18:12:39 | Araq | anyway there is a problem with the "types as values" |
18:12:48 | Araq | "var x = string" |
18:12:58 | Araq | when is that actually allowed? |
18:13:05 | zahary | it's ok inside macros |
18:13:16 | Araq | that's what I thought |
18:14:33 | Araq | but it's wrong |
18:14:42 | Araq | const TypeList = [int, string, seq[int]] |
18:14:48 | Araq | # from ttypetraits |
18:15:02 | zahary | that should be ok too, what is the problem? |
18:15:12 | Araq | I can't come up with rules |
18:15:19 | Araq | it is "any compile time context"? |
18:15:33 | zahary | yes |
18:16:07 | Araq | hmm |
18:16:51 | Araq | well it's way easier to catch it in the backend (as usual) |
18:16:56 | zahary | one lazy way to handle it is like some of the compile-time magics .. |
18:17:11 | Araq | but it's in GetUniqueType() which has no line information |
18:20:18 | zahary | is it hard to solve? besides passing a line info to GetUniqueType the other way would be to return some kind of error type and to produce the message at the variable declaration |
18:21:11 | Araq | but that's exactly what I tried and failed at :P |
18:21:48 | Araq | GetUniqueType is a hot spot |
18:22:05 | Araq | I don't want to make it slower by passing type information to it |
18:22:13 | Araq | plus it's lots of work |
18:24:12 | * | shevy joined #nimrod |
18:24:15 | shevy | hey |
18:24:21 | dom96 | hey shevy :D |
18:24:24 | gradha | hey |
18:24:25 | Araq | wb shevy |
18:24:36 | shevy | I am using chatzilla right now |
18:24:48 | shevy | so you all "sound" differently |
18:24:56 | shevy | especially granddad |
18:24:56 | Araq | don't we all use chatzilla? |
18:25:13 | dom96 | xchat ftw |
18:25:15 | gradha | that should be the alcohol from the release party |
18:25:28 | shevy | dunno, I had xchat before ... but compiling it fails right now, and hexchat has a floating point error so I cant use it, so I am back to chatzilla again |
18:26:39 | Araq | chatzilla is cool |
18:26:50 | Araq | if the browser crashes, so does chatzilla |
18:27:15 | shevy | lol |
18:27:26 | shevy | now that you mention it, some youtube videos freeze my firefox |
18:27:42 | shevy | so in case I am suddenly off, this is what happened again |
18:30:04 | reactormonk | Araq, you should make nimrod compile to COBOL! http://www-03.ibm.com/press/us/en/pressrelease/41095.wss |
18:30:53 | * | Trixar_za is now known as Trix[a]r_za |
18:31:14 | gradha | I've always wanted to port my games to System z mainframes |
18:31:54 | reactormonk | Araq, ... crap It communicates on digital pins 0 (RX) and 1 (TX) as well as with the computer via USB. Thus, if you use these functions, you cannot also use pins 0 and 1 for digital input or output. |
18:32:14 | reactormonk | so if I wire echo to serial port, it blocks other stuff |
18:32:36 | Araq | I'll port nimrod to my mindstorm soon |
18:32:52 | Araq | and then I don't want to hear "it can't be used for embedded" ever again :P |
18:33:59 | Araq | hmm but then my mindstorm in fact has a display ... :P |
18:34:50 | gradha | if I write "line =~ re(something)" am I write to asume the regular expression will be compiled every time for the if check so I should move the re call to a let block? |
18:35:06 | gradha | doh, "am I write" |
18:35:15 | Araq | you're right in that it's not optimized yet |
18:35:26 | gradha | sounds like cannon fodder for macros |
18:35:28 | zahary | hey, if we endorse gittip support officially now, more people should join the Nimrod community there. I'm little embarrassed to be the only member :P |
18:35:29 | Araq | but it's easy to do that |
18:35:29 | zahary | https://www.gittip.com/for/nimrod/ |
18:36:56 | dom96 | cool, I didn't know that exists. |
18:37:01 | Araq | me neither |
18:37:47 | gradha | so now that I've linked my github account to that, how do they siphon my money into Araq's hands? |
18:38:01 | shevy | is the nimrod logo new? that crown thingy |
18:38:08 | Araq | shevy: kind of |
18:38:17 | Araq | the logo has been a crown for a long time |
18:38:23 | Araq | but only as an icon on windows |
18:38:47 | dom96 | gradha: Flush your money down the toilet, gittip supports the magical Sewer Money Transfer (C) technology. |
18:40:00 | shevy | hehe |
18:40:18 | Araq | btw dom96 how did nimbuild ever work on the old windows testing machine? |
18:40:42 | dom96 | Araq: I rewrote it at one point remember? |
18:40:57 | dom96 | When I was rewriting it I didn't really care about windows support. |
18:41:39 | Araq | can I do windows-x86 and windows-x86_64 on the same machine? |
18:42:39 | dom96 | Yeah, but that will require some builder adjustments. |
18:42:52 | * | shevy quit (Remote host closed the connection) |
18:43:33 | dom96 | http://www.reddit.com/r/programming/comments/1epf5s/nimrod_092_released/ca2hhyw |
18:44:33 | * | shevy joined #nimrod |
18:44:55 | shevy | yup, firefox just crashed.. hi again |
18:45:00 | Araq | lol |
18:45:20 | gradha | try using an older more stable firefox version |
18:45:28 | gradha | I still use 3.x |
18:45:31 | shevy | hehe |
18:45:39 | shevy | it's something with that flash plugin |
18:45:45 | shevy | I'd wish they would have opensourced flash |
18:46:00 | dom96 | Get rid of flash and use html5 video instead |
18:46:26 | gradha | true, after I removed flash from my machine browsers practically don't crash |
18:48:30 | shevy | dom96: hmm does that work? |
18:48:49 | gradha | http://www.youtube.com/html5 ? |
18:48:53 | dom96 | shevy: It should. youtube works well on my iPad mini, and it has no flash. |
18:49:14 | shevy | interesting |
18:49:52 | shevy | hmm it has a "!" next to h.264 |
18:50:02 | shevy | that possibly means I will have problems with that codec? |
18:51:28 | dom96 | I think it means your browser doesn't support it. |
18:52:31 | gradha | but you should be ok with webm in firefox, the only downside is webm is slightly bigger than h264 in file size |
18:52:49 | * | Endy quit (Ping timeout: 252 seconds) |
18:53:57 | dom96 | cool, it works pretty well for me. |
19:00:57 | * | gradha quit (Quit: bbl, have youtube videos to watch) |
19:04:23 | Araq | see you later guys |
19:15:53 | * | fowl joined #nimrod |
19:16:07 | Araq | fowl: vote for us :-) |
19:16:44 | fowl | link |
19:17:01 | Araq | http://www.reddit.com/r/programming/comments/1epf5s/nimrod_092_released/ |
19:17:08 | dom96 | Araq: back so soon? :P |
19:18:26 | Araq | I'm away :P |
19:56:49 | * | Vladar quit (Quit: Leaving) |
19:58:30 | * | exhu joined #nimrod |
20:02:26 | apotheon | Araq: Congrats on the new release. |
20:05:49 | apotheon | Araq: http://copyfree.org/software/#Programming (Nimrod listed) |
20:06:55 | dom96 | apotheon: Brilliant, give us an upvote on reddit if you haven't already :) |
20:07:57 | apotheon | Araq: https://twitter.com/CopyfreeNews/status/336573962366644224 |
20:08:06 | apotheon | dom96: I have. |
20:09:12 | apotheon | dom96: commented too, now |
20:12:11 | exhu | http://3.bp.blogspot.com/-C1ePsGYd6FM/Tx9CqbOE5KI/AAAAAAAAAiE/jE9o7LMHg1c/s1600/303690-good_news_everyone.jpg |
20:12:16 | exhu | congrats! |
20:14:07 | fowl | i totally read that in farnsworth's voice >_> |
20:15:32 | * | exhu quit (Quit: Ex-Chat) |
20:17:55 | * | gradha joined #nimrod |
20:22:48 | * | Trix[a]r_za is now known as Trixar_za |
20:25:27 | gradha | dom96: joined this reddit thingy to upvote the release, but something tells me I'll end up voting kpop links more |
20:26:11 | reactormonk | Araq, so I could link stringCopyRC1 to stringCopy |
20:26:48 | reactormonk | Araq, can I create an immutable string type? |
20:28:01 | reactormonk | lemme rephrase that: can I mark a type as immutable? |
20:28:13 | reactormonk | how far is the effect system? ;-) |
20:37:52 | * | apotheon needs to start doing more stuff with Nimrod, post-haste. |
20:38:19 | apotheon | . . . unless I decide to wait until 0.9.2 makes it into FreeBSD ports. |
20:59:09 | reactormonk | Araq, ... arduino.nim also means I gotta draw all my arduino stuff in there |
21:02:37 | dom96 | gradha: "unbiasednimrodcoder" that's you isn't it? I laughed so much lol |
21:02:47 | dom96 | apotheon: Thank you! |
21:02:57 | gradha | why? I was being like totally serious answering |
21:03:02 | dom96 | reactormonk: 'let myString = "assaf"' |
21:03:11 | apotheon | dom96: welcome |
21:03:28 | dom96 | gradha: Because the nickname is funny. |
21:04:23 | reactormonk | dom96, type, via pragma. Because if you store stuff in the flash, it's immutable. |
21:05:51 | dom96 | gradha: is it not meant to be? :P |
21:06:53 | dom96 | reactormonk: You could have an object with private fields and only define getters for them. |
21:07:05 | reactormonk | dom96, primitive types, as string |
21:07:38 | gradha | gradha: certainly it's more entertaining than using a password generator for my username |
21:07:55 | gradha | yay, now talking to myself <facepalm> |
21:07:59 | dom96 | haha |
21:08:30 | dom96 | reactormonk: hrm, example of what you mean? |
21:08:59 | gradha | reactormonk: maybe inmutableString = distinct string? |
21:09:29 | dom96 | hrm, that would work. |
21:12:33 | Araq | I'm back |
21:12:40 | Araq | and in search of a cool name! |
21:12:51 | dom96 | Araq: Good because you've got to answer someone on reddit ;) |
21:13:05 | Araq | nimrod_weeny_0.9.2.exe ? |
21:13:30 | Araq | I built that "tiny Nimrod distribution" with a minimal GCC ... |
21:13:40 | Araq | the installer is 9 MB |
21:13:46 | gradha | norazo is a good name |
21:13:53 | dom96 | just call it: nimrod_nounicorns_0.9.2.exe |
21:14:21 | Araq | no ... |
21:14:36 | Araq | it's nimrod_weeny unless somebody comes up with something better |
21:15:10 | dom96 | why not just 'nimrod_min'? |
21:15:12 | gradha | nimrod_vista |
21:15:38 | gradha | nimrod_ziggurat |
21:15:46 | reactormonk | dom96, flash memory is RO |
21:15:48 | reactormonk | read only |
21:16:27 | gradha | Araq: what was the name of that japanese godzilla thingy? |
21:17:46 | gradha | nimrod_forever |
21:17:50 | Araq | gamera I think |
21:18:22 | Araq | yeah ... that's it |
21:18:25 | Araq | nimrod_gamera |
21:18:29 | Araq | thanks |
21:21:07 | apotheon | Is the Nimrod port maintainer for FreeBSD a resident of this channel? |
21:22:41 | Araq | apotheon: I don't think so |
21:33:22 | apotheon | bummer |
21:33:24 | apotheon | should be |
21:56:30 | reactormonk | gradha, the idea is to have a pragma that stores stuff in progmem - I have that one already. But I'd prefer if it would make strings immutable as well |
21:56:56 | reactormonk | s/strings/the stuff stored in progmem/ |
21:58:53 | Araq | reactormonk: you can do 'const x = "abc"' but it's not really the same as an immutable string |
22:04:00 | reactormonk | Araq, the advantage of an immutable string would be that I can simply return the same string wenn it wants to copy it >:) |
22:04:20 | Araq | oh you can do that already |
22:04:28 | Araq | sort of. |
22:12:55 | * | zahary_ quit (Ping timeout: 260 seconds) |
22:15:49 | * | OrionPK joined #nimrod |
22:16:39 | Araq | you should use cstrings anyway for the tiny amount of memory you got, reactormonk |
22:17:10 | Araq | in fact ... you probably shouldn't process strings on that board :P |
22:24:52 | * | Trixar_za is now known as Trix[a]r_za |
22:40:06 | NimBot | Araq/Nimrod c2de890 Araq [+0 ±2 -0]: added gamera edition to the website |
22:41:38 | * | zahary quit (Quit: Leaving.) |
22:43:31 | Araq | there -- go get it while it's hot! |
22:44:21 | dom96 | hell yes, I am so installing that with Wine on Linux. |
22:51:57 | reactormonk | Araq, yep. |
22:52:05 | reactormonk | Araq, but exceptions require strings ;-) |
22:52:22 | Araq | you shouldn't use exceptions either |
22:52:42 | Araq | it's hard to raise them without a heap |
22:53:51 | reactormonk | I'd replace the raising code with a quit |
22:54:22 | dom96 | gradha: Could you answer http://www.reddit.com/r/programming/comments/1epf5s/nimrod_092_released/ca2n0mk please? :) |
22:55:33 | Araq | reactormonk: we can do it differently; the exception object contains a buffer for the message (10chars) and we need to support 'ptr object' for 'raise' |
22:55:40 | Araq | then it can be statically allocated |
22:56:03 | Araq | that may need some compiler adjustments |
22:57:15 | reactormonk | how many? |
22:57:43 | Araq | perhaps 6 |
23:00:24 | reactormonk | can I do it? |
23:01:16 | Araq | I don't think so :P |
23:01:23 | reactormonk | hm |
23:01:34 | reactormonk | is there another quick n dirty way I could do? |
23:02:01 | Araq | sure |
23:02:18 | Araq | don't set the error message field in 'newException' |
23:02:32 | gradha | dom96: done |
23:02:48 | dom96 | gradha: thanks |
23:03:26 | reactormonk | Araq, and what about all the exceptions in the compiler? |
23:03:40 | Araq | what about them? |
23:03:53 | reactormonk | some have error message fields |
23:03:56 | Araq | do you want to bootstrap the compiler on your board with 32K of RAM? |
23:04:10 | Araq | I'm afraid that won't work ... |
23:04:27 | reactormonk | that's for sure |
23:04:34 | reactormonk | but system.nim might have some... let's see |
23:04:59 | reactormonk | raise newException(EDivByZero, "divison by zero") |
23:05:04 | Araq | system.nim provides exception support |
23:05:10 | Araq | but doesn't really rely on them |
23:05:23 | Araq | the exceptions you encounter are not to be catched anyway |
23:05:39 | Araq | it's more a "fatal" than an exception |
23:05:56 | Araq | EDivByZero is the perfect example |
23:06:00 | reactormonk | yeah, that's what I intend to do anyway |
23:06:38 | reactormonk | replace the raising code with a simple 'quit' |
23:12:10 | Araq | actually things like EDivByZero are interesting edge cases :P |
23:12:38 | Araq | I kept them as exceptions for when you do quick&dirty batch processing |
23:12:43 | Araq | which looks like: |
23:12:54 | Araq | for element in whatever: |
23:12:56 | Araq | try: |
23:13:05 | Araq | doSomething(element) |
23:13:12 | Araq | except: |
23:13:26 | Araq | log(getCurrentException()) |
23:13:33 | Araq | # but go on! |
23:14:51 | Araq | if all you care about is calculating some statistic, it can be fine even if there are bugs in doSomething |
23:15:24 | Araq | but that doesn't apply for embeded programming |
23:15:30 | * | OrionPK quit (Read error: Connection reset by peer) |
23:16:51 | * | OrionPK joined #nimrod |
23:21:33 | gradha | can you explain why the news' sidebar features links like http://nimrod-code.org/news.html#Z2011-07-10-version-0-8-12-released except for the new website which is simply http://nimrod-code.org/news.html#new-website-design without date? |
23:22:04 | dom96 | Explanation: it's a mistake :P |
23:22:34 | OrionPK | new site is a big step up |
23:22:52 | OrionPK | not a fan of the gradient/shininess, but other than that i love it ;) |
23:26:33 | gradha | is there any proc to insert a string into another at any position? |
23:26:55 | gradha | oh, insert(), clever |
23:27:36 | Araq | you can also use splicing I think |
23:27:54 | Araq | s[1..3] = "yep. longer than 3 chars" |
23:28:43 | dom96 | whoa, I need to try this. |
23:29:23 | Araq | OrionPK: thanks. I fear the new design may annoy me at some day ... the old design never got annoying |
23:29:49 | fowl | whats the point of the slice if the second number is disregarded |
23:30:06 | Araq | the second numer is not disregarded |
23:30:09 | fowl | might as well make it [](some: var string; idx: int; s: string) |
23:30:47 | dom96 | fowl: it replaces whatever is between [1] and [3] with "yep. longer than 3 chars" |
23:30:48 | fowl | oh i see |
23:55:12 | reactormonk | Araq, what do you think of an `override` pragma that replaces proc X? |
23:55:49 | Araq | yeah who needs this thing called "module system" and "separate compilation" anyway ... |
23:56:46 | reactormonk | ^^ |
23:56:51 | reactormonk | figured so. |
23:59:07 | reactormonk | Araq, could I override the exception constructor to just drop the strings? |