<< 04-09-2016 >>

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:16PMunchYay, got my ninepatches working
00:36:53PMunchNow I have 100% LibGDX texture pack coverage in my game library :)
00:53:09*nsf joined #nim
01:00:31PMunchHmm, 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:12ftsfPMunch, making a game framework for nim?
01:38:18PMunchYup
01:38:24PMunchOr, not really a framework
01:38:27PMunchMore like a library
01:38:34ftsfcool
01:38:51PMunchI'm using yglukhov's SDL template for cross-platform
01:39:12PMunchSo everything is running on PC, Android, and (theoretically) iOS
01:39:30ftsfawesome!
01:39:30*Tony_Stark joined #nim
01:39:47ftsfyeah i'm using the SDL2 wrapper and got it to compile for win,linux,osx,android
01:39:57PMunchThe 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:02PMunchSo far I have full texture pack support, including animations and ninepatches
01:41:08PMunchhttp://github.com/libgdx/libgdx/wiki/Texture-packer
01:41:10ftsfi made a little pico8 style api on top of SDL and nim
01:41:12PMunchPretty much everything listed there
01:41:17ftsfsweet
01:41:26*chemist69 joined #nim
01:41:47PMunchAnd I've got animations working for simple texture strips as well
01:42:07PMunchAlso wrote something for collisions
01:42:27PMunchIt takes two rects and gives you the overlap rect and a "direction" of collision
01:42:39PMunchThe direction is based on the nature of the overlap
01:42:44ftsf*nods*
01:42:54ftsfI started some collision/physics stuff too
01:43:00PMunchSo if rectangle two covers the entire top of rectangle one that's a north collision
01:43:22PMunchIf it covers the right corner it's a north-west collision
01:43:30PMunchMakes handling collisions a lot easier
01:43:41ftsfyeah
01:45:20PMunchHaven't done anything for physics yet
01:46:09PMunchI 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:32ftsfyeah, text rendering is really important to have
01:46:52PMunchSDL already has text rendering stuff. But it's a bit cumbersome to use
01:47:14PMunchSo I might write a fairly simple wrapper around that to make it easier
01:48:30PMunchWhat've you got for physics so far? Anything cool?
01:49:19ftsfgot a convex poly collision detection and contact point finder based on dyn4j
01:49:33PMunchcontact point finder?
01:49:56ftsfafter you find if there's a collision, you probably want to know where the contact points between the two polygons are
01:50:51PMunchAaah right
01:50:58PMunchYeah, that is handy
01:52:27PMunchRight now my project is a bit of a mess
01:52:33ftsfmmm mine too =)
01:52:46PMunchTried to force the texture packer to create some hard scenarios so it contains about 5 different packs
01:52:49ftsfi've just been making a game and adding stuff as needed
01:52:58PMunchPretty much the same here :)
01:53:09PMunchBeen copying my game MannBarSchwein
01:54:09ftsfcute
01:54:10PMunchTomorrow I'll write a simple test file to show of all the different features, then I'll update my repository
01:55:16PMunchMaybe we should pool our resources instead of doing twice the work :P
01:55:42ftsfhttp://static.impbox.net/vektor2089.mp4 making this racing game
01:56:03ftsfyeah, could be some overlap, although mine is focused on pixel pushing rather than textures
01:56:11PMunchNice, looks cool
01:56:40PMunchI can see that
01:58:37PMunchdyn4j seems cool by the way
01:59:06ftsfi've never used it, but they have some great blog posts explaining stuff
01:59:33ftsfand the code is quite readable
02:01:36PMunchMight 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:36PMunchBut I'm off to bed now
02:21:53PMunchI'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:22dom96Good morning
09:56:43*Kaini quit (Remote host closed the connection)
09:57:00*Kaini joined #nim
09:57:09Araqhey
09:59:09dom96Trying HN again, maybe we'll have more luck today
10:01:32*endragor joined #nim
10:04:00FromGitter<Araq> @endragor I'm trying to fix https://github.com/nim-lang/Nim/issues/4687
10:04:35FromGitter<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:51FromGitter<Araq> but I dunno if that suffices for your problems?
10:05:04FromGitter<Araq> it's really hard to do anything else though
10:05:21FromGitter<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:21dom96Just went on our analytics, noticed somebody is searching for "old nim downloads"
10:07:35dom96we should definitely add a listing of them to our new site
10:07:48Araqno.
10:08:00dom96why not?
10:08:06Araqnewer releases are always better
10:08:42Araqproduce better code, more bugs fixed, new exciting features added, old cruft removed
10:09:17dom96sure, but sometimes you may need an older release
10:09:44dom96maybe you're too lazy to update to the newer one
10:09:50dom96or just don't have enough time right now
10:10:15Araqok then
10:10:40AraqI thought it's common knowledge you can just change the version number in the download URL
10:10:53Araqwe keep every old version on the server
10:11:52*hendi quit (Ping timeout: 264 seconds)
10:14:25dom96Some 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:40FromGitter<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:04dom96This 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:42hohlerdecan repr(...) be used to display a c struct used via importc pragma?
11:18:35Araqhohlerde: I think so
11:28:33*planhths joined #nim
11:53:41hohlerdemhm, 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:57hohlerdeI 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:01dom96hohlerde: repr needs to know the structure of the struct, otherwise it doesn't know what fields it should display
12:40:34hohlerdeyep, found that out by reading the FFi section in Nim in Action :-)
12:41:41dom96cool :D
12:47:32*fredrik92 joined #nim
12:47:37*yglukhov joined #nim
12:49:25kierdoes Nim have a benchmarking framework that I should use for writing benchmarks?
12:50:36dom96kier: 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:30kierdom96: 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:52flyxhmm, it seems like the streams package is completely unsupported in JS and there is no easy way to change that
14:52:20flyxthat means that I can't get NimYAML to compile to JS currently
14:54:20*endragor quit (Remote host closed the connection)
14:54:32flyxwould it somehow be possible to implement copyMem for JS so that StringStream can work?
14:56:52*endragor joined #nim
15:03:02dom96flyx: why don't you simply offer a procedure that accepts a string?
15:03:05*rtr_ joined #nim
15:03:11dom96instead of a StringStream
15:04:00flyxdom96: a) Stream seams more versatile and b) lexbase needs a Stream
15:04:04*arnetheduck quit (Ping timeout: 264 seconds)
15:05:57dom96The stream interface doesn't seem well suited for JS
15:06:05dom96It uses pointers for example
15:06:23dom96Perhaps that could be changed just for the JS backend
15:07:12dom96Personally, I think that all libraries should offer both a proc load(str: string) and proc load(stream: Stream).
15:07:24dom96Importing streams just to pass in a strings is irritating
15:07:30dom96*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:35flyxdom96: well I *can* provide a proc that takes a string, but then I would need to convert it to a StringStream internally
15:10:46flyxthat would not fix the problem, obviously
15:10:59dom96lexbase should be fixed to support a ``string`` too.
15:12:24*nsf joined #nim
15:12:44flyxwell I *could* patch lexbase to take a string instead of a Stream for JS
15:13:00*desophos joined #nim
15:13:01flyxproviding both would need to separate interface from implementation
15:13:45flyxI'll try something
15:14:16*yglukhov quit (Ping timeout: 264 seconds)
15:14:22*Trustable joined #nim
15:18:15dom96flyx: 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:52Araqstreams need to work with JS, yglukhov made some patches for it iirc
15:30:06Araqaccepting a string instead is a non solution
15:30:17Araqsince streams are lazy, strings are not
15:32:30dom96https://salt.bountysource.com/teams/nim/updates/5-results-of-the-2016-nim-community-survey
15:32:47*PMunch quit (Quit: leaving)
15:32:53hohlerdewhat was the name of the company again that used nim and unreal 4? xored software ?
15:33:13dom96Araq: Sure, but it's a good enough work around.
15:35:02FromGitter<endragor> hohlerde: yes, that’s where I work. Why do you ask?
15:35:58*endragor quit (Quit: Leaving...)
15:40:25hohlerdeI 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:38hohlerdeso if you don't mind, I'll name your company
15:41:21hohlerdeI'll also link the github project
15:43:16hohlerdeendragor: 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:29dom96hohlerde: where are you giving the presentation?
15:43:38hohlerdeat my company
15:44:11hohlerdeso, it is not really public, but I will release the slides afterwards on github
15:45:16FromGitter<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:30flyxdom96: well, patching lexbase to not use Streams in JS was easy enough: https://github.com/nim-lang/Nim/pull/4709
16:05:08flyxif Araq wants strings to work in JS, that would obviously need to be patched again as soon as they work
16:05:12flyx*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:29krux02what is the best way build a static map that takes a type and returns a value.
16:20:42krux02In c++ I would do template specialization. But that's not an option in nim
16:21:13flyxkrux02: 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:02krux02flyx: thanks, I thought I tried it, but apparently it didn't work
16:24:10krux02I don't know what I did wrong there
16:24:15*Demon_Fox joined #nim
16:25:08*Ven_ quit (Client Quit)
16:25:17FromGitter<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:41krux02endrago: 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:24krux02you can imagine static const values in a templated class
16:34:05krux02(in c++ )
16:34:26*Ven_ quit (Client Quit)
16:34:39krux02or wait, do you main a compileTime variable?
16:35:09krux02one 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:56ngcHello. 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:49ngcNim version is 0.14.2
16:59:26FromGitter<endragor> ngc: make sure you import `typetraits` module
17:01:01ngcFromGitter: thanks that is the trick. seams manual is not up to date for this specific case.
17:01:02FromGitterngc, 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:27FromGitter<krux02> I like this irc gitter bridge
17:26:55krux02It brings us all closer together with the tools we like, but without splitting the community
17:27:36FromGitter<krux02> I even have a gitter irc bridge that connects to my gitter account (this one)
17:29:18FromGitter<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:57Araqping flyx
20:34:37*rtr_ quit (Remote host closed the connection)
20:35:14PMunchHow do you import from a folder higher up than the current file?
20:35:57Araqimport "../foo/bar"
20:36:12PMunchAha
20:36:14Araqor 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:14baabelfishdoes "nimble install nimsuggest" fail for anyone else?
20:57:43baabelfish/home/bbl/.nimble/pkgs/compiler-0.14.3/compiler/options.nim(349, 17) Error: undeclared field: 'toLowerAscii'
20:59:08Araqbaabelfish: works for me, but I have heard that a lot
20:59:27Araqtry nim e compile_without_nimble from nimsuggest's repo
21:00:01baabelfishwhere is toLowerAscii even supposed to be?
21:00:14Araqstrutils from Nim devel
21:00:19baabelfishah
21:01:07baabelfishnimsuggest.nim(16, 16) Error: cannot open 'compiler/options'
21:01:34baabelfishI'm using versions from archlinux repo (nim 0.14.2 and nimble 0.7.4)
21:01:47Araqmy setup is generally projects/nim, projects/nimsuggest etc. so use siblings and nim devel and everything works out
21:02:31AraqI think patching nimsuggest to use compiler-0.14.2 and not .3 should also work. dom96?
21:02:51AraqI mean patching nimsuggest's nimble package info
21:03:12baabelfishI would imagine nimble is the default way to install nimsuggest?
21:03:19*endragor joined #nim
21:04:23AraqI 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:40baabelfishAraq: moving to the core would be even better if you ask me
21:05:02Araqeventually I will patch Nimble and push my patch through
21:05:36Araqby the might of my dictatorship superpowers ...
21:05:41Araq;-)
21:05:50baabelfishhah
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:07baabelfishHow would one write a macro that takes a proc and constructs a tuple matching the proc paramteres?
21:40:17Araqmacros.getType and friends can be used to access proc parameters
21:40:41*yglukhov joined #nim
21:42:08mccSo 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:13mcc(I mean in javascript)
21:42:31mccWhere 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:18Araqmcc: compiler/jsgen.nim
21:48:37mccthanks
21:48:52*endragor joined #nim
21:50:54mccIncidentally, 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:31mccI 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:33mccHowever, 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:24mcclike 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:50Araqthe Nim typechecks eats 'cast'
21:56:07mcchmm
21:56:49mcclet 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:15mccone 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:45mccoh and both Mat4x4 and Vec4 are Distinct
22:09:54mccWhen 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:18mccI 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:32mcchowever obviously pointers only exist in the c gen
22:13:16mcchowever, 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:40mcchm, it's an array of 4 float arrays
22:20:44mccin testing
22:26:55*brechtm quit (Read error: Connection reset by peer)
22:27:01*brechtm_ joined #nim
22:32:21PMunchHmm, 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