00:07:25 | filwit | Araq: are you still around? |
00:07:48 | * | BitPuffin quit (Ping timeout: 246 seconds) |
00:07:52 | filwit | can Nimrod be used with VC++? |
00:08:07 | filwit | MS VC++ ** |
00:10:19 | OrionPK | https://github.com/Araq/Nimrod |
00:10:24 | OrionPK | gcc 3.x or later recommended. Other alternatives which may work are: clang, Visual C++, Intel's C++ compiler |
00:11:01 | dom96 | Try it and see. |
00:11:32 | dom96 | It should work but we don't test it actively, unless Araq does secretly and doesn't tell me. |
00:12:29 | filwit | dom96: i don't know how to get the compiler (on windows) to switch... command line option? |
00:12:34 | * | zezba9000 joined #nimrod |
00:12:37 | filwit | i couldn't find it in the docs |
00:14:08 | OrionPK | its in a cfg file in ur nimrod folder |
00:14:32 | filwit | OrionPK: k, thanks, i'll look |
00:16:52 | dom96 | I think you can also do it on the cmd line: --cc:vc++ or something, I don't know the compiler's name |
00:17:34 | filwit | okay |
00:17:38 | filwit | i thought you could do that |
00:22:10 | dom96 | 'night |
00:22:14 | familiar125 | night |
00:23:51 | * | familiar125 quit (Read error: Connection reset by peer) |
00:28:34 | * | familiar125 joined #nimrod |
00:34:21 | * | familiar125 quit (Read error: Connection reset by peer) |
00:35:06 | * | familiar125 joined #nimrod |
00:38:34 | * | DAddYE quit (Remote host closed the connection) |
00:39:00 | * | DAddYE joined #nimrod |
00:43:28 | * | DAddYE quit (Ping timeout: 265 seconds) |
01:13:53 | * | zezba9000 left #nimrod (#nimrod) |
01:30:42 | * | filwit quit (Quit: Leaving) |
01:39:44 | * | DAddYE joined #nimrod |
01:44:22 | * | DAddYE quit (Ping timeout: 265 seconds) |
02:04:38 | * | shodan45 quit (Quit: Konversation terminated!) |
02:33:37 | * | zahary1 joined #nimrod |
02:34:21 | * | zahary quit (Read error: Connection reset by peer) |
02:40:54 | * | DAddYE joined #nimrod |
02:45:39 | * | DAddYE quit (Ping timeout: 272 seconds) |
03:01:11 | * | Demos joined #nimrod |
03:02:35 | * | zezba9000 joined #nimrod |
03:02:58 | zezba9000 | How do I compile a nimrod app on Windows using the VC++ 2013 compiler? |
03:03:17 | zezba9000 | or just some VC++ compiler instead of GCC... what is the command arg for it? |
03:21:01 | familiar125 | I swear we just talked about this: p |
03:26:06 | zezba9000 | I found it... its vcc |
03:26:10 | zezba9000 | https://github.com/Araq/Nimrod/issues/182 |
03:27:06 | * | zezba9000 left #nimrod (#nimrod) |
03:28:37 | fowl | familiar125, did you figure out how to fix your issue |
03:31:01 | familiar125 | which issue? |
03:31:40 | fowl | the one from last night |
03:31:46 | fowl | with bacon.nim |
03:34:31 | familiar125 | that weren't me |
03:35:20 | fowl | oh i think it was freezerburn |
03:35:21 | fowl | my bad |
03:35:28 | familiar125 | ja |
03:35:36 | familiar125 | I'm orionpk |
03:35:58 | fowl | why you using a new nick |
03:36:08 | fowl | are you hiding from someone |
03:36:18 | fowl | knock twice if you cant talk |
03:37:05 | familiar125 | because I'm using my test irc app |
03:37:23 | fowl | oh neat |
03:42:06 | * | DAddYE joined #nimrod |
03:47:05 | * | DAddYE quit (Ping timeout: 272 seconds) |
04:00:18 | * | mflamer joined #nimrod |
04:19:16 | * | Associat0r quit (Quit: Associat0r) |
04:43:00 | * | familiar125 quit (Read error: Connection reset by peer) |
04:43:17 | * | DAddYE joined #nimrod |
04:43:54 | * | familiar125 joined #nimrod |
04:47:53 | * | DAddYE quit (Ping timeout: 272 seconds) |
04:48:30 | * | xenagi quit (Quit: Leaving) |
04:57:07 | * | Ricky_Ricardo joined #nimrod |
05:05:07 | * | familiar125 quit (Read error: Connection reset by peer) |
05:06:05 | * | OrionPK quit (Quit: Leaving) |
05:30:40 | * | isenmann joined #nimrod |
05:45:30 | * | DAddYE joined #nimrod |
05:47:51 | * | ics quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
05:49:02 | * | Ricky_Ricardo quit (Quit: laptop[lid].close) |
05:50:08 | * | ics joined #nimrod |
05:50:29 | * | DAddYE quit (Ping timeout: 272 seconds) |
05:51:30 | * | mflamer quit (Ping timeout: 272 seconds) |
06:24:03 | * | ics quit (Ping timeout: 272 seconds) |
06:36:29 | * | ics joined #nimrod |
06:46:13 | * | DAddYE joined #nimrod |
06:50:39 | * | DAddYE quit (Ping timeout: 246 seconds) |
07:01:45 | * | DAddYE joined #nimrod |
07:22:21 | * | fowl quit (Read error: Connection timed out) |
07:24:18 | * | fowl joined #nimrod |
07:24:29 | * | Demos quit (Quit: Leaving) |
09:15:11 | * | fowl quit (Read error: Operation timed out) |
09:15:39 | * | fowl joined #nimrod |
09:19:10 | * | Jackneill joined #nimrod |
09:31:20 | * | DAddYE quit (Remote host closed the connection) |
09:33:59 | * | CarpNet joined #nimrod |
10:32:21 | * | DAddYE joined #nimrod |
10:33:03 | * | ics quit (Ping timeout: 245 seconds) |
10:35:42 | * | ics joined #nimrod |
10:38:24 | * | DAddYE quit (Ping timeout: 272 seconds) |
11:23:13 | * | BitPuffin joined #nimrod |
11:34:06 | * | DAddYE joined #nimrod |
11:38:52 | * | DAddYE quit (Ping timeout: 264 seconds) |
11:41:43 | * | BitPuffin quit (Quit: WeeChat 0.4.2) |
11:43:19 | * | BitPuffin joined #nimrod |
11:48:09 | BitPuffin | gooooood morning! |
11:48:24 | Araq | dude, it's noon already |
11:48:28 | Araq | :P |
11:52:38 | BitPuffin | :P |
11:52:48 | BitPuffin | yeah I kind of overslept today |
12:05:42 | * | q66 quit (Ping timeout: 246 seconds) |
12:07:34 | * | freezerburnv joined #nimrod |
12:14:18 | * | q66 joined #nimrod |
12:28:41 | * | BitPuffin quit (Quit: WeeChat 0.4.2) |
12:31:13 | * | faassen joined #nimrod |
12:31:28 | * | BitPuffin joined #nimrod |
12:35:25 | * | DAddYE joined #nimrod |
12:39:26 | * | DAddYE quit (Ping timeout: 240 seconds) |
13:00:34 | * | freezerburnv quit (Quit: freezerburnv) |
13:09:20 | * | Ricky_Ricardo joined #nimrod |
13:36:26 | * | DAddYE joined #nimrod |
13:40:38 | * | DAddYE quit (Ping timeout: 240 seconds) |
13:51:24 | * | Ricky_Ricardo quit (Quit: laptop[lid].close) |
14:18:22 | * | freezerburnv joined #nimrod |
14:31:21 | * | faassen quit (Quit: Leaving.) |
14:37:43 | * | DAddYE joined #nimrod |
14:43:02 | * | DAddYE quit (Ping timeout: 240 seconds) |
14:46:26 | * | mflamer joined #nimrod |
14:52:42 | * | OrionPK joined #nimrod |
14:58:41 | BitPuffin | strange |
14:58:47 | BitPuffin | this language does not have booleans |
14:58:57 | BitPuffin | ints or longs are used for that apparently |
14:59:25 | BitPuffin | and by "this language" I don't mean nimrod, so don't freak out :P |
15:00:28 | OrionPK | that would be news indeed |
15:01:06 | BitPuffin | OrionPK: what happened to the web irc nick? :P |
15:01:34 | OrionPK | thats just what I have configured in my custom IRC app |
15:01:50 | BitPuffin | it seems really cool |
15:02:02 | BitPuffin | since you'll be open sourcing it maybe I'll integrate it on my company website |
15:02:04 | BitPuffin | for the community |
15:02:15 | BitPuffin | just so that I have a full nimrod stack :P |
15:02:23 | BitPuffin | OrionPK: is it written in nimrod that compiles to js? |
15:02:28 | BitPuffin | or how have you made it |
15:02:59 | OrionPK | no, nimrod is on the server side, typescript on the front end |
15:03:18 | OrionPK | using source code filters for HTML rendering |
15:03:59 | OrionPK | using jester for routing and serving content |
15:04:25 | OrionPK | asyncio hosts jester, irc, and my websocket library |
15:04:43 | OrionPK | but I can't really open source it until a bunch of stuff changes in the std library |
15:05:45 | BitPuffin | OrionPK: hmm, so it is a client that runs on a server? |
15:06:00 | OrionPK | correct |
15:06:05 | BitPuffin | hmm |
15:06:07 | BitPuffin | interesting |
15:06:14 | BitPuffin | would be cool if it could do either |
15:06:22 | OrionPK | how do you mean? |
15:06:29 | BitPuffin | well maybe then I won't do it, would rather offload the (albeit tiny) work to the client |
15:06:41 | BitPuffin | OrionPK: either on a server or self contained as a client locally |
15:06:58 | OrionPK | you mean a website that connects to IRC on its own? :P |
15:07:05 | BitPuffin | yeah :P |
15:07:22 | OrionPK | not possible without the IRC server supporting it |
15:07:23 | BitPuffin | man someone really needs to step up and fix the dom module |
15:07:30 | OrionPK | if IRC could handle websockets, sure |
15:07:31 | OrionPK | but |
15:07:32 | OrionPK | it cant |
15:07:39 | BitPuffin | I suggest dom96 because it is practically named after him |
15:07:55 | BitPuffin | OrionPK: but aren't there pure js clients already? |
15:08:01 | OrionPK | no |
15:08:08 | BitPuffin | oh |
15:08:10 | BitPuffin | hmm |
15:08:17 | BitPuffin | well it would be kind of fun to write an irc server :P |
15:08:28 | OrionPK | you'd have to get people to use it |
15:08:33 | BitPuffin | Well |
15:08:40 | BitPuffin | I mean if I have my own server for my company |
15:08:44 | BitPuffin | and a web based client |
15:08:47 | BitPuffin | solved |
15:08:50 | BitPuffin | plus open sauce |
15:08:53 | BitPuffin | so other can use it too |
15:09:14 | OrionPK | yeah but your client would be useless for all servers except urs |
15:09:59 | BitPuffin | OrionPK: sure |
15:10:24 | BitPuffin | OrionPK: but since it's open sauce who gives a shit :P |
15:10:37 | BitPuffin | servers could be updated to support it, or people could switch to my server |
15:11:05 | BitPuffin | b = (a > 9) ? 100 : 200; am I stupid or shouldn't that be 100, the docs here say that it's 200 lol |
15:11:10 | OrionPK | irc is a standard iirc |
15:11:26 | BitPuffin | OrionPK: Can the standord have extensions? |
15:12:06 | OrionPK | no idea |
15:12:14 | BitPuffin | standord lol |
15:12:22 | BitPuffin | STÅNDORRD |
15:14:54 | BitPuffin | OrionPK: Could be fun to look at at least, if not then I'll just use whatever you have. Although writing a lightweight irc client in pure nimrod would be kind of awesome |
15:15:41 | OrionPK | you'd need to use a GUI framework |
15:15:55 | OrionPK | this is more useful for me |
15:16:03 | BitPuffin | I meant server |
15:16:05 | BitPuffin | not client |
15:16:07 | BitPuffin | sorry |
15:16:07 | OrionPK | because I can leave it connected, it'll log things, then I can check on my phone whenever I want |
15:16:28 | BitPuffin | OrionPK: yeah true, that's really nice, it was the first thing that came to mind :) |
15:16:52 | BitPuffin | I wonder if weechat can run headless on a server and support connecting to it |
15:22:46 | * | mflamer quit (Ping timeout: 272 seconds) |
15:22:48 | OrionPK | Im gonna add in desktop notifications too |
15:23:21 | BitPuffin | OrionPK: that's possible with web apis? |
15:25:01 | BitPuffin | OrionPK: or does it go via the back end? |
15:26:04 | OrionPK | it's possible, but only some browsers support it |
15:26:34 | BitPuffin | I guess it is relatively new then |
15:27:01 | OrionPK | http://www.w3.org/TR/notifications/ |
15:27:22 | OrionPK | http://developer.chrome.com/extensions/desktop_notifications.html |
15:28:24 | BitPuffin | OrionPK: is it in ff? |
15:30:44 | OrionPK | doub tit |
15:31:27 | BitPuffin | really? hmm |
15:39:24 | * | DAddYE joined #nimrod |
15:41:14 | * | OrionPK quit (Quit: Page closed) |
15:41:41 | * | OrionPK joined #nimrod |
15:43:11 | OrionPK | bitpuffin right now it's tuned for chrome, but I'll add in some tweaks before release to get it working in FF and IE |
15:43:31 | BitPuffin | OrionPK: sweet |
15:44:26 | BitPuffin | I guess I might go very custom stuff. I kind of want to set it up so that if you have an account on my site you have an account on my irc server, and while you are at the site you are automatically connected to irc and can enter rooms etc and privately chat |
15:44:43 | * | DAddYE quit (Ping timeout: 245 seconds) |
15:46:25 | * | Ricky_Ricardo joined #nimrod |
15:50:28 | OrionPK | bitpuffin interesting, why even use IRC then? |
15:51:03 | * | faassen joined #nimrod |
15:54:49 | * | BitPuffin quit (Ping timeout: 252 seconds) |
16:09:47 | * | BitPuffin joined #nimrod |
16:25:06 | * | MFlamer joined #nimrod |
16:25:11 | * | Hannibal_Smith joined #nimrod |
16:28:24 | * | MFlamer quit (Remote host closed the connection) |
16:31:30 | * | BitPuffin quit (Read error: Operation timed out) |
16:41:05 | * | DAddYE joined #nimrod |
16:46:38 | * | DAddYE quit (Ping timeout: 240 seconds) |
17:05:08 | * | ics quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
17:46:49 | * | DAddYE joined #nimrod |
17:47:36 | * | ics joined #nimrod |
17:56:52 | * | ics quit (Quit: Textual IRC Client: www.textualapp.com) |
17:59:36 | * | Varriount is back |
18:05:18 | * | brson joined #nimrod |
18:35:03 | * | CarpNet quit (Quit: Leaving) |
19:04:02 | * | Hannibal_Smith quit (Quit: Sto andando via) |
19:26:14 | * | BitPuffin joined #nimrod |
19:26:28 | * | BitPuffin is learning about signal processing |
19:30:26 | Varriount | BitPuffin, any kind of signal in particular? |
19:31:17 | fowl | BitPuffin, fowltek/musings/ircd |
19:45:12 | * | Ricky_Ricardo quit (Quit: laptop[lid].close) |
19:45:27 | * | XAMPP joined #nimrod |
19:45:27 | * | XAMPP quit (Changing host) |
19:45:27 | * | XAMPP joined #nimrod |
19:53:11 | * | brson_ joined #nimrod |
19:56:24 | * | brson quit (Ping timeout: 246 seconds) |
19:56:43 | * | brson_ quit (Client Quit) |
19:57:00 | * | brson joined #nimrod |
20:23:06 | * | silven joined #nimrod |
20:57:59 | * | zanoni quit (Remote host closed the connection) |
21:01:31 | * | zanoni joined #nimrod |
21:03:38 | * | MFlamer joined #nimrod |
21:05:24 | * | gradha joined #nimrod |
21:06:48 | Araq | gradha: if you capture 3 groups and provide 2 elements, it's no wonder you get an out of bounds exception, right? |
21:07:26 | gradha | Araq: am I capturing three groups? |
21:07:45 | Araq | I think so you have 3 ((( |
21:08:34 | OrionPK | actually |
21:08:39 | OrionPK | the outer should count as a group |
21:08:53 | OrionPK | 4 groups |
21:09:07 | gradha | I was expecting the OR to count as a single capture |
21:09:07 | OrionPK | group 0 should be the whole match |
21:10:05 | gradha | maybe there is another way to group a sequence of characters without capturing? |
21:10:35 | OrionPK | just | |
21:10:40 | OrionPK | with no () around it |
21:10:44 | OrionPK | around each side |
21:11:01 | gradha | Araq: on the other hand, why does it work if the input is reversed? the number of captures should be the same, shouldn't it? |
21:13:42 | Araq | no idea |
21:13:54 | Araq | haven't looked that much at it :P |
21:14:23 | Araq | just give it 10 elements and see what they contain |
21:14:51 | gradha | the captured results seem all borked in both cases, or at least I have no idea why they return that |
21:15:17 | gradha | In the first case (a) entries 0 and 1 are filled with a |
21:15:32 | gradha | in the second case (beee) entries 0 and 2 are filled with beee, entry 1 with the empty string |
21:15:56 | OrionPK | gradha |
21:16:02 | gradha | OrionPK |
21:16:02 | OrionPK | I think your start parameter is wrong |
21:16:10 | OrionPK | let crash = test.find(regex, found) |
21:16:43 | OrionPK | start = found |
21:17:27 | gradha | OrionPK: I'm invoking the other method which accepts a matches openarray |
21:17:52 | OrionPK | oh my bad |
21:18:04 | OrionPK | start is 0, you're right |
21:18:14 | gradha | I'll at least update the issue to have 3 and dump the results, which seem weird |
21:19:32 | OrionPK | works with an array |
21:19:32 | OrionPK | not a seq |
21:19:37 | OrionPK | var found: array[0..2, string] |
21:19:45 | OrionPK | well |
21:19:48 | OrionPK | thats size 3 I guess |
21:20:22 | OrionPK | guess i need more coffee |
21:20:34 | gradha | OrionPK: or alcohol, I just had some |
21:20:38 | OrionPK | 3 seems right |
21:23:53 | OrionPK | actually 4 seems right |
21:23:59 | OrionPK | findall returns 4 results |
21:24:14 | BitPuffin | Varriount: well it's intended to be audio signals |
21:24:26 | BitPuffin | Varriount: but I'm using the OCW course which is more or less general purpose |
21:24:37 | BitPuffin | fowl: hmm? |
21:24:56 | BitPuffin | binding or what? |
21:24:58 | fowl | BitPuffin, i started an ircd, you can finish it :D |
21:25:00 | gradha | Hmm... I think I begin to understand the logic of found matches |
21:25:22 | BitPuffin | fowl: ah so it's not a binding to ircd? |
21:25:40 | fowl | no |
21:25:47 | BitPuffin | I see cool |
21:25:48 | fowl | is there really a project called ircd? |
21:26:03 | BitPuffin | well maybe, just that you have such a monolithic repo :P |
21:26:05 | * | Jackneill quit (Remote host closed the connection) |
21:26:08 | fowl | thats like writing a web browser and calling it browser |
21:26:12 | BitPuffin | I thinkk |
21:26:18 | BitPuffin | maybe not |
21:26:20 | BitPuffin | haha |
21:26:31 | BitPuffin | hmm maybe there isn't |
21:26:50 | OrionPK | gradha i think re lib in nimrod kinda sucks |
21:27:16 | fowl | BitPuffin, i have that huge repo because i was tired of having new repositories for each wrapper/library |
21:27:41 | fowl | so i'd just have one mega repo that focused on game-dev things |
21:28:09 | BitPuffin | fowl: makes it kind of inconvenient when certain things might require a separate repo |
21:28:14 | BitPuffin | because it's bigger etc |
21:28:16 | BitPuffin | but yeah |
21:28:19 | BitPuffin | I get why you'd wanna do that :P |
21:28:40 | BitPuffin | it's pretty annoying to grab all your projects when you format your computer etc |
21:29:18 | Araq | OrionPK: excuse me?! how come it sucks? |
21:29:34 | OrionPK | no named groups for one thing |
21:29:48 | fowl | BitPuffin, which ones do you think need their own repo? |
21:29:49 | OrionPK | dunno about features like non-capturing groups, negative look behinds, etc |
21:30:20 | OrionPK | I had issues the other day getting group 0, think I had to wrap it in an extra () |
21:30:23 | OrionPK | and use $1 |
21:30:30 | Araq | yeah well |
21:30:36 | BitPuffin | fowl: not that I have scanned for everything but SDL2 would be an example |
21:30:43 | Araq | I tried to improve the common stuff ... |
21:31:10 | fowl | BitPuffin, i'm going to put sdl2 in with sdl , eventually |
21:31:12 | fowl | maybe today |
21:31:26 | OrionPK | Is there a decent regex lib that could actually be ported or wrapped without requiring pcre.dll? |
21:31:35 | Araq | I still think my way makes more sense :P |
21:32:02 | BitPuffin | fowl: sounds like a sound idea :P |
21:32:15 | OrionPK | your way? |
21:32:24 | Araq | reExtended is a much saner default |
21:32:28 | gradha | I updated https://github.com/Araq/Nimrod/issues/679, certainly that was a PEBKAC but the outcome is not exactly right either |
21:32:42 | Araq | and explict () around the whole expression make more sense too |
21:33:03 | BitPuffin | fowl: hmm I guess the vector stuff doesn't matter as I already have linagl in babel which focuses hard on not only vectors and matrices but other useful 3d math stuff |
21:33:19 | OrionPK | if you say so... |
21:33:23 | BitPuffin | ode would be nice to be in its own lib |
21:33:42 | * | freezerburnv quit (Quit: freezerburnv) |
21:33:43 | OrionPK | but thats personal preference |
21:33:50 | BitPuffin | and assimp |
21:33:58 | fowl | i think ode should be bundled with chipmunk and bullet |
21:33:58 | OrionPK | if you put in an explicit () it should be group 1 |
21:34:02 | BitPuffin | and devil |
21:34:07 | fowl | :p |
21:34:12 | OrionPK | for consistency's sake |
21:34:21 | BitPuffin | h3d |
21:34:38 | BitPuffin | possibly nim3d, not sure |
21:34:43 | BitPuffin | and the gl helpers |
21:35:40 | gradha | OrionPK: if you want to you could try wrapping http://userguide.icu-project.org/strings/regexp, I think ICU is the alternative to PCRE |
21:35:57 | BitPuffin | and ircd of course |
21:36:21 | BitPuffin | fowl: sure a physics engines package isn't a terrible idea. I prefer them separate but it wouldn't be horrible to bundle them :P |
21:36:28 | BitPuffin | just that you usually only use one of them anyway |
21:36:37 | BitPuffin | but I mean it doesn't really take up much disk space |
21:36:50 | BitPuffin | (neither does fowltek but it's very multi purpose) |
21:36:54 | OrionPK | it'd be preferable to just emit a bunch of C as a lazy wrapper than require a dll imo |
21:37:22 | OrionPK | or I guess a "lazy port" |
21:37:40 | OrionPK | with a thin wrapper around that |
21:38:40 | OrionPK | gradha which standard does ICU use? |
21:38:55 | gradha | OrionPK: likely one of the twelve available (aka: no idea) |
21:39:39 | BitPuffin | OrionPK: you mean reimplementing in nimrod? |
21:40:09 | OrionPK | I mean emit """ bunch of c code here """" in a .nim file, then include that in a thin wrapper |
21:41:10 | OrionPK | it's still impure, but no external library dependency, right? |
21:41:53 | BitPuffin | oh you mean sort of "statically link" it |
21:42:05 | BitPuffin | I dunno that's kind of maintainance hell |
21:42:25 | OrionPK | why would you maintain it |
21:42:46 | OrionPK | it's a 3rd party library's code, you would maintain your wrapper of it |
21:44:09 | fowl | OrionPK, you dont need to emit any c to statically link |
21:44:34 | OrionPK | not talking about static linking |
21:44:53 | OrionPK | im talking about not using any lib/so/dll |
21:45:03 | fowl | so.. porting? |
21:45:08 | OrionPK | {.emit: "include <somelibrary.c>".} |
21:45:48 | fowl | then you have to build the whole project every time |
21:46:04 | OrionPK | every time what? |
21:46:13 | fowl | every time you compile your project that uses regexes |
21:46:33 | OrionPK | why is that? |
21:47:09 | OrionPK | somelibrary.c will still generate an object file |
21:47:10 | fowl | because it has to be compiled? |
21:47:45 | fowl | also you have to tell the compiler where these .c files are, which is only going to be true for you |
21:47:52 | OrionPK | no |
21:47:59 | OrionPK | the .nim and the .c file are together in your library |
21:48:23 | fowl | well try it and see if you can do it |
21:48:30 | OrionPK | I've done something similar |
21:48:40 | OrionPK | except I just emitted the entire contents of the c file, rather than an include |
21:49:48 | OrionPK | https://dl.dropboxusercontent.com/u/417554/kissdb.nim |
21:50:14 | gradha | OrionPK: you could use .compile. like https://github.com/gradha/epak/blob/master/nimrod/nimepak.nim#L13 |
21:50:26 | OrionPK | gradha that's probably better :) |
21:50:28 | OrionPK | thanks for that |
21:50:44 | fowl | {.emit: slurp(file).} |
21:51:03 | OrionPK | yeah I dont know these obscure pragmas very well |
21:51:03 | * | shodan45 joined #nimrod |
21:51:44 | OrionPK | thats exactly what Im talking about though, fowl gradha |
21:51:48 | * | shodan45 quit (Client Quit) |
21:52:12 | fowl | gradha, btw if you have a field like hndl* {.importc: "hndl".}: cint you only need {.importc.} |
21:53:48 | gradha | fowl: I don't remember doing that myself, that should be c2nim |
21:54:17 | gradha | TBH I don't remember doing anything with that repo at all… |
21:59:10 | * | shodan45 joined #nimrod |
21:59:27 | OrionPK | must have been a lot more alcohol |
21:59:39 | gradha | yep, good night, have to watch some porn |
21:59:48 | * | gradha quit (Quit: bbl, need to watch https://www.youtube.com/watch?v=2IzR_ClTE8Y again) |
22:06:02 | BitPuffin | exactly, that the .c and .nim is in the same is the reason I think it's maintainance hell |
22:06:17 | BitPuffin | if a new version comes out with bug and security fixes you need to update the source |
22:06:55 | * | shodan45 quit (Quit: Konversation terminated!) |
22:06:56 | dom96 | I like how honest gradha is |
22:15:10 | Araq | BitPuffin: yeah but chances are also 1) it introduces new bugs and security issues |
22:15:57 | Araq | 2) the issues don't affect you because you don't use "obsure feature" in the first place |
22:28:24 | * | freezerburnv joined #nimrod |
22:37:27 | OrionPK | Araq is there a c2nim directive to skip function bodies and do {.nodecl} ? |
22:37:44 | * | MFlamer quit (Remote host closed the connection) |
22:38:27 | BitPuffin | Araq: Well okay 1) it might but those can be fixed in future updates which you have to manually add once again, 2) maybe not you, but other people using your wrapper might run in to them |
22:38:38 | BitPuffin | someone else is already doing the job of updating packages etc |
22:38:41 | * | freezerburnv quit (Quit: freezerburnv) |
22:38:51 | BitPuffin | why would you take that upon yourself to do |
22:38:55 | BitPuffin | yeah I can see the advantages |
22:39:00 | BitPuffin | but I don't really know |
22:39:12 | BitPuffin | I think it's better to just depend on a library |
22:40:14 | OrionPK | oops you dont have libgio-2.0-0.dll |
22:41:04 | OrionPK | or oops, you dont have openssl.dll |
22:41:29 | BitPuffin | so grab them |
22:42:23 | BitPuffin | OrionPK: why not at compile time download them and compile them, that way you'll always have the latest, ofc it shouldn't download each time you compile |
22:42:50 | OrionPK | that would be silly |
22:42:59 | BitPuffin | why? |
22:43:03 | OrionPK | you dont know if something has changed that the library you're using doesnt support |
22:43:14 | OrionPK | you want to use the version the library or app was built against |
22:44:23 | BitPuffin | well okay then download a specific version then, at least it will be less maintainence hell if you can just update an url |
23:02:03 | * | Boscop quit (Read error: Connection reset by peer) |
23:02:28 | * | Boscop joined #nimrod |
23:02:28 | * | Boscop quit (Changing host) |
23:02:28 | * | Boscop joined #nimrod |
23:03:33 | * | freezerburnv joined #nimrod |
23:06:38 | * | musicalchair quit (Ping timeout: 272 seconds) |
23:07:09 | * | OrionPK quit (Ping timeout: 250 seconds) |
23:07:31 | * | musicalchair joined #nimrod |
23:20:32 | * | OrionPK joined #nimrod |
23:32:49 | * | freezerburnv quit (Quit: freezerburnv) |
23:38:16 | * | mflamer joined #nimrod |
23:47:15 | * | BitPuffin quit (Ping timeout: 272 seconds) |
23:53:20 | Varriount | dom96, ever thought of using libgit2 for nimbuild? |
23:54:15 | * | familiar125 joined #nimrod |
23:54:45 | * | freezerburnv joined #nimrod |