<< 14-04-2017 >>

00:03:45*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
00:04:07zachcarterI need to try to sucker someone into making a game with frag :P
00:14:18*Trioxin joined #nim
00:14:53vivusdoes the "write" option for files allow mixing of variables and strings? eg. somefile.write(somevar, " , " somevar2) ?
00:16:57TrioxinDoes Nim's javascript option convert to JS or typescript?
00:17:07vivusTrioxin: JS IIRC
00:17:57Trioxinthat's cool. I'd think typescript would have been easier.
00:18:21FromGitter<Varriount> Trioxin: But doesn't typescript just convert down to JS?
00:18:37Trioxinyeah
00:19:09Trioxinso maybe it does use typescript intermediately
00:19:46Trioxinholy crap.. https://github.com/pragmagic/nimue4
00:20:19Trioxinbeautiful
00:20:29zachcartermeh
00:20:30FromGitter<Varriount> endragor, someone's praising you.
00:20:34vivusTrioxin: why would you want it to output typescript?
00:20:42zachcartertypescript is sweet and all
00:20:48TrioxinI don't. I was just thinking about it.
00:20:51zachcarteroh
00:21:22FromGitter<Varriount> trioxin: The type checking is done before code generation, so it doesn't really make much of a difference.
00:21:27demi-isn't typescript also valid javascript?
00:21:43FromGitter<Varriount> Other way around, I think
00:21:44zachcarterI don’t think so
00:21:56vivusis this a correct statement: "It compiles directly into C++, so almost all the features UE4 provides can be made available in Nim." ?
00:22:11demi-er, i mean; if it is valid javascript it is valid typescript
00:22:31FromGitter<Varriount> vivus: Yes, Nim can compile to C++, which is then compiled to binary.
00:22:42FromGitter<Varriount> vivus: Though, Nim compiles to C by default.
00:22:59vivuswhy so many compile-to options?
00:23:07FromGitter<barcharcraz> also the way you can exploit that to wrap something like unreal is somewhat unstable
00:23:14FromGitter<barcharcraz> or rather .... messy
00:23:25FromGitter<barcharcraz> well most are Cish
00:24:47zachcarteranyone know what that website is that lets you create sound effects stupid easily?
00:26:57TrioxinI wish I got to use Nim more often. I'm always wishing it had a bigger user base. That's the only setback when compared to something like Go. At least as much as it can be said to be good to be able to pull a hairball into your codebase
00:27:04FromGitter<Varriount> Ugh, I know a sound effect generator program, let me see if I can dig it up.
00:27:26zachcarterThere’s one that’s web based Varriount
00:27:43vivusTrioxin: I thought mind-share mattered too, then I started to understand the verbose documentation and nim is working for me so far
00:28:05zachcarterI dunno I started with Nim in like Dec / January
00:28:06vivusGo is a bit odd if you're coming from a dynamic language
00:28:16zachcarterI had used it several years ago just playing around with it
00:28:22zachcarteralready built quite a bit with it
00:28:23FromGitter<Varriount> zachcarter: http://thirdcog.eu/apps/cfxr
00:28:33FromGitter<Varriount> Also http://drpetter.se/project_sfxr.html
00:28:44FromGitter<Varriount> and http://www.bfxr.net/
00:28:52zachcarterthank you
00:28:58FromGitter<Varriount> The last one work in the browser, if you have flash.
00:29:01FromGitter<Varriount> I think
00:29:09Trioxinso far I've used Nim to make a forensics software for a Pharma company. That's all so far.
00:29:21zachcarterI’ve made this :
00:29:28zachcarterhttp://fragworks.io/
00:29:47FromGitter<Varriount> Trioxin: I might be using it to generator JSON in the future.
00:30:04zachcarterthe fact that it’s so easy to bind to C makes building things with Nim quickly, realistic
00:30:08FromGitter<Varriount> My problem is that most of the stuff I do requires AWS support.
00:30:27FromGitter<Varriount> and its infrastructure work
00:30:29zachcarterVarriount: My job has a hackathon coming up
00:30:29Trioxin2d game framework! good for mobile too?
00:30:38FromGitter<barcharcraz> I'm in the same boat Varriount
00:30:40vivusTrioxin: that's no small feat
00:30:42FromGitter<barcharcraz> I do 3D work
00:30:47FromGitter<barcharcraz> and everything is c++
00:30:48demi-zachcarter: yeah, that is a huge benefit
00:30:51Trioxini see ARM there
00:31:06zachcarterthere’s no reason it couldn’t run on android / iOS though I hav’ent played with IOS yet
00:31:06FromGitter<Varriount> @barcharcraz At least you might be able to use Nim's C++ generator
00:31:09Trioxinandroid-arm
00:31:11zachcarterI’ve gotten it runing on android
00:31:15FromGitter<Varriount> And/or the 3d library bindings
00:31:40zachcarterdemi-: I was going to say that I’m thinking about using that time to get that AWS lambda prototype built
00:31:58demi-zachcarter: if those libraries are either provided as source or in binary form for ios there is no reason why it wouldn't work
00:32:04zachcarterTrioxin: I’ve gotten my hello world example running on android, I’d have to do some coding for file i/o stuff to get everything working on android
00:32:10demi-especially since it bridges to objc pretty well already
00:32:11TrioxinI use phonegap for all my mobile needs but that could change
00:32:27Trioxinplus python has some options
00:33:19zachcarterbarcharcraz: have you seen bgfx?
00:33:36FromGitter<barcharcraz> I have
00:33:39FromGitter<barcharcraz> and I like it
00:33:44zachcarterI’m using it for frag
00:33:54FromGitter<barcharcraz> but I need a good pathtracer
00:33:59FromGitter<barcharcraz> also the fbx SDK
00:34:06zachcartersomeone wrote a fbx pipeline with it
00:34:08zachcarterbut yeah
00:34:15FromGitter<barcharcraz> I need more than assimp
00:34:18zachcarterright
00:34:41FromGitter<barcharcraz> since I want to for example export/import splines and NURBS without meshing them
00:34:59zachcartergotcha
00:35:16FromGitter<barcharcraz> also I'm not sure I could go without libigl
00:35:40FromGitter<barcharcraz> holy shit though. I've spent all day dealing with getting my project to build again on windows
00:35:54zachcarter:D gotta love that
00:41:14vivuszachcarter: is the app 'slow' on android?
00:41:26zachcarterruns at 60fps
00:41:40zachcarterI haven’t done much testing on mobile though
00:42:03zachcarterthis framework is like months old, I’m working with a lot of C libraries so it’s very portable but I haven’t done much testing on different platforms beyond small prototypes
00:42:08zachcarterright now I’m building samples for desktop
00:42:21vivuswhich framework?
00:42:42zachcartererr which app were you referring to?
00:42:49zachcarterwhat I said I tested on android?
00:42:50vivusandroid
00:43:10zachcarterI’m building a game dev framework using Nim - http://fragworks.io/
00:43:18zachcarterthat’s the only thing I’ve run on android recently :P
00:43:25zachcarterthe hello world example for it
00:44:27Trioxinwell a lot of ppl would use it for mobile if it worked. 2d mobile games can make a lot of $. tower defense!
00:44:46zachcarterwell my goal is to make it work :)
00:45:00zachcarterI’m the lone developer though working on it, so it’s slow progress
00:45:09zachcarterI can show you gifs of what I’m working on right now if you’d like to see it
00:45:13zachcarteror I can record one rather
00:45:29zachcarterjust a stupid space invaders clone
00:47:07Trioxinit sucks. I slave away at marketing software mostly and I think if I just put my mind to a cool mobile game I'd probably make good $ but I just can't bring myself to the mindset of "This is going to work if I spend my time"
00:48:09Trioxinwould be nice though. I guess that's why India and Russia exist
00:51:35*devted joined #nim
00:55:00*Trioxin quit (Ping timeout: 258 seconds)
00:55:03*Trioxin2 joined #nim
00:55:37*bjz joined #nim
00:57:03*Trioxin2 is now known as Trioxin
01:03:33*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
01:04:26Trioxinthat's not good for the Unreal wrapper. I just noticed.. build:failing
01:04:55Trioxinnever seen that on github before
01:14:33FromGitter<Varriount> Trioxin: What is good is that the last commit was ~16 hours ago
01:15:45Trioxinah
01:17:57Trioxinhmm. must compile unreal manually on linux. seems okay
01:18:46*devted quit (Quit: Sleeping.)
01:22:19Trioxindamn. this page says to input my github username but when I do it says it doesn't exist https://wiki.unrealengine.com/Building_On_Linux
01:25:43FromGitter<Varriount> Trioxin: I don't get any error.
01:25:58*bjz joined #nim
01:26:14Trioxinstrange. verified my unreal acct. logged into github. input my username. same
01:26:31FromGitter<Varriount> Trioxin: Even in an incognito tab. Can you show a screenshot of what it's asking you?
01:27:34Trioxinah. it's case sensitive
01:36:17*def-pri-pub joined #nim
01:40:39zachcarterdef-pri-pub: o/
01:53:02*chemist69 quit (Disconnected by services)
01:53:08*chemist69_ joined #nim
01:54:41*gokr quit (Ping timeout: 260 seconds)
01:54:46def-pri-pubzachcarter: hiya
01:55:05zachcarterdoing anything with Nim lately?
01:58:45def-pri-pubnot really.
01:59:08def-pri-pubI've been meaning too, but I moved into a new apartment about a week and a half ago so I've been trying to get my life a little in order.
01:59:19def-pri-pubI've also been making attempts at learning UE4
01:59:33zachcarterah nice
01:59:48def-pri-pubI might give those UE4 bindings a change when I understand the engine a bit more
02:00:03def-pri-pub[Shamless Plug]: I published this book review today: https://16bpp.net/blog/post/book-review-unreal-engine-4-for-beginners
02:00:07zachcartersaw that
02:01:41zachcarterI got a website for frag now
02:02:59def-pri-publinky?
02:04:31FromGitter<Varriount> def-pri-pub: In your post, it's "latter", not "later"
02:06:10FromGitter<Varriount> def-pri-pub: zachcarter's game site is at http://fragworks.io/
02:07:22zachcartersorry trying to work on this space invaders clone and chat at the same time
02:09:15def-pri-pubneat. I'm probably going to be a bit spotty on the Nim scene for the next 2+ months. Other things I want to do and some life events.
02:09:22def-pri-pubI might make some animation tools though.
02:10:24def-pri-pub(pssst: The `samples` link doesn't work)
02:11:02zachcarteryeah I know
02:11:23zachcarterit’s just going to point at an empty section of doc for now so I’m not too worried about it
02:11:41zachcarteranimation tools would be awesome :P
02:23:35krux02zachcarter: it seems like you take it really serious to make entertainment in Nim
02:23:56zachcarterit would be cool krux02
02:24:29krux02well I just entered the chat, so I don't know the history, but didn't you already port an animation system to Nim?
02:24:34krux02or two
02:25:20zachcarterI did - spine
02:26:13def-pri-pubOh, when I said animation, I meant tools for doing pencil & paper animation. Probably not computer animation.
02:26:42krux02for my library it seems no good future everybody who I know of who tried it failed to get it running
02:26:48krux02opengl stuff
02:27:21krux02even though the last time, also the driver reportedto support the ARB_direct_state extension
02:37:15*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
02:39:19vivusawesome framework zachcarter
02:39:25zachcarterthank you vivus
02:46:47*Snircle_ joined #nim
02:48:10*Snircle quit (Read error: Connection reset by peer)
02:55:56*peted quit (Read error: Connection reset by peer)
03:01:05*libman quit (Quit: Connection closed for inactivity)
03:15:43*def-pri-pub quit (Quit: leaving)
03:15:44*bjz joined #nim
03:32:04*peted joined #nim
03:36:31*peted quit (Read error: Connection reset by peer)
03:37:20*peted joined #nim
04:06:39*zachcarter quit (Quit: zachcarter)
04:27:00*Nobabs27 quit (Quit: Leaving)
05:53:42pydsigner krux02 yeah I have no idea what was up with that
06:04:45vivusis anybody familiar with rewriting data back to SQL using db_mysql ?
06:05:02*couven92 joined #nim
06:06:05couven92Good morning!
06:07:24couven92I have a question, when designing a macro, it does not matter what type I specify as arguments, inside the macro everything is a NimNode... how do I get the string argument as a string value, the int argument as an int, etc.?
06:10:55pydsignerCheck the kind
06:11:23pydsignerand then just pull out .strVal .intVal etc
06:15:09couven92pydsigner, I also found that you can mark the arguments as static as well... that looked even better
06:15:17couven92http://stackoverflow.com/questions/31269770/nim-macro-parameters
06:17:43pydsignera Ah
06:17:53pydsigner* Ah nice
06:26:30*nsf joined #nim
06:42:20*Trustable joined #nim
06:44:53*Snircle_ quit (Quit: Textual IRC Client: www.textualapp.com)
06:53:19*sz0 joined #nim
07:02:00*rokups joined #nim
07:12:10*vivus quit (Quit: Leaving)
07:20:02*shashlick quit (Ping timeout: 240 seconds)
07:20:57*shashlick joined #nim
07:31:02*cspar quit (Ping timeout: 240 seconds)
07:31:10*Trioxin quit (Quit: Konversation terminated!)
07:47:21dom96zachcarter: nice job on http://fragworks.io/ :)
07:51:41FromGitter<couven92> In the Windows API we often have these `ifdef UNICODE` blocks and the `TYPEA` and `TYPEW` for the ANSI and Unicode types respectively, in Nim we use the `useWinAnsi` define (e.g. in `winlean.nim`). So I wrote myself a macro that expands a stmt list into two stmt lists, or wraps them into a when stmt (depending on what you want to do). https://gist.github.com/couven92/ddf95aefa6c41aca8404e916008921d7 ⏎ Is there a way that
07:51:41FromGitter... the macros so that I don't have to call the macro with strings, but with clean expressions? See the example in the comments of the gist.
07:52:00*couven92 quit (Quit: Disconnecting)
07:55:35FromGitter<couven92> @dom96 this is, BTW, to make it easier to do the SChannel implementation, it's going places (but slowly because of family obligations during easter :P )
07:57:26dom96Try removing the static and changing the 'string' to 'typed' in AnsiWideReplaceRule
07:57:58*Vladar joined #nim
08:09:29cheatfatecouven92, just don't use ASCII functions, use only UNICODE
08:15:01FromGitter<couven92> cheatfate: nope, I'll do it like in stdlib thank you very much. Besides, this is good macro training for me! :)
08:20:26FromGitter<Varriount> @couven92 I actually had a PR at one point that introduced a helper macro to wrap Windows API functions.
08:20:27cheatfatecouven92: i think this -duseWinAnsi was introduced like 5+ years ago, and must be deprecated because it will break international releases
08:21:31cheatfateall modern windows api can even don't have appropriate ANSI alternative
08:21:57*yglukhov joined #nim
08:21:57FromGitter<Varriount> @couven92 In addition to the two standard Unicode and ansi variants, the macro would generate an auto-converting procedure to turn regular Nim strings into wide strings
08:22:50*yglukhov quit (Remote host closed the connection)
08:24:30dom96couven92: did my advice help? :)
08:24:38dom96btw I'm happy that you're still working on this :D
08:26:49*yglukhov joined #nim
08:28:59FromGitter<couven92> Sorry, I had to make breakfast, I'll try it out asap
08:29:34*fastrom quit (Quit: Leaving.)
08:29:48*krux02 quit (Remote host closed the connection)
08:30:07FromGitter<couven92> But with typed, can I still use TChar which is just a placeholder and not actually a valid declaration?
08:30:11*fastrom joined #nim
08:31:18FromGitter<couven92> @Varriount yeah the string template certainly seems useful, right now you'll have to cast all strings back and forth if you actually want to use them...
08:32:37FromGitter<Varriount> Typed expressions have to actually be valid. It's only untyped expressions that can have things like unknown symbols
08:33:30*zachcarter joined #nim
08:34:29*fastrom quit (Ping timeout: 252 seconds)
08:34:37dom96You guys know of any Nim benchmarks that would look good on Nim's website? :)
08:34:49*zachcarter quit (Read error: Connection reset by peer)
08:35:32*zachcarter joined #nim
08:56:07*Arrrr joined #nim
08:56:07*Arrrr quit (Changing host)
08:56:07*Arrrr joined #nim
08:57:49*gokr joined #nim
09:04:26*sz0 quit (Quit: Connection closed for inactivity)
09:13:03*zachcarter quit (Quit: zachcarter)
09:17:37FromGitter<stisa> uhuh nice, when did we get a nim implementation of the new website?
09:20:14Araqha ^
09:21:10AraqI did it, to kick someone's butt.
09:21:22cheatfatei even refreshed my browser but didn't see any changes
09:21:35Araqand now there is a lovely dispute about what technology to use.
09:22:10AraqI argued Nim program + Nim .tmpl file + Nim's RST means people don't have to learn anything to contribute.
09:22:25Araqdom argues Jekyll is a "standard".
09:22:49Araqcheatfate: it's not online yet.
09:22:57FromGitter<stisa> Araq : what about a compromise? Maybe a nim program that uses mustache templates?
09:23:12Araqwe found a compromise.
09:25:01cheatfateThere must be no compromises, if programming language can't be used to program own website, then maybe it will be dead soon
09:25:20FromGitter<stisa> oh alright then :) So (if I get the time), I should contribute to the nim version right?
09:26:16dom96That depends on whether I can finish the Jekyll version by Monday.
09:26:33cheatfateand if Nim even has Javascript backend, for what reason site can't be programmed with Nim?
09:27:25FromGitter<TiberiumPY> This site doesn't need many JS
09:27:29FromGitter<TiberiumPY> It's static
09:27:44Araqcheatfate: there are no reasons. just different personal preferences.
09:29:37Araqboth solutions can accomplish everything in a reasonable amount of time. Jekyll is built on the idea that HTML, CSS and JS are good ideas. Nim's website generator says "fuck this shit".
09:31:25ldleworkoh brother
09:32:27cheatfateAraq, its nonsense to use tool to generate static website for programming language
09:34:33ldleworkBecause it should be generated by hand...?
09:35:11dom96I really don't feel like arguing, but I will state my reasoning for sticking with Jekyll. I want to limit the amount of wheels we have to reinvent. The NimWeb tool is nice and all, but it is missing many features and I'd rather spend time working on Nim (or on this website's design) than implementing features in it.
09:35:38ldleworkdom96: nonsense
09:35:41FromGitter<stisa> btw dom96, I made some fixes to download and sponsors pages a couple of days ago, they're in https://github.com/stisa/website/tree/stisa
09:35:56FromGitter<stisa> I was going to work on it more, but I'll wait for now
09:36:30dom96Thank you, i'll take a look but I will be editing the sponsors page anyway.
09:36:46cheatfateldlework, it should be generated by Nim, or if programmer is too lazy to make website generator, then it must be generated by hand
09:47:26*fastrom joined #nim
09:48:13dom96Calinou: I summon thee.
09:48:40dom96Long shot but maybe Calinou reads the IRC logs.
09:49:55ldleworkcheatfate: sorry that reasoning is not compelling to me in the slightest
09:52:13ldleworkgithub.com runs a jekyll service for their github pages. that means, all you need is to check in changes. and then github automatically builds and hosts the site. its 0 maintenance in the most veracious sense.
09:54:52cheatfateldlework, but github is not a programming language, isnt it? so github can use any platform to host github pages. But you know `github` will not use `gitlab` services for any reason...
09:59:39ldleworkI have no idea what you're saying
10:00:24ldleworkthere's 900 bugs for nim and I run into compiler issues all the time. for perspective.
10:01:54ldleworkcomparatively, the rust compiler is near sentient and capable of empathy...
10:02:16cheatfateldlework, so go and use rust and stop crying here
10:02:51ldleworkThat would be the reaction if you were to completely miss my point that any available time should be spent improving our dear language rather than making yet another site generator.
10:07:12*Arrrr1 joined #nim
10:07:12*Arrrr quit (Disconnected by services)
10:07:27*Arrrr1 quit (Client Quit)
10:07:56*Arrrr joined #nim
10:12:10*fastrom quit (Quit: Leaving.)
10:24:35*arnetheduck joined #nim
10:24:38*Trustable quit (Remote host closed the connection)
10:37:50*zachcarter joined #nim
10:38:37*zachcarter quit (Read error: Connection reset by peer)
10:38:59*zachcarter joined #nim
10:40:56Arrrrprocvars are a pain.
11:13:32*Arrrr quit (Ping timeout: 260 seconds)
11:16:45*bjz_ joined #nim
11:18:08*bjz quit (Ping timeout: 240 seconds)
11:19:40zachcarterhttp://imgur.com/a/UUcF0
11:29:18*Arrrr joined #nim
11:42:41dom96zachcarter: play around with the GIF converter, there is a way to get rid of those artifacts.
11:42:55zachcarterwill do
11:49:03zachcarteris there a way to take sequence A and if it contains any items which are present in sequence B, delete them?
11:49:38zachcarterI guess I could do sequtils.filter not in b
11:51:11FromGitter<stisa> zachcarter I think filter return a new seq, keepIf changes the seq
11:51:25zachcarterah okay thank you! perfect
12:09:34*zachcarter quit (Quit: zachcarter)
12:21:28*vlad1777d joined #nim
12:37:39*gangstacat joined #nim
12:49:22*cspar joined #nim
12:53:13*gokr quit (Quit: Leaving.)
13:06:54FromGitter<Varriount> zachcarter: What's wrong with a nice 'for' loop.
13:18:11*zachcarter joined #nim
13:18:34*cspar quit (Read error: Connection reset by peer)
13:41:15*Araq left #nim (#nim)
13:44:01*cheatfate left #nim ("Leaving")
13:54:37*dexterk_dMuib joined #nim
13:54:37*dexterk quit (Disconnected by services)
13:54:38*dexterk_dMuib is now known as dexterk
14:04:23*bjz_ quit (Ping timeout: 255 seconds)
14:04:46*bjz joined #nim
14:16:18*zachcarter quit (Quit: zachcarter)
14:17:07*zachcarter joined #nim
14:19:42*devted joined #nim
14:23:43*zachcarter quit (Quit: zachcarter)
14:24:48*zachcarter joined #nim
14:25:21*zachcarter quit (Client Quit)
14:42:52*zachcarter joined #nim
14:46:42*zachcarter quit (Client Quit)
15:00:02*zachcarter joined #nim
15:02:09FromGitter<TiberiumPY> by the way, if I understand correctly, all templates in sequtils results in simple for loops?
15:02:26FromGitter<TiberiumPY> ah yes, looking into source code
15:31:38FromGitter<mratsim> hey there
15:31:52FromGitter<mratsim> @TiberiumPY Template are always inlined at compile time
15:33:01FromGitter<mratsim> @Varriount for loop are not functional, you are confusing the intent (filtering) and the implemention (looping) ;)
15:47:21*nsf quit (Quit: WeeChat 1.7)
15:51:10*euantor quit ()
15:51:24*euantor joined #nim
15:51:45adeohluwa10:22 AM <Araq> I argued Nim program + Nim .tmpl file + Nim's RST means people don't have to learn anything to contribute. >> I'm in favor of this, it shows off Nim too
15:52:23*zachcarter quit (Quit: zachcarter)
15:53:24*zachcarter joined #nim
15:53:29adeohluwait's kinda of how most programming languages use python's sphinx u get the feeling the solutions in their Lang must have been crappy :)
15:53:36*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
15:55:40FromGitter<Varriount> tmpl?
16:05:45*sz0 joined #nim
16:06:00*dexterk_rpHrF joined #nim
16:06:00*dexterk quit (Disconnected by services)
16:06:01*dexterk_rpHrF is now known as dexterk
16:12:18FromGitter<stisa> @Varriount this I think : https://nim-lang.org/docs/filters.html
16:25:48*arnetheduck quit (Ping timeout: 268 seconds)
16:41:37*yglukhov quit (Remote host closed the connection)
16:46:22*yglukhov joined #nim
16:48:20*yglukhov_ joined #nim
16:48:44*yglukhov_ quit (Remote host closed the connection)
16:48:55*yglukhov quit (Read error: Connection reset by peer)
16:49:00*yglukhov_ joined #nim
16:49:13*yglukhov_ quit (Remote host closed the connection)
16:54:43*zachcarter quit (Quit: zachcarter)
17:09:55*odc quit ()
17:11:04*odc joined #nim
17:14:37*gokr joined #nim
17:16:42*Jesin quit (Quit: Leaving)
17:30:00*yglukhov joined #nim
17:30:39*Jesin joined #nim
17:33:46*Trustable joined #nim
17:34:36*yglukhov quit (Ping timeout: 252 seconds)
17:35:55*yglukhov joined #nim
17:38:14*couven92 joined #nim
17:39:12*gokr quit (Ping timeout: 240 seconds)
17:40:45*bjz joined #nim
17:49:32*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
17:58:18*yglukhov quit (Remote host closed the connection)
17:59:22*zachcarter joined #nim
18:01:06*yglukhov joined #nim
18:04:12*zachcarter quit (Ping timeout: 260 seconds)
18:05:24*yglukhov quit (Ping timeout: 252 seconds)
18:09:42FromGitter<mratsim> I’m trying to flatten seq of seq of seq (ad infinitum) with a recursive proc however it seems like the compiler is confused. Did I miss something with my proc definition. It works fine for seq of int and seq of seq of int: ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ With 3 levels of nesting I get `type mismatch: got (seq[int]) but expected 'seq[seq[int]]’` ... [https://gitter.im/nim-lang/Nim?at=58f1106808c00c092a7
18:29:43FromGitter<Varriount> @mratsim Look at your returns
18:31:18FromGitter<mratsim> With 3 levels of nesting T should match seq[int] so I should return seq[T] aka seq[seq[int]] no?
18:31:47FromGitter<Varriount> @mratsim `@[@[@[1]]]` has the type `seq[seq[seq[int]]]`
18:33:28FromGitter<mratsim> so second proc should trigger once, returning seq[seq[int]], then a second time returning seq[int], then a third time running the first proc which is identity
18:34:10FromGitter<Varriount> @mratsim This should be enlightening: https://glot.io/snippets/eoxsufap2f
18:35:21*yglukhov joined #nim
18:36:01FromGitter<Varriount> Or hrm, I don't know.
18:36:27FromGitter<Varriount> Using `static` blocks might help though. You can print output as the generics are filled in.
18:36:55FromGitter<mratsim> yeah i’ll check it out (have another bug to report on list comprehensions :/)
18:41:27FromGitter<Varriount> @mratsim It also works if you replace the return types with 'auto'
18:43:47FromGitter<mratsim> strange, I think I should report a bug on that, I don’t understand which return type I should use
19:04:02*couven92 quit (Read error: Connection reset by peer)
19:05:05FromGitter<mratsim> @Varriount done: https://github.com/nim-lang/Nim/issues/5708 thanks
19:15:23*Arrrr quit (Ping timeout: 268 seconds)
19:38:57*couven92 joined #nim
19:44:00*Vladar quit (Remote host closed the connection)
19:44:27*sz0 quit (Quit: Connection closed for inactivity)
19:46:03*fastrom joined #nim
19:48:30*cspar joined #nim
19:51:31*hcorion joined #nim
19:52:16*rokups quit (Quit: Connection closed for inactivity)
19:53:30hcorionHi all, I need some help converting the following C code to nim: const unsigned int testPal[2] __attribute__((aligned(4))) = { 0x03E0001F,0x00007C00, };
19:55:32hcorionIt's the __attribute__((aligned(4))) that's got me stumped
20:16:49*Snircle joined #nim
20:18:35def-hcorion: i used to do sth like this: https://github.com/def-/nim-mic/blob/master/helloflops.nim#L18
20:19:17def-hcorion: you could also just check the alignment at runtime, possible that it's good enough on your system anyway
20:23:29*yglukhov quit (Remote host closed the connection)
20:26:37FromGitter<mratsim> Is there a way to check if an arbitrary input type T is actually a sequence (or better an openarray)
20:27:38FromGitter<RSDuck> IIRC with `when`
20:27:39FromGitter<TiberiumPY> Maybe'when compiles compiles(something):'
20:28:01FromGitter<TiberiumPY> Oh
20:28:13FromGitter<TiberiumPY> when compiles(something):
20:28:32dom96when T is seq
20:28:41ldleworkOr use a concept
20:28:57ldleworknm
20:30:50FromGitter<mratsim> cool @dom96 , I fear concepts will be hard to restrict to only the seq type @Idlework
20:31:04ldleworkwhy?
20:31:35ldleworktype Iterable = concept v v is seq
20:31:38ldlework:D
20:31:57ldleworkBut a useless concept given seq itself is a typeclass
20:36:16dom96"interesting, if more more want Nim then we'll add it to our languages. meanwhile spread the word, maybe more people would like to see Nim in replit"
20:36:19dom96Interesting indeed.
20:38:15ldleworkwhat?
20:40:58FromGitter<stisa> Idlework https://replit.canny.io/languages-requests/p/nim I guess
20:41:35FromGitter<TiberiumPY> Yep
20:42:22FromGitter<TiberiumPY> I can edit the post if needed
20:43:47hcorionJust added my vote
20:44:07*hcorion quit (Quit: Konversation terminated!)
20:44:52FromGitter<TiberiumPY> Lol, we're on third place now
20:51:57dom96To the moon!
20:53:13ldleworkI'm spamming the communities I know
20:54:13FromGitter<TiberiumPY> I really hope they really can add support for Nim
20:56:50FromGitter<mratsim> regarding benchmarks @dom96, it probably would be helpful to improve this one: https://github.com/kostya/benchmarks. I had a look last week, the C version and D version are skipping some initial allocations. ⏎ ⏎ I tried a naive blocked algorithm but improvement were minimal then I went to something else.
20:57:11FromGitter<mratsim> edit: I looked at the Matmul benchmark*
20:59:29*yglukhov joined #nim
21:03:58*bjz joined #nim
21:05:47FromGitter<TiberiumPY> ldlework: I've posted it on Reddit and Twitter
21:06:41*Trustable quit (Remote host closed the connection)
21:23:22FromGitter<barcharcraz> wow I woke up to the cyberpocalypse apperently
21:25:57*yglukhov quit (Remote host closed the connection)
21:36:27*Snircle_ joined #nim
21:36:30*gokr joined #nim
21:38:21*Snircle quit (Ping timeout: 255 seconds)
21:41:40FromGitter<Varriount> ?
21:42:46FromGitter<barcharcraz> the windows 0days
21:43:17FromGitter<barcharcraz> also a computer I didn't know about that I apperently admin and apperently came up in a pentest
21:56:48*vlad1777d quit (Remote host closed the connection)
22:02:15*couven92 quit (Quit: Disconnecting)
22:07:24*shashlick quit (Ping timeout: 252 seconds)
22:08:12*shashlick joined #nim
23:19:04*nsf joined #nim
23:34:35*nsf quit (Quit: WeeChat 1.7)
23:43:54*gokr quit (Ping timeout: 255 seconds)
23:45:50*devted quit (Quit: Sleeping.)