00:34:37 | * | beholders_eye joined #nim |
00:34:42 | * | tokyovigilante quit (Read error: Connection reset by peer) |
00:34:56 | * | tokyovigilante joined #nim |
00:36:42 | * | alice quit (Ping timeout: 276 seconds) |
00:37:14 | * | lucasta quit (Quit: Leaving) |
00:44:56 | * | ox joined #nim |
00:45:08 | * | oz quit (Ping timeout: 255 seconds) |
00:50:31 | * | beholders_eye quit (Quit: WeeChat 4.1.2) |
00:53:38 | * | lucasta joined #nim |
00:58:16 | * | lucasta quit (Client Quit) |
01:22:33 | * | zgasma quit (Quit: Lost terminal) |
01:34:45 | * | alice joined #nim |
02:21:11 | * | lx12ucy quit (Quit: application quit, bye!) |
03:21:05 | FromDiscord | <arm_3_d> In reply to @Elegantbeef "<@107466914392969216> Well I just": Thanks, tried last build but had the same issue. Not sure maybe I'm doing something wrong? https://github.com/beef331/wasm3/issues/11 |
03:23:37 | FromDiscord | <Elegantbeef> Are you sure you are using 0.1.13? |
03:23:47 | FromDiscord | <Elegantbeef> Rather atleast 0.1.13 |
03:28:39 | FromDiscord | <arm_3_d> well at least in deps paths it prints out `pkgs2/wasm3-0.1.14-6d322a764f1102738cf2416e657ad29c4df768d7/wasm3.ni` |
03:33:08 | FromDiscord | <Elegantbeef> Ah this is on me I forgot to remove .nim from my path |
03:33:58 | FromDiscord | <arm_3_d> tried same in docker (arm64 image), same error |
03:34:05 | FromDiscord | <arm_3_d> (edit) removed "same" |
03:41:55 | * | rockcavera quit (Remote host closed the connection) |
03:43:08 | FromDiscord | <arm_3_d> @ElegantBeef 0.1.15 works! |
03:47:31 | FromDiscord | <Elegantbeef> Yea I was using the version tagged 2.1.99 accidentally |
03:52:19 | FromDiscord | <arm_3_d> Thanks, for help! No I'll try to build using mingw |
03:59:46 | FromDiscord | <Elegantbeef> I have yet to fix it for mingw |
03:59:46 | FromDiscord | <Elegantbeef> So uhh |
03:59:46 | FromDiscord | <Elegantbeef> "PRs welcome" |
04:05:13 | FromDiscord | <arm_3_d> ah, thats easy fix, @nimaoth did that in his fork: https://github.com/Nimaoth/wasm3/blob/master/src/wasm3/wasm3c.nim |
04:05:48 | FromDiscord | <arm_3_d> I'm applying it localy for now |
04:11:23 | FromDiscord | <arm_3_d> holy... I was expecting it to blow up https://media.discordapp.net/attachments/371759389889003532/1306471516652830812/image.png?ex=6736c9ea&is=6735786a&hm=52242f1041fabe7169dd0ba6feb41405a8bd680e4e4cea6df389e25a791dc4bd& |
04:11:28 | FromDiscord | <arm_3_d> but it works |
04:21:04 | FromDiscord | <arm_3_d> @ElegantBeef do you plan to update wasm3 subtree to latest? |
04:21:21 | FromDiscord | <Elegantbeef> It was on my list of things to do |
04:21:30 | FromDiscord | <Elegantbeef> Especially now that wasm3 is in maintenance mode |
04:24:14 | FromDiscord | <Elegantbeef> Well there is 0.1.16 to play with, hopefully it doesn't explode and take your winxp machine with it |
04:31:45 | FromDiscord | <arm_3_d> In reply to @Elegantbeef "Well there is 0.1.16": ok no issues with compilation. good sign |
04:55:25 | FromDiscord | <deus.futuri> Yo |
05:07:28 | * | coldfeet joined #nim |
06:28:18 | * | coldfeet quit (Remote host closed the connection) |
07:25:44 | FromDiscord | <angelsdust> I have a sequence of strings, how do I sort them alphabetically? |
07:25:57 | PMunch | sort? |
07:26:08 | PMunch | From the algorithm module |
07:30:10 | FromDiscord | <nnsee> In reply to @angelsdust "I have a sequence": https://nim-lang.org/docs/algorithm.html#sort,openArray[T],proc(T,T) ? |
07:46:18 | FromDiscord | <angelsdust> Normal sort failed with type error, but `sort(proc (a, b: Foo): int = cmp(a.name, b.name))` |
07:52:09 | PMunch | Ah, so you don't have a sequence of strings like you said |
07:58:21 | FromDiscord | <angelsdust> :hehe: |
10:45:25 | * | beholders_eye joined #nim |
11:33:31 | FromDiscord | <kvl2692> Hey Just found this lang randomly on reddit Can I make Telegram bots with Nim? |
11:34:13 | FromDiscord | <angelsdust> Technically anything is possible, someone seems to have done it before: https://github.com/mishankov/telegram-to-pocket-bot |
11:34:34 | FromDiscord | <kvl2692> In reply to @angelsdust "Technically anything is possible,": how about performance comparing to python itself? |
11:34:39 | FromDiscord | <nnsee> In reply to @kvl2692 "Hey Just found this": you can write telegram bots in any language that can do HTTP requests - all you need is the telegram API |
11:34:40 | FromDiscord | <nnsee> in fact i've written telegram bots in bash and curl |
11:35:02 | FromDiscord | <kvl2692> In reply to @nnsee "in fact i've written": you can but I'm looking to focus on logic first |
11:35:22 | FromDiscord | <angelsdust> In reply to @kvl2692 "how about performance comparing": Compiled will always out do interpreted languages, assuming the code writting is the same/equal |
11:35:28 | FromDiscord | <fabric.input_output> well it should be turing complete :^) |
11:36:03 | FromDiscord | <kvl2692> In reply to @angelsdust "Technically anything is possible,": is there is more like python-telegram-bot? |
11:36:26 | FromDiscord | <kvl2692> I left python only because it's slow and frequent typerrors |
11:36:37 | FromDiscord | <nnsee> https://github.com/ba0f3/telebot.nim |
11:36:47 | FromDiscord | <nnsee> google is your friend... |
11:37:37 | FromDiscord | <kvl2692> yeah thanks so |
13:38:56 | * | ntat joined #nim |
13:46:18 | FromDiscord | <enthus1ast.> is someone from the community actually use my weekend hack: https://nimforum.code0.xyz/ ? ↵When i look through the logs i see ALOT of search engines that visit every link, the usual "l33t noise". ↵↵I would either build it a little better or shut it down, currently it uses too much memory, so i need to rebuild most of the stuff to actually use a db |
13:46:44 | FromDiscord | <enthus1ast.> (edit) "noise"." => "noise", but i'm not sure about actual users." |
13:48:07 | FromDiscord | <enthus1ast.> (edit) "is" => "does" |
14:05:42 | FromDiscord | <angelsdust> sent a code paste, see https://play.nim-lang.org/#pasty=OsNZkXDG |
14:12:16 | FromDiscord | <ayex> is that nim-forum mirror without js required?↵↵I had not heard of it before - but I quite like it! 🚀↵(@enthus1ast.) |
14:12:40 | FromDiscord | <enthus1ast.> Yes no js |
14:13:27 | FromDiscord | <enthus1ast.> It currently does not use a database and this makes it kinda weird |
14:13:52 | FromDiscord | <enthus1ast.> So, I would either upgrade it to use a database, or shut it down |
14:15:11 | FromDiscord | <ayex> oh no db? I would have assumed, that is where the content would be cached? |
14:16:00 | FromDiscord | <enthus1ast.> And also the forums API is a little broken (or I use it "wrong") because some of the "last answering user are wrong. |
14:16:11 | FromDiscord | <enthus1ast.> No, it's file based |
14:16:23 | FromDiscord | <ayex> ah ok, I see. |
14:16:37 | FromDiscord | <enthus1ast.> I just store get the content from the forum and store it as flatty |
14:17:09 | FromDiscord | <enthus1ast.> This works, but the search needs to touch everything |
14:17:38 | FromDiscord | <enthus1ast.> It's actually interesting that it still works like this on such a small vm |
14:18:55 | FromDiscord | <enthus1ast.> I don't know if the original forum does also have such a large number visits from SEO and search engine bots, but it seems like they like the no js, plain html stuff |
14:19:52 | FromDiscord | <enthus1ast.> So it might be beneficial, if the original forum would also render such a sitemap |
14:21:01 | FromDiscord | <odexine> sent a code paste, see https://play.nim-lang.org/#pasty=VokOqqgc |
14:21:37 | FromDiscord | <odexine> the method-call-style syntax would be `sel.parseEnum[:baz]().ord` |
14:21:53 | FromDiscord | <ayex> I can relate to that 😁 (not the SEO but the plain html)↵(@enthus1ast.) |
14:22:29 | FromDiscord | <angelsdust> sent a code paste, see https://play.nim-lang.org/#pasty=GHFoWHqR |
14:26:16 | * | PMunch quit (Quit: Leaving) |
15:13:42 | FromDiscord | <angelsdust> sent a code paste, see https://play.nim-lang.org/#pasty=eIIsUTor |
15:16:41 | FromDiscord | <angelsdust> The parameters in the proc function (passed) seem to be immutable and set only once? |
15:18:06 | FromDiscord | <odexine> you need to capture them https://nim-lang.org/docs/sugar.html#capture.m,varargs[typed],untyped |
15:20:42 | FromDiscord | <angelsdust> Does it need a specific import? `undeclared identifier: 'capture'` |
15:21:43 | FromDiscord | <solitudesf> its in sugar module |
15:49:46 | FromDiscord | <angelsdust> sent a code paste, see https://play.nim-lang.org/#pasty=LRKyIhoZ |
15:59:34 | * | ntat quit (Quit: Leaving) |
16:11:48 | * | zgasma joined #nim |
16:17:29 | * | oprypin quit (Quit: Bye) |
16:18:22 | * | oprypin joined #nim |
16:29:01 | * | lucasta joined #nim |
17:08:28 | * | oprypin quit (Quit: Bye) |
17:20:03 | * | lucasta quit (Quit: Leaving) |
17:24:27 | * | ftajhii quit (Read error: Connection reset by peer) |
17:30:52 | * | ftajhii joined #nim |
18:03:04 | FromDiscord | <mrgaturus> sent a code paste, see https://play.nim-lang.org/#pasty=TuasFiWO |
18:03:23 | FromDiscord | <mrgaturus> (edit) "https://play.nim-lang.org/#pasty=JSFViMwF" => "https://play.nim-lang.org/#pasty=wTARkfsm" |
18:07:01 | FromDiscord | <demotomohiro> In reply to @angelsdust "This works but feels": If you don't add or remove elements to seq, you don't need to use seq. You can use array instead. |
18:08:43 | * | ox is now known as oz |
18:23:06 | * | ntat joined #nim |
18:48:35 | * | lucasta joined #nim |
19:37:55 | FromDiscord | <angelsdust> In reply to @mrgaturus "at least making the": Like this, technically you can move the cpuPointer to the pre-loop too but maybe the compiler optimizes it out. Was more wondering if there was a better/cleaner way with regards to the capture, parsing enum et. al. |
20:05:28 | FromDiscord | <solitudesf> In reply to @angelsdust "Like this, technically you": dont hyperfocus and waste time on details that dont matter. this isnt even hot path, you can do whatever. |
20:07:43 | FromDiscord | <angelsdust> Oh yeah, it was a great learning trip now just wondering if there is more to learn |
20:31:27 | * | lucasta quit (Quit: Leaving) |
20:44:26 | FromDiscord | <balugrizzly> I am trying to write a simple macro or hotkey program where i would listen for key events and then replace them are there some recommended ways of going about it with nim i thought this would be a good project for nim |
20:47:28 | FromDiscord | <Elegantbeef> Depends on OS and display server |
21:10:04 | * | ntat quit (Quit: Leaving) |
21:29:41 | FromDiscord | <.tokyovigilante> Hey team, if I declare an object as `type Object`, a proc that takes the object as its first param, eg `proc doStuff (obj: Object, param: String) =`, I can expect to be able to call`obj.proc(param)` from another module that imports the module the declarations are in? |
21:30:51 | FromDiscord | <fabric.input_output> yeah |
21:34:22 | FromDiscord | <.tokyovigilante> OK, its not working for an object which is declared as a parameter of another object |
21:34:31 | FromDiscord | <.tokyovigilante> `Error: undeclared field: 'listen' for type server.ControlServer [type declared in /home/ryan/Projects/Develop/tsunami/src/earthquake/control/server.nim(9, 6)]` |
21:34:54 | FromDiscord | <.tokyovigilante> sent a code paste, see https://play.nim-lang.org/#pasty=rbjrWYdY |
21:36:00 | FromDiscord | <.tokyovigilante> (edit) "https://play.nim-lang.org/#pasty=DVRDDjyT" => "https://play.nim-lang.org/#pasty=ZAwnXyRP" |
21:37:04 | FromDiscord | <.tokyovigilante> sent a code paste, see https://play.nim-lang.org/#pasty=cQAgzkAk |
21:37:24 | FromDiscord | <.tokyovigilante> (edit) "https://play.nim-lang.org/#pasty=JPVVsEIH" => "https://play.nim-lang.org/#pasty=MkgsVXgJ" |
21:37:37 | FromDiscord | <fabric.input_output> are you sure you're providing the second argument to the `listen` call? |
21:38:09 | FromDiscord | <fabric.input_output> can I see the code where the error is coming from? |
21:40:29 | FromDiscord | <.tokyovigilante> `earthquake.controlServer.listen(port: 22049)` |
21:40:41 | FromDiscord | <.tokyovigilante> maybe I don't need the `port:` |
21:41:12 | FromDiscord | <fabric.input_output> you use `=` for named arguments |
21:41:21 | FromDiscord | <fabric.input_output> (edit) "named" => "passing" | "passingarguments ... " added "by name" |
21:41:36 | FromDiscord | <.tokyovigilante> ah right, absolute Swift refugee here |
21:41:41 | FromDiscord | <alpaca_vita> sent a code paste, see https://play.nim-lang.org/#pasty=vICtpcVx |
21:42:02 | FromDiscord | <.tokyovigilante> `Nov 15 10:41:49.452 INFO (server:26) Creating WebSocket control server on port 22049` |
21:42:03 | FromDiscord | <.tokyovigilante> Thanks! |
21:42:37 | FromDiscord | <fabric.input_output> np |
21:43:03 | FromDiscord | <alpaca_vita> (edit) "https://play.nim-lang.org/#pasty=wFbaVdZJ" => "https://play.nim-lang.org/#pasty=DSLjeyap" |
22:11:49 | FromDiscord | <Elegantbeef> @alpaca_vita you likely do not have the same Nim version |
22:15:20 | FromDiscord | <Array 🇵🇸🇸🇩🇸🇾🇨🇩> jester has been abandoned for some time now and doesnt support nim v2 officially afaik↵(@alpaca_vita) |
23:36:17 | * | xutaxkamay quit (Ping timeout: 248 seconds) |
23:46:27 | * | xutaxkamay joined #nim |