00:00:41 | * | irrequietus quit () |
00:24:49 | * | chemist69 quit (Ping timeout: 265 seconds) |
00:25:12 | * | Snircle joined #nim |
00:26:46 | * | chemist69 joined #nim |
00:36:16 | PMunch | Yay, got my ninepatches working |
00:36:53 | PMunch | Now I have 100% LibGDX texture pack coverage in my game library :) |
00:53:09 | * | nsf joined #nim |
01:00:31 | PMunch | Hmm, maybe my next goal should be an easier text rendering system |
01:12:26 | * | nsf quit (Quit: WeeChat 1.5) |
01:15:56 | * | krux02 quit (Remote host closed the connection) |
01:17:20 | * | yglukhov joined #nim |
01:22:04 | * | yglukhov quit (Ping timeout: 264 seconds) |
01:28:19 | * | chemist69 quit (Ping timeout: 260 seconds) |
01:29:58 | * | endragor joined #nim |
01:34:04 | * | endragor quit (Ping timeout: 244 seconds) |
01:38:12 | ftsf | PMunch, making a game framework for nim? |
01:38:18 | PMunch | Yup |
01:38:24 | PMunch | Or, not really a framework |
01:38:27 | PMunch | More like a library |
01:38:34 | ftsf | cool |
01:38:51 | PMunch | I'm using yglukhov's SDL template for cross-platform |
01:39:12 | PMunch | So everything is running on PC, Android, and (theoretically) iOS |
01:39:30 | ftsf | awesome! |
01:39:30 | * | Tony_Stark joined #nim |
01:39:47 | ftsf | yeah i'm using the SDL2 wrapper and got it to compile for win,linux,osx,android |
01:39:57 | PMunch | The functions I've created so far are helper functions for creating games using the SDL framework |
01:40:28 | * | Tony_Stark quit (Client Quit) |
01:41:02 | PMunch | So far I have full texture pack support, including animations and ninepatches |
01:41:08 | PMunch | http://github.com/libgdx/libgdx/wiki/Texture-packer |
01:41:10 | ftsf | i made a little pico8 style api on top of SDL and nim |
01:41:12 | PMunch | Pretty much everything listed there |
01:41:17 | ftsf | sweet |
01:41:26 | * | chemist69 joined #nim |
01:41:47 | PMunch | And I've got animations working for simple texture strips as well |
01:42:07 | PMunch | Also wrote something for collisions |
01:42:27 | PMunch | It takes two rects and gives you the overlap rect and a "direction" of collision |
01:42:39 | PMunch | The direction is based on the nature of the overlap |
01:42:44 | ftsf | *nods* |
01:42:54 | ftsf | I started some collision/physics stuff too |
01:43:00 | PMunch | So if rectangle two covers the entire top of rectangle one that's a north collision |
01:43:22 | PMunch | If it covers the right corner it's a north-west collision |
01:43:30 | PMunch | Makes handling collisions a lot easier |
01:43:41 | ftsf | yeah |
01:45:20 | PMunch | Haven't done anything for physics yet |
01:46:09 | PMunch | I think I will do more complex collisions (other shapes, polygons, pixel perfect) then maybe do a text rendering thing to make that easier |
01:46:32 | ftsf | yeah, text rendering is really important to have |
01:46:52 | PMunch | SDL already has text rendering stuff. But it's a bit cumbersome to use |
01:47:14 | PMunch | So I might write a fairly simple wrapper around that to make it easier |
01:48:30 | PMunch | What've you got for physics so far? Anything cool? |
01:49:19 | ftsf | got a convex poly collision detection and contact point finder based on dyn4j |
01:49:33 | PMunch | contact point finder? |
01:49:56 | ftsf | after you find if there's a collision, you probably want to know where the contact points between the two polygons are |
01:50:51 | PMunch | Aaah right |
01:50:58 | PMunch | Yeah, that is handy |
01:52:27 | PMunch | Right now my project is a bit of a mess |
01:52:33 | ftsf | mmm mine too =) |
01:52:46 | PMunch | Tried to force the texture packer to create some hard scenarios so it contains about 5 different packs |
01:52:49 | ftsf | i've just been making a game and adding stuff as needed |
01:52:58 | PMunch | Pretty much the same here :) |
01:53:09 | PMunch | Been copying my game MannBarSchwein |
01:54:09 | ftsf | cute |
01:54:10 | PMunch | Tomorrow I'll write a simple test file to show of all the different features, then I'll update my repository |
01:55:16 | PMunch | Maybe we should pool our resources instead of doing twice the work :P |
01:55:42 | ftsf | http://static.impbox.net/vektor2089.mp4 making this racing game |
01:56:03 | ftsf | yeah, could be some overlap, although mine is focused on pixel pushing rather than textures |
01:56:11 | PMunch | Nice, looks cool |
01:56:40 | PMunch | I can see that |
01:58:37 | PMunch | dyn4j seems cool by the way |
01:59:06 | ftsf | i've never used it, but they have some great blog posts explaining stuff |
01:59:33 | ftsf | and the code is quite readable |
02:01:36 | PMunch | Might have to look into it if I get to doing physics |
02:07:15 | * | endragor joined #nim |
02:09:13 | * | pie_ quit (Ping timeout: 265 seconds) |
02:11:43 | * | endragor quit (Ping timeout: 255 seconds) |
02:21:36 | PMunch | But I'm off to bed now |
02:21:53 | PMunch | I'll share my latest changes tomorrow :) |
02:21:54 | * | PMunch quit (Quit: leaving) |
02:43:49 | * | dddddd quit (Quit: Hasta otra..) |
02:48:54 | * | endragor joined #nim |
02:53:29 | * | endragor quit (Ping timeout: 260 seconds) |
02:53:39 | * | fastrom joined #nim |
02:58:02 | * | fastrom quit (Client Quit) |
03:07:59 | * | endragor joined #nim |
03:11:29 | * | kulelu88 quit (Quit: Leaving) |
03:12:12 | * | endragor quit (Ping timeout: 244 seconds) |
03:19:26 | * | yglukhov joined #nim |
03:24:03 | * | yglukhov quit (Ping timeout: 265 seconds) |
03:26:25 | * | rtr_ joined #nim |
03:34:08 | * | endragor joined #nim |
03:41:40 | * | Demon_Fox quit (Quit: Leaving) |
03:53:26 | * | endragor quit (Remote host closed the connection) |
03:58:46 | * | endragor joined #nim |
04:11:07 | * | endragor quit (Remote host closed the connection) |
04:13:49 | * | endragor joined #nim |
04:30:54 | * | fastrom joined #nim |
04:31:11 | * | fastrom1 joined #nim |
04:34:14 | * | fastrom quit (Read error: Connection reset by peer) |
04:50:29 | * | endragor quit (Remote host closed the connection) |
04:53:16 | * | endragor joined #nim |
05:06:58 | * | kssreeram joined #nim |
05:19:18 | * | filwit quit (Quit: Konversation terminated!) |
05:21:05 | * | yglukhov joined #nim |
05:26:39 | * | yglukhov quit (Ping timeout: 276 seconds) |
05:33:34 | * | bungoman joined #nim |
05:48:36 | * | mnemonikk left #nim ("Changed major mode") |
05:49:24 | * | space-wizard joined #nim |
05:49:51 | * | space-wizard quit (Client Quit) |
05:53:39 | * | endragor quit (Remote host closed the connection) |
05:56:05 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
05:59:02 | * | endragor joined #nim |
06:05:33 | * | kssreeram joined #nim |
06:36:47 | * | pie_ joined #nim |
06:39:02 | * | pie_ quit (Changing host) |
06:39:02 | * | pie_ joined #nim |
06:41:30 | * | endragor quit (Read error: Connection reset by peer) |
06:47:30 | * | nsf joined #nim |
06:50:12 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
06:51:33 | * | kssreeram joined #nim |
06:51:53 | * | yglukhov joined #nim |
06:53:10 | * | kssreeram quit (Client Quit) |
06:53:29 | * | yglukhov quit (Remote host closed the connection) |
06:53:45 | * | yglukhov joined #nim |
06:54:38 | * | kssreeram joined #nim |
06:56:25 | * | rtr_ quit (Remote host closed the connection) |
07:01:25 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
07:02:11 | * | kssreeram joined #nim |
07:03:51 | * | kssreeram quit (Client Quit) |
07:18:21 | * | GangstaCat joined #nim |
07:23:43 | * | mcc quit (Quit: Connection closed for inactivity) |
07:27:33 | * | yglukhov quit (Remote host closed the connection) |
07:28:34 | * | endragor joined #nim |
07:58:01 | * | yglukhov joined #nim |
08:09:04 | * | chemist69 quit (Ping timeout: 260 seconds) |
08:09:27 | * | chemist69 joined #nim |
08:29:34 | * | rtr_ joined #nim |
08:50:19 | * | kssreeram joined #nim |
08:50:19 | * | kssreeram quit (Client Quit) |
08:52:26 | * | yglukhov quit (Remote host closed the connection) |
08:54:24 | * | yglukhov joined #nim |
09:40:49 | * | endragor quit (Remote host closed the connection) |
09:54:21 | * | Kaini joined #nim |
09:54:22 | dom96 | Good morning |
09:56:43 | * | Kaini quit (Remote host closed the connection) |
09:57:00 | * | Kaini joined #nim |
09:57:09 | Araq | hey |
09:59:09 | dom96 | Trying HN again, maybe we'll have more luck today |
10:01:32 | * | endragor joined #nim |
10:04:00 | FromGitter | <Araq> @endragor I'm trying to fix https://github.com/nim-lang/Nim/issues/4687 |
10:04:35 | FromGitter | <Araq> I'm adding a rather primitive analysis, if the assignment to 'result' is the first statement in the proc body 'T result = ...' is generated |
10:04:51 | FromGitter | <Araq> but I dunno if that suffices for your problems? |
10:05:04 | FromGitter | <Araq> it's really hard to do anything else though |
10:05:21 | FromGitter | <Araq> if the assignment is an 'if' then the scoping will be wrong |
10:06:09 | * | endragor quit (Ping timeout: 276 seconds) |
10:06:14 | * | hendi joined #nim |
10:07:21 | dom96 | Just went on our analytics, noticed somebody is searching for "old nim downloads" |
10:07:35 | dom96 | we should definitely add a listing of them to our new site |
10:07:48 | Araq | no. |
10:08:00 | dom96 | why not? |
10:08:06 | Araq | newer releases are always better |
10:08:42 | Araq | produce better code, more bugs fixed, new exciting features added, old cruft removed |
10:09:17 | dom96 | sure, but sometimes you may need an older release |
10:09:44 | dom96 | maybe you're too lazy to update to the newer one |
10:09:50 | dom96 | or just don't have enough time right now |
10:10:15 | Araq | ok then |
10:10:40 | Araq | I thought it's common knowledge you can just change the version number in the download URL |
10:10:53 | Araq | we keep every old version on the server |
10:11:52 | * | hendi quit (Ping timeout: 264 seconds) |
10:14:25 | dom96 | Some people might be able to work it out, but it's not exactly immediately obvious |
10:16:31 | * | yglukhov quit (Remote host closed the connection) |
10:22:52 | * | endragor joined #nim |
10:27:21 | * | yglukhov joined #nim |
10:27:50 | * | yglukhov quit (Remote host closed the connection) |
10:27:58 | * | pafmaf joined #nim |
10:29:40 | FromGitter | <endragor> @Araq thanks for taking time to look at that issue. Yeah, I think with that approach I could at least add workarounds (assign some default value to `result` at the beginning of the proc) |
10:43:36 | * | endragor quit (Remote host closed the connection) |
10:47:39 | * | krux02 joined #nim |
10:49:50 | * | endragor joined #nim |
10:54:31 | * | endragor quit (Ping timeout: 265 seconds) |
11:03:04 | dom96 | This is so disappointing. HN doesn't seem interested at all in the survey results :\ |
11:11:31 | * | bjz_ joined #nim |
11:12:33 | * | bjz quit (Ping timeout: 250 seconds) |
11:16:42 | hohlerde | can repr(...) be used to display a c struct used via importc pragma? |
11:18:35 | Araq | hohlerde: I think so |
11:28:33 | * | planhths joined #nim |
11:53:41 | hohlerde | mhm, for me it doesn't work. using the c struct via importc doesn't give any information with repr. translating the c struct to nim and using that I get the information I expect via repr. I am trying a simple example with libusb. I just want to get the version of the library. |
11:54:57 | hohlerde | I guess I am doing something wrong, need to do some more research. |
12:09:08 | * | arnetheduck joined #nim |
12:13:47 | * | planhths quit (Ping timeout: 265 seconds) |
12:23:16 | * | dddddd joined #nim |
12:26:57 | * | desophos quit (Read error: Connection reset by peer) |
12:29:30 | * | planhths joined #nim |
12:30:01 | dom96 | hohlerde: repr needs to know the structure of the struct, otherwise it doesn't know what fields it should display |
12:40:34 | hohlerde | yep, found that out by reading the FFi section in Nim in Action :-) |
12:41:41 | dom96 | cool :D |
12:47:32 | * | fredrik92 joined #nim |
12:47:37 | * | yglukhov joined #nim |
12:49:25 | kier | does Nim have a benchmarking framework that I should use for writing benchmarks? |
12:50:36 | dom96 | kier: nothing in the stdlib, try searching Nimble |
12:55:06 | * | stisa joined #nim |
12:55:22 | * | rtr_ quit (Remote host closed the connection) |
13:39:30 | kier | dom96: thanks, will have a look in a bit |
13:42:21 | * | rtr_ joined #nim |
13:43:57 | * | PMunch joined #nim |
13:45:52 | * | nsf quit (Quit: WeeChat 1.5) |
14:03:52 | * | yglukhov quit (Remote host closed the connection) |
14:06:11 | * | yglukhov joined #nim |
14:11:14 | * | yglukhov quit (Remote host closed the connection) |
14:17:12 | * | yglukhov joined #nim |
14:22:06 | * | themagician joined #nim |
14:22:48 | * | Matthias247 joined #nim |
14:36:48 | * | yglukhov quit (Remote host closed the connection) |
14:37:26 | * | yglukhov joined #nim |
14:40:42 | * | okami joined #nim |
14:42:14 | * | yglukhov quit (Ping timeout: 260 seconds) |
14:44:16 | * | endragor joined #nim |
14:48:54 | * | rtr_ quit (Ping timeout: 258 seconds) |
14:50:06 | * | endragor quit (Remote host closed the connection) |
14:51:12 | * | endragor joined #nim |
14:51:52 | flyx | hmm, it seems like the streams package is completely unsupported in JS and there is no easy way to change that |
14:52:20 | flyx | that means that I can't get NimYAML to compile to JS currently |
14:54:20 | * | endragor quit (Remote host closed the connection) |
14:54:32 | flyx | would it somehow be possible to implement copyMem for JS so that StringStream can work? |
14:56:52 | * | endragor joined #nim |
15:03:02 | dom96 | flyx: why don't you simply offer a procedure that accepts a string? |
15:03:05 | * | rtr_ joined #nim |
15:03:11 | dom96 | instead of a StringStream |
15:04:00 | flyx | dom96: a) Stream seams more versatile and b) lexbase needs a Stream |
15:04:04 | * | arnetheduck quit (Ping timeout: 264 seconds) |
15:05:57 | dom96 | The stream interface doesn't seem well suited for JS |
15:06:05 | dom96 | It uses pointers for example |
15:06:23 | dom96 | Perhaps that could be changed just for the JS backend |
15:07:12 | dom96 | Personally, I think that all libraries should offer both a proc load(str: string) and proc load(stream: Stream). |
15:07:24 | dom96 | Importing streams just to pass in a strings is irritating |
15:07:30 | dom96 | *a string |
15:08:21 | * | yglukhov joined #nim |
15:08:59 | * | endragor quit (Remote host closed the connection) |
15:09:22 | * | endragor joined #nim |
15:10:35 | flyx | dom96: well I *can* provide a proc that takes a string, but then I would need to convert it to a StringStream internally |
15:10:46 | flyx | that would not fix the problem, obviously |
15:10:59 | dom96 | lexbase should be fixed to support a ``string`` too. |
15:12:24 | * | nsf joined #nim |
15:12:44 | flyx | well I *could* patch lexbase to take a string instead of a Stream for JS |
15:13:00 | * | desophos joined #nim |
15:13:01 | flyx | providing both would need to separate interface from implementation |
15:13:45 | flyx | I'll try something |
15:14:16 | * | yglukhov quit (Ping timeout: 264 seconds) |
15:14:22 | * | Trustable joined #nim |
15:18:15 | dom96 | flyx: patch it so that it accepts a string for every backend, not just JS. |
15:21:20 | * | yglukhov joined #nim |
15:22:23 | * | pafmaf quit (Ping timeout: 250 seconds) |
15:29:52 | Araq | streams need to work with JS, yglukhov made some patches for it iirc |
15:30:06 | Araq | accepting a string instead is a non solution |
15:30:17 | Araq | since streams are lazy, strings are not |
15:32:30 | dom96 | https://salt.bountysource.com/teams/nim/updates/5-results-of-the-2016-nim-community-survey |
15:32:47 | * | PMunch quit (Quit: leaving) |
15:32:53 | hohlerde | what was the name of the company again that used nim and unreal 4? xored software ? |
15:33:13 | dom96 | Araq: Sure, but it's a good enough work around. |
15:35:02 | FromGitter | <endragor> hohlerde: yes, that’s where I work. Why do you ask? |
15:35:58 | * | endragor quit (Quit: Leaving...) |
15:40:25 | hohlerde | I would like to use that screenshot araq showed at poly con for my own presentation and ppl probably ask for the name of the company |
15:40:38 | hohlerde | so if you don't mind, I'll name your company |
15:41:21 | hohlerde | I'll also link the github project |
15:43:16 | hohlerde | endragor: when I looked at your company's site it doesn't look like a gaming-only company. that's why I also asked. |
15:43:29 | dom96 | hohlerde: where are you giving the presentation? |
15:43:38 | hohlerde | at my company |
15:44:11 | hohlerde | so, it is not really public, but I will release the slides afterwards on github |
15:45:16 | FromGitter | <endragor> hohlrede: sure, no problem. Our site is quite outdated, work on the new one is in progress. |
15:57:48 | * | M-max is now known as TheManiac |
15:58:31 | * | Ven_ joined #nim |
15:59:45 | * | Ven_ quit (Client Quit) |
16:00:42 | * | Ven_ joined #nim |
16:03:20 | * | Ven_ quit (Client Quit) |
16:04:30 | flyx | dom96: well, patching lexbase to not use Streams in JS was easy enough: https://github.com/nim-lang/Nim/pull/4709 |
16:05:08 | flyx | if Araq wants strings to work in JS, that would obviously need to be patched again as soon as they work |
16:05:12 | flyx | *Streams |
16:06:28 | * | Ven_ joined #nim |
16:07:09 | * | chemist69 quit (Disconnected by services) |
16:07:14 | * | chemist69_ joined #nim |
16:07:34 | * | Ven_ quit (Client Quit) |
16:11:09 | * | Ven_ joined #nim |
16:12:12 | * | Ven_ quit (Client Quit) |
16:12:34 | * | Ven_ joined #nim |
16:13:46 | * | Ven_ quit (Client Quit) |
16:16:39 | * | Ven_ joined #nim |
16:19:29 | krux02 | what is the best way build a static map that takes a type and returns a value. |
16:20:42 | krux02 | In c++ I would do template specialization. But that's not an option in nim |
16:21:13 | flyx | krux02: probably a list of templates: template getValue(t: typedesc[int]): string = "int" template getValue(t: typedesc[string]): string = "string" |
16:21:34 | * | Ven_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
16:24:02 | * | Ven_ joined #nim |
16:24:02 | krux02 | flyx: thanks, I thought I tried it, but apparently it didn't work |
16:24:10 | krux02 | I don't know what I did wrong there |
16:24:15 | * | Demon_Fox joined #nim |
16:25:08 | * | Ven_ quit (Client Quit) |
16:25:17 | FromGitter | <endragor> krux02: I think a macro that uses a `{.compileTime.}` table is also an option. |
16:25:33 | * | Ven_ joined #nim |
16:26:47 | * | Ven_ quit (Client Quit) |
16:29:40 | * | Ven_ joined #nim |
16:31:47 | * | Ven_ quit (Client Quit) |
16:32:41 | krux02 | endrago: I also had that idea, but for me that is not an option, becaus I don't have a single location where I know how to set all entries, I have a macro hat creates types and needs to fill all values for that type |
16:33:21 | * | Ven_ joined #nim |
16:33:24 | krux02 | you can imagine static const values in a templated class |
16:34:05 | krux02 | (in c++ ) |
16:34:26 | * | Ven_ quit (Client Quit) |
16:34:39 | krux02 | or wait, do you main a compileTime variable? |
16:35:09 | krux02 | one that can be changed at compile time, but not at runtime |
16:35:51 | * | csoriano joined #nim |
16:38:18 | * | Ven_ joined #nim |
16:38:25 | * | yglukhov quit (Remote host closed the connection) |
16:39:22 | * | Ven_ quit (Client Quit) |
16:39:48 | * | Ven_ joined #nim |
16:41:25 | * | mcc joined #nim |
16:42:29 | * | chemist69_ is now known as chemist69 |
16:44:21 | * | Ven_ quit (Client Quit) |
16:47:16 | * | Ven_ joined #nim |
16:47:20 | * | endragor joined #nim |
16:48:20 | * | Ven_ quit (Client Quit) |
16:48:41 | * | Ven_ joined #nim |
16:49:58 | * | Ven_ quit (Client Quit) |
16:51:48 | * | ngc joined #nim |
16:52:03 | * | Ven_ joined #nim |
16:52:52 | * | Ven_ quit (Client Quit) |
16:53:49 | * | Ven_ joined #nim |
16:53:54 | * | dddddd quit (Read error: Connection reset by peer) |
16:54:03 | * | dddddd_ joined #nim |
16:56:31 | * | elrood joined #nim |
16:56:56 | ngc | Hello. I have a question regarding getting type names as string. The manual states that this should work with T.name, where T is a typedesc instance. But I am getting an undeclared field name error. Example at http://nim-lang.org/docs/manual.html#special-types-typedesc leads to same error. |
16:57:49 | ngc | Nim version is 0.14.2 |
16:59:26 | FromGitter | <endragor> ngc: make sure you import `typetraits` module |
17:01:01 | ngc | FromGitter: thanks that is the trick. seams manual is not up to date for this specific case. |
17:01:02 | FromGitter | ngc, I'm a bot, *bleep, bloop*. I relay messages between here and https://gitter.im/nim-lang/Nim |
17:05:51 | * | rtr_ quit (Remote host closed the connection) |
17:08:04 | * | Amrykid quit (Ping timeout: 260 seconds) |
17:08:33 | * | fredrik92 quit (Ping timeout: 250 seconds) |
17:09:06 | * | Amrykid joined #nim |
17:15:23 | * | nairobi joined #nim |
17:21:37 | * | jackv quit (Ping timeout: 252 seconds) |
17:22:18 | * | dddddd_ quit (Ping timeout: 276 seconds) |
17:26:18 | * | stisa quit (Quit: quitting...) |
17:26:27 | FromGitter | <krux02> I like this irc gitter bridge |
17:26:55 | krux02 | It brings us all closer together with the tools we like, but without splitting the community |
17:27:36 | FromGitter | <krux02> I even have a gitter irc bridge that connects to my gitter account (this one) |
17:29:18 | FromGitter | <endragor> @krux02 didn’t see your reply btw… yeah I meant compile-time variable. it doesn’t even exist in runtime iirc |
17:29:21 | * | krux02 quit (Quit: Verlassend) |
17:30:06 | * | jackv joined #nim |
17:30:41 | * | dddddd_ joined #nim |
17:32:42 | * | yglukhov joined #nim |
17:41:58 | * | endragor quit (Remote host closed the connection) |
17:51:08 | * | xet7 quit (Quit: Leaving) |
17:52:16 | * | fredrik92 joined #nim |
18:00:44 | * | Ven_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
18:01:49 | * | xet7 joined #nim |
18:02:52 | * | endragor joined #nim |
18:07:26 | * | endragor quit (Ping timeout: 244 seconds) |
18:08:52 | * | pie_ quit (Ping timeout: 264 seconds) |
18:22:36 | * | libman joined #nim |
18:27:58 | * | rtr_ joined #nim |
18:37:19 | * | bungoman quit (Read error: Connection reset by peer) |
18:37:33 | * | yglukhov quit (Remote host closed the connection) |
18:37:45 | * | bungoman joined #nim |
18:38:39 | * | bungoman quit (Max SendQ exceeded) |
18:42:12 | * | pie_ joined #nim |
18:46:47 | * | yglukhov joined #nim |
18:48:49 | * | endragor joined #nim |
18:53:28 | * | endragor quit (Ping timeout: 258 seconds) |
18:55:14 | * | dddddd_ is now known as dddddd |
18:55:47 | * | nairobi quit (Remote host closed the connection) |
19:12:12 | * | nsf quit (Quit: WeeChat 1.5) |
19:20:15 | * | tdc joined #nim |
19:27:13 | * | endragor joined #nim |
19:29:26 | * | PMunch joined #nim |
19:29:59 | * | PMunch quit (Remote host closed the connection) |
19:30:42 | * | PMunch joined #nim |
19:31:33 | * | endragor quit (Ping timeout: 240 seconds) |
19:36:02 | * | tdc_ joined #nim |
19:38:03 | * | fredrik92 quit (Ping timeout: 250 seconds) |
19:38:26 | * | tdc is now known as Guest20807 |
19:39:02 | * | Guest20807 quit (Ping timeout: 244 seconds) |
19:42:04 | * | tdc_ quit (Quit: Leaving) |
19:46:38 | * | fredrik92 joined #nim |
19:59:19 | * | pie_ quit (Changing host) |
19:59:20 | * | pie_ joined #nim |
20:04:35 | * | abeaumont_ joined #nim |
20:05:02 | * | planhths quit (Quit: Konversation terminated!) |
20:08:42 | * | Sentreen quit (Quit: WeeChat 1.4) |
20:10:56 | * | Sentreen joined #nim |
20:12:17 | * | libman quit (Ping timeout: 250 seconds) |
20:13:15 | * | libman joined #nim |
20:27:57 | Araq | ping flyx |
20:34:37 | * | rtr_ quit (Remote host closed the connection) |
20:35:14 | PMunch | How do you import from a folder higher up than the current file? |
20:35:57 | Araq | import "../foo/bar" |
20:36:12 | PMunch | Aha |
20:36:14 | Araq | or play with your --path in some config |
20:40:31 | * | nsf joined #nim |
20:44:19 | * | yglukhov quit (Remote host closed the connection) |
20:57:14 | baabelfish | does "nimble install nimsuggest" fail for anyone else? |
20:57:43 | baabelfish | /home/bbl/.nimble/pkgs/compiler-0.14.3/compiler/options.nim(349, 17) Error: undeclared field: 'toLowerAscii' |
20:59:08 | Araq | baabelfish: works for me, but I have heard that a lot |
20:59:27 | Araq | try nim e compile_without_nimble from nimsuggest's repo |
21:00:01 | baabelfish | where is toLowerAscii even supposed to be? |
21:00:14 | Araq | strutils from Nim devel |
21:00:19 | baabelfish | ah |
21:01:07 | baabelfish | nimsuggest.nim(16, 16) Error: cannot open 'compiler/options' |
21:01:34 | baabelfish | I'm using versions from archlinux repo (nim 0.14.2 and nimble 0.7.4) |
21:01:47 | Araq | my setup is generally projects/nim, projects/nimsuggest etc. so use siblings and nim devel and everything works out |
21:02:31 | Araq | I think patching nimsuggest to use compiler-0.14.2 and not .3 should also work. dom96? |
21:02:51 | Araq | I mean patching nimsuggest's nimble package info |
21:03:12 | baabelfish | I would imagine nimble is the default way to install nimsuggest? |
21:03:19 | * | endragor joined #nim |
21:04:23 | Araq | I dunno. I like to move nimsuggest back into the core, but dom96 is against it and I don't want to complain about Nimble not supporting my workflow again. |
21:04:40 | baabelfish | Araq: moving to the core would be even better if you ask me |
21:05:02 | Araq | eventually I will patch Nimble and push my patch through |
21:05:36 | Araq | by the might of my dictatorship superpowers ... |
21:05:41 | Araq | ;-) |
21:05:50 | baabelfish | hah |
21:06:53 | * | simplyianm_ joined #nim |
21:07:31 | * | endragor quit (Ping timeout: 250 seconds) |
21:16:55 | * | Sentreen quit (Read error: Connection reset by peer) |
21:17:49 | * | Sentreen joined #nim |
21:18:34 | * | rtr_ joined #nim |
21:25:48 | * | brechtm joined #nim |
21:27:23 | * | endragor joined #nim |
21:28:30 | * | fredrik92 quit (Read error: Connection reset by peer) |
21:31:33 | * | endragor quit (Ping timeout: 240 seconds) |
21:31:58 | * | ngc quit (Quit: Leaving) |
21:39:07 | baabelfish | How would one write a macro that takes a proc and constructs a tuple matching the proc paramteres? |
21:40:17 | Araq | macros.getType and friends can be used to access proc parameters |
21:40:41 | * | yglukhov joined #nim |
21:42:08 | mcc | So let's say I am interested in trying to modify seq[] such that it is backed by a TypedArray. I have not modified the Nim source yet so I'm not sure I can pull this off, but I'm curious. |
21:42:13 | mcc | (I mean in javascript) |
21:42:31 | mcc | Where in the source should I look to see how different kinds of types get represented during js codegen? |
21:45:12 | * | yglukhov quit (Ping timeout: 250 seconds) |
21:47:18 | Araq | mcc: compiler/jsgen.nim |
21:48:37 | mcc | thanks |
21:48:52 | * | endragor joined #nim |
21:50:54 | mcc | Incidentally, I still feel like a lot of problems in bridging to JavaScript would be helped if there were some type which is "seq, but add() is banned" |
21:51:31 | mcc | I think I know how to set it up so that when you create a seq[], you can convert that to a JavaScript TypedArray without a copy |
21:52:33 | mcc | However, if you *return* a TypedArray from a JavaScript function, then there's not really any specific Nim type that cleanly maps to |
21:53:15 | * | endragor quit (Ping timeout: 258 seconds) |
21:55:04 | * | libman quit (Quit: Leaving.) |
21:55:24 | mcc | like one could make classes for the various typed arrays, but now you'll have this weird situation where array(5,int) and Int32Array are the same type but the Nim typechecker doesn't know this |
21:55:50 | Araq | the Nim typechecks eats 'cast' |
21:56:07 | mcc | hmm |
21:56:49 | mcc | let me think about that |
21:57:13 | * | bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
21:59:56 | * | elrood quit (Quit: Leaving) |
22:06:34 | * | endragor joined #nim |
22:09:15 | mcc | one more question... i'm looking at GLM/nim... and it has this type Mat4x4, which is an array(4, Vec4) where Vec4 is an array(4, float) |
22:09:45 | mcc | oh and both Mat4x4 and Vec4 are Distinct |
22:09:54 | mcc | When using js gen, will a Mat4x4 be represented in memory as an array of 16 floats? Or as an array of 4 arrays of 4 floats? |
22:10:11 | * | fredrik92 joined #nim |
22:10:47 | * | endragor quit (Ping timeout: 244 seconds) |
22:12:18 | mcc | I ask because the intended way of using Mat4x4 in this library is to get a pointer to it and pass that to glUniformMatrix4fv |
22:12:32 | mcc | however obviously pointers only exist in the c gen |
22:13:16 | mcc | however, if it turns out that an array of float arrays is represented in memory by nim as one long float array, then i can cast to that |
22:15:51 | * | bjz joined #nim |
22:20:40 | mcc | hm, it's an array of 4 float arrays |
22:20:44 | mcc | in testing |
22:26:55 | * | brechtm quit (Read error: Connection reset by peer) |
22:27:01 | * | brechtm_ joined #nim |
22:32:21 | PMunch | Hmm, in the sdl2 library there is a setHint function, which maps to the SDL_SetHint function. But where are all the SDL_HINT_* definitions? |
22:33:38 | * | bjz quit (Read error: Connection reset by peer) |
22:36:24 | * | andi__ joined #nim |
22:39:22 | * | chemist69 quit (Ping timeout: 250 seconds) |
22:42:29 | * | chemist69 joined #nim |
22:46:30 | * | filwit joined #nim |
22:49:41 | * | andi__ quit (Quit: ChatZilla 0.9.92 [Firefox 47.0.1/20160623154057]) |
23:02:11 | * | couven92 joined #nim |
23:03:21 | * | freddy92 joined #nim |
23:03:39 | * | endragor joined #nim |
23:06:03 | * | fredrik92 quit (Ping timeout: 250 seconds) |
23:07:06 | * | couven92 quit (Ping timeout: 250 seconds) |
23:08:13 | * | endragor quit (Ping timeout: 265 seconds) |
23:09:25 | * | csoriano quit (Quit: csoriano) |
23:19:14 | * | filwit quit (Quit: Konversation terminated!) |
23:19:31 | * | simplyianm_ quit (Quit: Connection closed for inactivity) |
23:27:00 | * | endragor joined #nim |
23:31:22 | * | endragor quit (Ping timeout: 250 seconds) |
23:38:26 | * | Matthias247 quit (Read error: Connection reset by peer) |
23:42:46 | * | yglukhov joined #nim |
23:48:06 | * | yglukhov quit (Ping timeout: 244 seconds) |
23:51:41 | * | freddy92 quit (Quit: Shutting down...) |
23:52:27 | * | fredrik92 joined #nim |