01:19:48 | * | SirSkids|Cafe is now known as SirSkidmore |
02:45:38 | * | SirSkidmore is now known as SirSkids|Zzz |
03:35:15 | * | OnionPK joined #nimrod |
03:41:38 | * | OrionPK quit (Read error: Connection reset by peer) |
03:41:39 | * | greyfox1 quit (Ping timeout: 276 seconds) |
03:44:01 | * | greyfox1 joined #nimrod |
03:49:36 | * | ARCADIVS quit (Quit: WeeChat 0.3.8) |
03:56:10 | reactormonk | any way to give a compiler error description? |
03:56:34 | reactormonk | {.error.} works, but you can't pass a message |
03:59:40 | reactormonk | fowl, should I reopen that issue? |
04:05:50 | fowl | yea |
04:05:53 | fowl | your example sucked btw |
04:06:02 | reactormonk | fowl, how so? |
04:06:12 | fowl | {.error: "fuck".} |
04:06:22 | fowl | its not polymorphic |
04:06:29 | reactormonk | test.nim(7, 10) Error: invalid pragma: error: "hello" |
04:07:32 | reactormonk | fowl, it only checks for the stuff that's used, not for implementation |
04:07:49 | reactormonk | if you don't use it, no check. Sounds reasonable to me. |
04:08:17 | fowl | yes but to do OO you have to have to have polymorphism |
04:08:21 | fowl | thats a must |
04:08:25 | reactormonk | polymorphism? |
04:08:40 | fowl | var x: TFoo = newBaz(); t1(x) should call t1() for TBaz |
04:08:51 | fowl | in your example it will call t1() for tfoo |
04:09:09 | fowl | because its a TBaz, stored as a TFoo |
04:10:01 | * | OnionPK quit (Quit: Leaving) |
04:11:18 | reactormonk | remove the second t1 call and run it |
04:11:49 | fowl | why |
04:12:54 | fowl | foo2.t1 will be statically dispatched to t1(: Tfoo), yes |
04:13:08 | fowl | thats not useful for OOP though |
04:13:14 | fowl | you simply have to use methods |
04:13:20 | reactormonk | works with methods as well |
04:14:49 | fowl | https://en.wikipedia.org/wiki/Polymorphism_in_object-oriented_programming |
04:15:17 | fowl | reactormonk, the behavior is not the same, static dispatch vs dynamic dispatch |
04:15:30 | reactormonk | fowl, the result is |
04:16:00 | fowl | ok |
04:16:04 | fowl | afk |
04:17:06 | fowl | not really, i just say that when i want to end a conversation |
04:17:25 | * | XAMPP__ quit (Read error: Connection reset by peer) |
04:17:53 | * | XAMPP__ joined #nimrod |
06:17:56 | * | q66 joined #nimrod |
06:41:20 | * | xcombelle joined #nimrod |
07:19:08 | * | Araq_ joined #nimrod |
07:19:32 | * | Araq_ quit (Client Quit) |
07:36:20 | * | Endeg joined #nimrod |
08:00:20 | * | xcombelle quit (Read error: Connection reset by peer) |
08:08:55 | * | q66 quit (Read error: Connection reset by peer) |
08:09:03 | * | q66 joined #nimrod |
08:20:54 | * | Araq_ joined #nimrod |
08:32:02 | * | amarsahinovic joined #nimrod |
08:38:35 | * | apotheon quit (Ping timeout: 252 seconds) |
08:49:12 | * | Araq_ quit (Read error: Connection timed out) |
08:50:09 | * | Araq_ joined #nimrod |
08:56:32 | * | Araq_ quit (Quit: ChatZilla 0.9.90 [Firefox 19.0.2/20130307023931]) |
08:59:19 | * | amarsahinovic quit (Ping timeout: 264 seconds) |
16:19:08 | * | NimBot joined #nimrod |
16:21:15 | dom96 | _ponce: i'm guessing gcc isn't in your PATH? |
16:26:54 | dom96 | or it's that weird Windows bug, but I thought that was fixed. |
17:00:41 | * | Zor quit (*.net *.split) |
17:00:50 | * | SirSkidmore quit (*.net *.split) |
17:00:50 | * | JStoker quit (*.net *.split) |
17:00:52 | * | reactormonk quit (*.net *.split) |
17:00:53 | * | Endeg quit (*.net *.split) |
17:00:54 | * | XAMPP__ quit (*.net *.split) |
17:00:56 | * | tangentstorm quit (*.net *.split) |
17:00:56 | * | Trix[a]r_za quit (*.net *.split) |
17:00:56 | * | apotheon quit (*.net *.split) |
17:00:56 | * | q66 quit (*.net *.split) |
17:00:58 | * | Amrykid quit (*.net *.split) |
17:00:58 | * | Araq_bnc_ quit (*.net *.split) |
17:00:58 | * | dom96 quit (*.net *.split) |
17:00:59 | * | fowl quit (*.net *.split) |
17:01:02 | * | phoquer quit (*.net *.split) |
17:01:03 | * | Endy quit (*.net *.split) |
17:01:04 | * | mal`` quit (*.net *.split) |
17:01:05 | * | comex quit (*.net *.split) |
17:01:07 | * | tymat quit (*.net *.split) |
17:01:12 | * | Reiser quit (*.net *.split) |
17:01:12 | * | Roin quit (*.net *.split) |
17:01:13 | * | _ponce quit (*.net *.split) |
17:01:13 | * | zahary__ quit (*.net *.split) |
17:01:14 | * | greyfox1 quit (*.net *.split) |
17:01:14 | * | Boscop quit (*.net *.split) |
17:01:15 | * | silven quit (*.net *.split) |
17:01:19 | * | Raynes quit (*.net *.split) |
17:09:29 | * | Zor_ joined #nimrod |
17:09:29 | * | phoquer joined #nimrod |
17:09:29 | * | Endy joined #nimrod |
17:09:29 | * | mal`` joined #nimrod |
17:09:29 | * | JStoker joined #nimrod |
17:09:29 | * | Amrykid joined #nimrod |
17:09:29 | * | Araq_bnc_ joined #nimrod |
17:09:29 | * | Roin joined #nimrod |
17:09:29 | * | Reiser joined #nimrod |
17:09:29 | * | silven joined #nimrod |
17:09:29 | * | tymat joined #nimrod |
17:09:29 | * | fowl joined #nimrod |
17:09:29 | * | comex joined #nimrod |
17:09:29 | * | Raynes joined #nimrod |
17:09:29 | * | Boscop joined #nimrod |
17:09:29 | * | greyfox1 joined #nimrod |
17:09:29 | * | XAMPP__ joined #nimrod |
17:09:29 | * | Endeg joined #nimrod |
17:09:29 | * | q66 joined #nimrod |
17:09:29 | * | apotheon joined #nimrod |
17:09:29 | * | Trix[a]r_za joined #nimrod |
17:09:29 | * | reactormonk joined #nimrod |
17:09:29 | * | zahary__ joined #nimrod |
17:09:29 | * | tangentstorm joined #nimrod |
17:09:29 | * | _ponce joined #nimrod |
17:09:29 | * | dom96 joined #nimrod |
17:09:29 | * | SirSkidmore joined #nimrod |
17:26:07 | * | Araq_bnc_ is now known as Araq |
18:34:53 | reactormonk | Araq, hm. Can I gather the exceptions at compile-type and enum them? In the end, I have to pass around exceptions as pointers to progmem, which need to be read with specific procedures... or could I allocate a static address for exceptions? Which contain a pointer to progmem and the typedesc |
18:57:34 | * | Endy quit (Ping timeout: 256 seconds) |
19:14:46 | * | NimBot joined #nimrod |
19:15:49 | dom96 | yay: https://bugzilla.redhat.com/show_bug.cgi?id=971059 |
19:27:16 | Araq | reactormonk: I told you at least twice how it can be done and no, you can't iterate over every exception type at compile time, there are times when you need to do *work* |
19:34:20 | reactormonk | Araq, let's see |
19:35:00 | Araq | and yeah the compiler needs to be patched to accept ptr instead of ref for exceptions |
19:35:21 | Araq | I can do it but I'm not sure whether that should depend on --os:standalone or not |
19:36:29 | reactormonk | Araq, oh, I think I alreay did that part |
19:57:41 | Araq | reactormonk: do you even have setjmp/longjmp? |
19:57:50 | Araq | because otherwise exceptions can't work ... |
19:59:14 | reactormonk | Araq, yep, they exist |
19:59:23 | Araq | wow |
20:01:10 | reactormonk | http://www.nongnu.org/avr-libc/user-manual/group__setjmp.html |
20:03:58 | * | ARCADIVS joined #nimrod |
20:38:35 | reactormonk | Araq, the nasty part is that you can't store structs in progmem - only primitive types. :-( |
20:39:08 | Araq | why not? |
20:39:25 | reactormonk | wait. |
20:41:35 | reactormonk | I'd have to read and cast it. Should be possible. |
21:21:53 | apotheon | Is anyone building a Nimrod shell? |
21:22:59 | reactormonk | apotheon, like nimrod i? |
21:25:17 | apotheon | I don't know. What's "nimrod i"? |
21:25:35 | Araq | nimrod's shabby REPL |
21:26:07 | apotheon | Oh. No, I mean like something designed to actually work as an interactive command shell. |
21:26:20 | apotheon | e.g. "nimsh" |
21:26:52 | fowl | would it speak sh |
21:27:14 | apotheon | . . . ? |
21:27:24 | fowl | the language that shells speak |
21:27:36 | fowl | so you can do shit like ./configure --prefix=$PREFIX |
21:27:43 | apotheon | I don't think shells speak languages. |
21:27:49 | fowl | you dont think sh is a language? |
21:28:00 | apotheon | ah |
21:28:03 | fowl | #!/bin/sh <- this is useless? |
21:28:07 | apotheon | You're using words in a weird way. |
21:28:21 | apotheon | Most shells don't speak sh, in that sense. |
21:28:30 | apotheon | F'rinstance, tcsh speaks tcsh, not sh. |
21:28:53 | fowl | yea but who uses tcsh |
21:28:54 | apotheon | . . . but yeah, presumably a shell would "speak" a shell language. |
21:29:06 | apotheon | Who uses sh for other than scripts? |
21:29:18 | apotheon | Most people use tcsh, bash, mksh, zsh, et cetera. |
21:29:41 | dom96 | apotheon: As far as I know the answer is "no". |
21:29:43 | apotheon | . . . which "speak" tcsh, bash, mksh, zsh, et cetera, respectively. |
21:29:47 | apotheon | dom96: Thanks. |
21:30:27 | apotheon | I wonder if it would be reasonable to implement as basically a dynamic preprocessor thingie wrapped around the REPL. |
21:30:34 | apotheon | Probably not. |
21:31:25 | fowl | apotheon, though your shell is probably never going to speak to you, you can still say it speaks (communicates) a language |
21:31:51 | fowl | call my words weird and i'll call you some weird words >:( |
21:32:06 | apotheon | Feel free. |
21:44:04 | _ponce | <dom96> [18:11:55] _ponce: i'm guessing gcc isn't in your PATH? < silly me I thought that was only nevessary for the first step |
21:44:07 | _ponce | thanks |
21:44:10 | _ponce | works now |
21:44:18 | fowl | i want to write something in nimrod that i can monetize off |
21:44:24 | fowl | s/want/need |
21:47:54 | dom96 | I want to as well. Time and good ideas are the two problems that I have. |
21:48:09 | dom96 | s/good ideas/lack of good ideas/ |
21:49:13 | fowl | i have time but no ideas |
21:49:18 | fowl | :< |
21:52:00 | dom96 | what about things that you would like to use but they don't exist? or they exist but they suck? |
21:58:21 | fowl | i have an idea for an animation tool but a lot of game devs i talk to aren't interested in it |
22:01:12 | _ponce | I have an idea but it would be the same as work, so I'm not allowed to :p |
22:39:35 | * | OrionPK joined #nimrod |
22:46:46 | * | Zor_ is now known as Zor |
23:13:39 | * | DAddYE joined #nimrod |
23:17:45 | dom96 | hi DAddYE |
23:17:55 | DAddYE | hi dom96 |
23:31:30 | * | q66 quit (Remote host closed the connection) |
23:39:49 | dom96 | good night |
23:49:35 | * | Amrykid quit (Changing host) |
23:49:35 | * | Amrykid joined #nimrod |