00:03:45 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
00:04:07 | zachcarter | I need to try to sucker someone into making a game with frag :P |
00:14:18 | * | Trioxin joined #nim |
00:14:53 | vivus | does the "write" option for files allow mixing of variables and strings? eg. somefile.write(somevar, " , " somevar2) ? |
00:16:57 | Trioxin | Does Nim's javascript option convert to JS or typescript? |
00:17:07 | vivus | Trioxin: JS IIRC |
00:17:57 | Trioxin | that's cool. I'd think typescript would have been easier. |
00:18:21 | FromGitter | <Varriount> Trioxin: But doesn't typescript just convert down to JS? |
00:18:37 | Trioxin | yeah |
00:19:09 | Trioxin | so maybe it does use typescript intermediately |
00:19:46 | Trioxin | holy crap.. https://github.com/pragmagic/nimue4 |
00:20:19 | Trioxin | beautiful |
00:20:29 | zachcarter | meh |
00:20:30 | FromGitter | <Varriount> endragor, someone's praising you. |
00:20:34 | vivus | Trioxin: why would you want it to output typescript? |
00:20:42 | zachcarter | typescript is sweet and all |
00:20:48 | Trioxin | I don't. I was just thinking about it. |
00:20:51 | zachcarter | oh |
00:21:22 | FromGitter | <Varriount> trioxin: The type checking is done before code generation, so it doesn't really make much of a difference. |
00:21:27 | demi- | isn't typescript also valid javascript? |
00:21:43 | FromGitter | <Varriount> Other way around, I think |
00:21:44 | zachcarter | I don’t think so |
00:21:56 | vivus | is this a correct statement: "It compiles directly into C++, so almost all the features UE4 provides can be made available in Nim." ? |
00:22:11 | demi- | er, i mean; if it is valid javascript it is valid typescript |
00:22:31 | FromGitter | <Varriount> vivus: Yes, Nim can compile to C++, which is then compiled to binary. |
00:22:42 | FromGitter | <Varriount> vivus: Though, Nim compiles to C by default. |
00:22:59 | vivus | why so many compile-to options? |
00:23:07 | FromGitter | <barcharcraz> also the way you can exploit that to wrap something like unreal is somewhat unstable |
00:23:14 | FromGitter | <barcharcraz> or rather .... messy |
00:23:25 | FromGitter | <barcharcraz> well most are Cish |
00:24:47 | zachcarter | anyone know what that website is that lets you create sound effects stupid easily? |
00:26:57 | Trioxin | I 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:04 | FromGitter | <Varriount> Ugh, I know a sound effect generator program, let me see if I can dig it up. |
00:27:26 | zachcarter | There’s one that’s web based Varriount |
00:27:43 | vivus | Trioxin: I thought mind-share mattered too, then I started to understand the verbose documentation and nim is working for me so far |
00:28:05 | zachcarter | I dunno I started with Nim in like Dec / January |
00:28:06 | vivus | Go is a bit odd if you're coming from a dynamic language |
00:28:16 | zachcarter | I had used it several years ago just playing around with it |
00:28:22 | zachcarter | already built quite a bit with it |
00:28:23 | FromGitter | <Varriount> zachcarter: http://thirdcog.eu/apps/cfxr |
00:28:33 | FromGitter | <Varriount> Also http://drpetter.se/project_sfxr.html |
00:28:44 | FromGitter | <Varriount> and http://www.bfxr.net/ |
00:28:52 | zachcarter | thank you |
00:28:58 | FromGitter | <Varriount> The last one work in the browser, if you have flash. |
00:29:01 | FromGitter | <Varriount> I think |
00:29:09 | Trioxin | so far I've used Nim to make a forensics software for a Pharma company. That's all so far. |
00:29:21 | zachcarter | I’ve made this : |
00:29:28 | zachcarter | http://fragworks.io/ |
00:29:47 | FromGitter | <Varriount> Trioxin: I might be using it to generator JSON in the future. |
00:30:04 | zachcarter | the fact that it’s so easy to bind to C makes building things with Nim quickly, realistic |
00:30:08 | FromGitter | <Varriount> My problem is that most of the stuff I do requires AWS support. |
00:30:27 | FromGitter | <Varriount> and its infrastructure work |
00:30:29 | zachcarter | Varriount: My job has a hackathon coming up |
00:30:29 | Trioxin | 2d game framework! good for mobile too? |
00:30:38 | FromGitter | <barcharcraz> I'm in the same boat Varriount |
00:30:40 | vivus | Trioxin: that's no small feat |
00:30:42 | FromGitter | <barcharcraz> I do 3D work |
00:30:47 | FromGitter | <barcharcraz> and everything is c++ |
00:30:48 | demi- | zachcarter: yeah, that is a huge benefit |
00:30:51 | Trioxin | i see ARM there |
00:31:06 | zachcarter | there’s no reason it couldn’t run on android / iOS though I hav’ent played with IOS yet |
00:31:06 | FromGitter | <Varriount> @barcharcraz At least you might be able to use Nim's C++ generator |
00:31:09 | Trioxin | android-arm |
00:31:11 | zachcarter | I’ve gotten it runing on android |
00:31:15 | FromGitter | <Varriount> And/or the 3d library bindings |
00:31:40 | zachcarter | demi-: I was going to say that I’m thinking about using that time to get that AWS lambda prototype built |
00:31:58 | demi- | 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:04 | zachcarter | Trioxin: 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:10 | demi- | especially since it bridges to objc pretty well already |
00:32:11 | Trioxin | I use phonegap for all my mobile needs but that could change |
00:32:27 | Trioxin | plus python has some options |
00:33:19 | zachcarter | barcharcraz: have you seen bgfx? |
00:33:36 | FromGitter | <barcharcraz> I have |
00:33:39 | FromGitter | <barcharcraz> and I like it |
00:33:44 | zachcarter | I’m using it for frag |
00:33:54 | FromGitter | <barcharcraz> but I need a good pathtracer |
00:33:59 | FromGitter | <barcharcraz> also the fbx SDK |
00:34:06 | zachcarter | someone wrote a fbx pipeline with it |
00:34:08 | zachcarter | but yeah |
00:34:15 | FromGitter | <barcharcraz> I need more than assimp |
00:34:18 | zachcarter | right |
00:34:41 | FromGitter | <barcharcraz> since I want to for example export/import splines and NURBS without meshing them |
00:34:59 | zachcarter | gotcha |
00:35:16 | FromGitter | <barcharcraz> also I'm not sure I could go without libigl |
00:35:40 | FromGitter | <barcharcraz> holy shit though. I've spent all day dealing with getting my project to build again on windows |
00:35:54 | zachcarter | :D gotta love that |
00:41:14 | vivus | zachcarter: is the app 'slow' on android? |
00:41:26 | zachcarter | runs at 60fps |
00:41:40 | zachcarter | I haven’t done much testing on mobile though |
00:42:03 | zachcarter | this 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:08 | zachcarter | right now I’m building samples for desktop |
00:42:21 | vivus | which framework? |
00:42:42 | zachcarter | err which app were you referring to? |
00:42:49 | zachcarter | what I said I tested on android? |
00:42:50 | vivus | android |
00:43:10 | zachcarter | I’m building a game dev framework using Nim - http://fragworks.io/ |
00:43:18 | zachcarter | that’s the only thing I’ve run on android recently :P |
00:43:25 | zachcarter | the hello world example for it |
00:44:27 | Trioxin | well a lot of ppl would use it for mobile if it worked. 2d mobile games can make a lot of $. tower defense! |
00:44:46 | zachcarter | well my goal is to make it work :) |
00:45:00 | zachcarter | I’m the lone developer though working on it, so it’s slow progress |
00:45:09 | zachcarter | I can show you gifs of what I’m working on right now if you’d like to see it |
00:45:13 | zachcarter | or I can record one rather |
00:45:29 | zachcarter | just a stupid space invaders clone |
00:47:07 | Trioxin | it 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:09 | Trioxin | would 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:26 | Trioxin | that's not good for the Unreal wrapper. I just noticed.. build:failing |
01:04:55 | Trioxin | never seen that on github before |
01:14:33 | FromGitter | <Varriount> Trioxin: What is good is that the last commit was ~16 hours ago |
01:15:45 | Trioxin | ah |
01:17:57 | Trioxin | hmm. must compile unreal manually on linux. seems okay |
01:18:46 | * | devted quit (Quit: Sleeping.) |
01:22:19 | Trioxin | damn. 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:43 | FromGitter | <Varriount> Trioxin: I don't get any error. |
01:25:58 | * | bjz joined #nim |
01:26:14 | Trioxin | strange. verified my unreal acct. logged into github. input my username. same |
01:26:31 | FromGitter | <Varriount> Trioxin: Even in an incognito tab. Can you show a screenshot of what it's asking you? |
01:27:34 | Trioxin | ah. it's case sensitive |
01:36:17 | * | def-pri-pub joined #nim |
01:40:39 | zachcarter | def-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:46 | def-pri-pub | zachcarter: hiya |
01:55:05 | zachcarter | doing anything with Nim lately? |
01:58:45 | def-pri-pub | not really. |
01:59:08 | def-pri-pub | I'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:19 | def-pri-pub | I've also been making attempts at learning UE4 |
01:59:33 | zachcarter | ah nice |
01:59:48 | def-pri-pub | I might give those UE4 bindings a change when I understand the engine a bit more |
02:00:03 | def-pri-pub | [Shamless Plug]: I published this book review today: https://16bpp.net/blog/post/book-review-unreal-engine-4-for-beginners |
02:00:07 | zachcarter | saw that |
02:01:41 | zachcarter | I got a website for frag now |
02:02:59 | def-pri-pub | linky? |
02:04:31 | FromGitter | <Varriount> def-pri-pub: In your post, it's "latter", not "later" |
02:06:10 | FromGitter | <Varriount> def-pri-pub: zachcarter's game site is at http://fragworks.io/ |
02:07:22 | zachcarter | sorry trying to work on this space invaders clone and chat at the same time |
02:09:15 | def-pri-pub | neat. 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:22 | def-pri-pub | I might make some animation tools though. |
02:10:24 | def-pri-pub | (pssst: The `samples` link doesn't work) |
02:11:02 | zachcarter | yeah I know |
02:11:23 | zachcarter | it’s just going to point at an empty section of doc for now so I’m not too worried about it |
02:11:41 | zachcarter | animation tools would be awesome :P |
02:23:35 | krux02 | zachcarter: it seems like you take it really serious to make entertainment in Nim |
02:23:56 | zachcarter | it would be cool krux02 |
02:24:29 | krux02 | well 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:34 | krux02 | or two |
02:25:20 | zachcarter | I did - spine |
02:26:13 | def-pri-pub | Oh, when I said animation, I meant tools for doing pencil & paper animation. Probably not computer animation. |
02:26:42 | krux02 | for my library it seems no good future everybody who I know of who tried it failed to get it running |
02:26:48 | krux02 | opengl stuff |
02:27:21 | krux02 | even 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:19 | vivus | awesome framework zachcarter |
02:39:25 | zachcarter | thank 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:42 | pydsigner | krux02 yeah I have no idea what was up with that |
06:04:45 | vivus | is anybody familiar with rewriting data back to SQL using db_mysql ? |
06:05:02 | * | couven92 joined #nim |
06:06:05 | couven92 | Good morning! |
06:07:24 | couven92 | I 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:55 | pydsigner | Check the kind |
06:11:23 | pydsigner | and then just pull out .strVal .intVal etc |
06:15:09 | couven92 | pydsigner, I also found that you can mark the arguments as static as well... that looked even better |
06:15:17 | couven92 | http://stackoverflow.com/questions/31269770/nim-macro-parameters |
06:17:43 | pydsigner | a Ah |
06:17:53 | pydsigner | * 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:21 | dom96 | zachcarter: nice job on http://fragworks.io/ :) |
07:51:41 | FromGitter | <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:41 | FromGitter | ... 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:35 | FromGitter | <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:26 | dom96 | Try removing the static and changing the 'string' to 'typed' in AnsiWideReplaceRule |
07:57:58 | * | Vladar joined #nim |
08:09:29 | cheatfate | couven92, just don't use ASCII functions, use only UNICODE |
08:15:01 | FromGitter | <couven92> cheatfate: nope, I'll do it like in stdlib thank you very much. Besides, this is good macro training for me! :) |
08:20:26 | FromGitter | <Varriount> @couven92 I actually had a PR at one point that introduced a helper macro to wrap Windows API functions. |
08:20:27 | cheatfate | couven92: i think this -duseWinAnsi was introduced like 5+ years ago, and must be deprecated because it will break international releases |
08:21:31 | cheatfate | all modern windows api can even don't have appropriate ANSI alternative |
08:21:57 | * | yglukhov joined #nim |
08:21:57 | FromGitter | <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:30 | dom96 | couven92: did my advice help? :) |
08:24:38 | dom96 | btw I'm happy that you're still working on this :D |
08:26:49 | * | yglukhov joined #nim |
08:28:59 | FromGitter | <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:07 | FromGitter | <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:18 | FromGitter | <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:37 | FromGitter | <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:37 | dom96 | You 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:37 | FromGitter | <stisa> uhuh nice, when did we get a nim implementation of the new website? |
09:20:14 | Araq | ha ^ |
09:21:10 | Araq | I did it, to kick someone's butt. |
09:21:22 | cheatfate | i even refreshed my browser but didn't see any changes |
09:21:35 | Araq | and now there is a lovely dispute about what technology to use. |
09:22:10 | Araq | I argued Nim program + Nim .tmpl file + Nim's RST means people don't have to learn anything to contribute. |
09:22:25 | Araq | dom argues Jekyll is a "standard". |
09:22:49 | Araq | cheatfate: it's not online yet. |
09:22:57 | FromGitter | <stisa> Araq : what about a compromise? Maybe a nim program that uses mustache templates? |
09:23:12 | Araq | we found a compromise. |
09:25:01 | cheatfate | There must be no compromises, if programming language can't be used to program own website, then maybe it will be dead soon |
09:25:20 | FromGitter | <stisa> oh alright then :) So (if I get the time), I should contribute to the nim version right? |
09:26:16 | dom96 | That depends on whether I can finish the Jekyll version by Monday. |
09:26:33 | cheatfate | and if Nim even has Javascript backend, for what reason site can't be programmed with Nim? |
09:27:25 | FromGitter | <TiberiumPY> This site doesn't need many JS |
09:27:29 | FromGitter | <TiberiumPY> It's static |
09:27:44 | Araq | cheatfate: there are no reasons. just different personal preferences. |
09:29:37 | Araq | both 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:25 | ldlework | oh brother |
09:32:27 | cheatfate | Araq, its nonsense to use tool to generate static website for programming language |
09:34:33 | ldlework | Because it should be generated by hand...? |
09:35:11 | dom96 | I 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:38 | ldlework | dom96: nonsense |
09:35:41 | FromGitter | <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:56 | FromGitter | <stisa> I was going to work on it more, but I'll wait for now |
09:36:30 | dom96 | Thank you, i'll take a look but I will be editing the sponsors page anyway. |
09:36:46 | cheatfate | ldlework, 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:13 | dom96 | Calinou: I summon thee. |
09:48:40 | dom96 | Long shot but maybe Calinou reads the IRC logs. |
09:49:55 | ldlework | cheatfate: sorry that reasoning is not compelling to me in the slightest |
09:52:13 | ldlework | github.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:52 | cheatfate | ldlework, 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:39 | ldlework | I have no idea what you're saying |
10:00:24 | ldlework | there's 900 bugs for nim and I run into compiler issues all the time. for perspective. |
10:01:54 | ldlework | comparatively, the rust compiler is near sentient and capable of empathy... |
10:02:16 | cheatfate | ldlework, so go and use rust and stop crying here |
10:02:51 | ldlework | That 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:56 | Arrrr | procvars 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:40 | zachcarter | http://imgur.com/a/UUcF0 |
11:29:18 | * | Arrrr joined #nim |
11:42:41 | dom96 | zachcarter: play around with the GIF converter, there is a way to get rid of those artifacts. |
11:42:55 | zachcarter | will do |
11:49:03 | zachcarter | is there a way to take sequence A and if it contains any items which are present in sequence B, delete them? |
11:49:38 | zachcarter | I guess I could do sequtils.filter not in b |
11:51:11 | FromGitter | <stisa> zachcarter I think filter return a new seq, keepIf changes the seq |
11:51:25 | zachcarter | ah 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:54 | FromGitter | <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:09 | FromGitter | <TiberiumPY> by the way, if I understand correctly, all templates in sequtils results in simple for loops? |
15:02:26 | FromGitter | <TiberiumPY> ah yes, looking into source code |
15:31:38 | FromGitter | <mratsim> hey there |
15:31:52 | FromGitter | <mratsim> @TiberiumPY Template are always inlined at compile time |
15:33:01 | FromGitter | <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:45 | adeohluwa | 10: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:29 | adeohluwa | it'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:40 | FromGitter | <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:18 | FromGitter | <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:42 | FromGitter | <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:43 | FromGitter | <Varriount> @mratsim Look at your returns |
18:31:18 | FromGitter | <mratsim> With 3 levels of nesting T should match seq[int] so I should return seq[T] aka seq[seq[int]] no? |
18:31:47 | FromGitter | <Varriount> @mratsim `@[@[@[1]]]` has the type `seq[seq[seq[int]]]` |
18:33:28 | FromGitter | <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:10 | FromGitter | <Varriount> @mratsim This should be enlightening: https://glot.io/snippets/eoxsufap2f |
18:35:21 | * | yglukhov joined #nim |
18:36:01 | FromGitter | <Varriount> Or hrm, I don't know. |
18:36:27 | FromGitter | <Varriount> Using `static` blocks might help though. You can print output as the generics are filled in. |
18:36:55 | FromGitter | <mratsim> yeah i’ll check it out (have another bug to report on list comprehensions :/) |
18:41:27 | FromGitter | <Varriount> @mratsim It also works if you replace the return types with 'auto' |
18:43:47 | FromGitter | <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:05 | FromGitter | <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:30 | hcorion | Hi all, I need some help converting the following C code to nim: const unsigned int testPal[2] __attribute__((aligned(4))) = { 0x03E0001F,0x00007C00, }; |
19:55:32 | hcorion | It's the __attribute__((aligned(4))) that's got me stumped |
20:16:49 | * | Snircle joined #nim |
20:18:35 | def- | hcorion: i used to do sth like this: https://github.com/def-/nim-mic/blob/master/helloflops.nim#L18 |
20:19:17 | def- | 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:37 | FromGitter | <mratsim> Is there a way to check if an arbitrary input type T is actually a sequence (or better an openarray) |
20:27:38 | FromGitter | <RSDuck> IIRC with `when` |
20:27:39 | FromGitter | <TiberiumPY> Maybe'when compiles compiles(something):' |
20:28:01 | FromGitter | <TiberiumPY> Oh |
20:28:13 | FromGitter | <TiberiumPY> when compiles(something): |
20:28:32 | dom96 | when T is seq |
20:28:41 | ldlework | Or use a concept |
20:28:57 | ldlework | nm |
20:30:50 | FromGitter | <mratsim> cool @dom96 , I fear concepts will be hard to restrict to only the seq type @Idlework |
20:31:04 | ldlework | why? |
20:31:35 | ldlework | type Iterable = concept v v is seq |
20:31:38 | ldlework | :D |
20:31:57 | ldlework | But a useless concept given seq itself is a typeclass |
20:36:16 | dom96 | "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:19 | dom96 | Interesting indeed. |
20:38:15 | ldlework | what? |
20:40:58 | FromGitter | <stisa> Idlework https://replit.canny.io/languages-requests/p/nim I guess |
20:41:35 | FromGitter | <TiberiumPY> Yep |
20:42:22 | FromGitter | <TiberiumPY> I can edit the post if needed |
20:43:47 | hcorion | Just added my vote |
20:44:07 | * | hcorion quit (Quit: Konversation terminated!) |
20:44:52 | FromGitter | <TiberiumPY> Lol, we're on third place now |
20:51:57 | dom96 | To the moon! |
20:53:13 | ldlework | I'm spamming the communities I know |
20:54:13 | FromGitter | <TiberiumPY> I really hope they really can add support for Nim |
20:56:50 | FromGitter | <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:11 | FromGitter | <mratsim> edit: I looked at the Matmul benchmark* |
20:59:29 | * | yglukhov joined #nim |
21:03:58 | * | bjz joined #nim |
21:05:47 | FromGitter | <TiberiumPY> ldlework: I've posted it on Reddit and Twitter |
21:06:41 | * | Trustable quit (Remote host closed the connection) |
21:23:22 | FromGitter | <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:40 | FromGitter | <Varriount> ? |
21:42:46 | FromGitter | <barcharcraz> the windows 0days |
21:43:17 | FromGitter | <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.) |