<< 05-11-2023 >>

00:11:27FromDiscord<leorize> sliding sync works on matrix.org if you're using that homeserver
00:11:27FromDiscord<leorize> works best with element-x client for mobile
00:11:27FromDiscord<leorize> that shit is unbelievably fast
00:11:28FromDiscord<Elegantbeef> It's also on their electron client right?
00:11:28FromDiscord<Elegantbeef> To be the anti blizzard "I do not have phone"
00:11:28FromDiscord<leorize> the impl for web is a lil rusty afaik
00:11:30FromDiscord<leorize> there was a time facebook and google both talked xmpp and you can message between them↵(@JJ)
00:11:31FromDiscord<leorize> i do miss that time
00:15:00FromDiscord<Chronos [She/Her]> I was actually trying to read the spec for XMPP but it's overwhelming so I just turned on my PC and lost myself in TikTok lol
00:15:13FromDiscord<Elegantbeef> This is your mind on tiktok
00:15:42FromDiscord<Chronos [She/Her]> In offtopic, just said how it was evil lol
00:15:56FromDiscord<Chronos [She/Her]> But nah, I just struggle to focus with verbose text
00:16:20FromDiscord<Chronos [She/Her]> Obviously it's a lot of information they have to lay out in a specific way so that there's no misinterpretation, but it's still very overwhelming
00:17:55FromDiscord<Chronos [She/Her]> Combine that with my non-technical and non-functional brain, and you get a recipe of pain lol
00:18:06FromDiscord<JJ> In reply to @leorize "there was a time": and then google eee'd google talk 😔
00:19:18FromDiscord<JJ> In reply to @leorize "sliding sync works on": hm i'll have to try it again. i've an old matrix.org account i can pull up. though it does crack me up how the matrix clients have gone from riot --> riot-x/element --> element-x. just one more total rewrite i swear
00:19:59FromDiscord<Chronos [She/Her]> Since I want to eventually try and use my chat application for something, I do need to study some actual chat protocols and stuff before I get there
00:20:08FromDiscord<Chronos [She/Her]> Wish I could just get the information zapped into my brain lol
00:21:18FromDiscord<JJ> also check out https://modern.ircdocs.horse/ and https://ircv3.net/ @Chronos [She/Her]
00:22:09FromDiscord<Chronos [She/Her]> Thanks JJ!
00:26:02*krux02 quit (Remote host closed the connection)
00:29:08FromDiscord<leorize> while not federated, zulip is a kind of forum/chat hybrid that you might want to look at
00:32:42FromDiscord<JJ> i wish more languages used zulip 😔 😔
00:32:51FromDiscord<JJ> all the proof assistants do which is neat
00:38:04FromDiscord<leorize> isn't one of the issue is that you have to self-host zulip?
00:41:38FromDiscord<JJ> nah, they'll host one for you for free with bad search, or you can pay per-user, slack-style
00:42:18FromDiscord<JJ> but also you can self-host & it's fully open-source, unlike mattermost et al
00:42:35FromDiscord<JJ> i think all the proof assistant ones have a sponsor deal or something along those lines too
01:25:20*disso-peach joined #nim
04:19:59*cm_ joined #nim
04:20:04*cm quit (Ping timeout: 245 seconds)
04:20:20*cm_ is now known as cm
05:17:23FromDiscord<xtrayambak> Nim could really use an `--explain` flag in my opinion
05:17:56FromDiscord<xtrayambak> Without a LSP server, it's a nightmare to get stuff right since you have to compile, compile and compile until you've gotten the arguments right, or you have to have a browser open with the Nim docs
05:18:55FromDiscord<user2m> Any good PDF libraries for doing basic editing? Just looking to cut pages out of a PDF and store the text in memory
05:19:06FromDiscord<xtrayambak> have you tried nimPDF?
05:19:13FromDiscord<xtrayambak> https://github.com/jangko/nimPDF
05:19:19FromDiscord<xtrayambak> nvm
05:19:22FromDiscord<xtrayambak> it's another URL
05:19:25FromDiscord<xtrayambak> just search it via nimble
05:19:52FromDiscord<xtrayambak> https://github.com/jangko/nimpdf
05:20:10FromDiscord<xtrayambak> there's also libharu bindings (whatever those do) https://github.com/z-kk/libharu
05:24:37FromDiscord<user2m> I haven't tried an nimpdf, but it was the first thing that came up in my search, but it looks like it's primarily for creating PDFs unless I'm mistaken
05:25:10FromDiscord<user2m> I'll check out libharu
06:17:32*nyeaa4928423010 quit (Ping timeout: 258 seconds)
06:33:56FromDiscord<that_dude.> In reply to @xtrayambak "Nim could really use": I do kinda second this. It would be cool if errors gave some addition resources such as common issues or links to additional resources
07:02:56FromDiscord<Zoom> use pdftk to cut pages. Extracting text from PDFs is a pain, do you control the input?↵(@user2m)
07:47:14*mahlon quit (Ping timeout: 258 seconds)
07:53:04*mahlon joined #nim
09:04:08FromDiscord<Phil> Hmm anyone have an idea on how you can detect whether a type is an object variant without using a macro?
09:39:19FromDiscord<Elegantbeef> @Phil https://play.nim-lang.org/#ix=4KJC
09:40:06FromDiscord<Elegantbeef> Remove the cruft call it a win
09:58:40FromDiscord<Phil> sent a code paste, see https://play.nim-lang.org/#ix=4KJI
09:58:44FromDiscord<Phil> In reply to @Elegantbeef "<@180601887916163073> https://play.nim-lang.org/#ix": Okay I will admit that is cool
09:59:58*neceve joined #nim
10:13:50FromDiscord<Phil> In reply to @Elegantbeef "<@180601887916163073> https://play.nim-lang.org/#ix": Is the first line even necessary?
10:14:07FromDiscord<Phil> I ran it on 1.6.12 and 2.0 and both worked without it
10:16:48*gooba_ joined #nim
10:17:48FromDiscord<Phil> Which I don't get, how the hell does this work without the first line
10:18:37*gooba quit (Ping timeout: 255 seconds)
10:45:58FromDiscord<Phil> I just triple realized how nuts that concept is given that it's a generic over a group of types
10:46:40FromDiscord<jaar23> https://github.com/nais314/stui↵Hi @enthus1ast is this tui repo still being maintaining? I'm planning to build some tui application and seeing this. 👍
10:53:55FromDiscord<cephonaltera> wait you can call procs in concept definitions?
10:54:25FromDiscord<Chronos [She/Her]> If they can run at compile time, yeah
10:54:29FromDiscord<Chronos [She/Her]> I think so, at least
11:14:11FromDiscord<cephonaltera> man i can never figure out how concepts want me to describe something
11:16:15FromDiscord<cephonaltera> i guess its just not the intended usecase https://media.discordapp.net/attachments/371759389889003532/1170682988732895243/image.png?ex=6559ee7e&is=6547797e&hm=bd99465f46d5b6acc45db3a603bca40a649d8733a658cc05e5dea3209a68c609&
11:19:55FromDiscord<cephonaltera> sent a code paste, see https://play.nim-lang.org/#ix=4KK2
11:22:03FromDiscord<that_dude.> sent a code paste, see https://play.nim-lang.org/#ix=4KK3
11:22:04FromDiscord<that_dude.> I couldn't get the static part to work
11:22:07FromDiscord<demotomohiro> In reply to @cephonaltera "man i can never": concept is somekind of type class.↵Your Balls can says I can do `x + 1 > 3` with Balls.↵But you have to implement `+` proc that takes Balls yourself.
11:22:38FromDiscord<that_dude.> (edit)
11:23:09FromDiscord<that_dude.> Concepts don't actually do any logic. They just help constrain generic arguments
11:27:33FromDiscord<cephonaltera> well this does logic, its just compile time https://media.discordapp.net/attachments/371759389889003532/1170685830466113636/image.png?ex=6559f124&is=65477c24&hm=b9048cb67cb79c2621f8d9a4fa28b2d9d21914ee8f565886659c35436c359acb&
11:31:18FromDiscord<ezquerra> Is there a way to view the `nim code` that is the result of all the macro and template substitutions?
11:31:49FromDiscord<ezquerra> In order to debug macros and templates...
11:36:14FromDiscord<demotomohiro> In reply to @ezquerra "Is there a way": https://nim-lang.org/docs/macros.html#expandMacros.m,typed
13:07:55NimEventerNew thread by geohuz: Error running nim postgresql client os macos, see https://forum.nim-lang.org/t/10606
13:10:25FromDiscord<ezquerra> In reply to @demotomohiro "https://nim-lang.org/docs/macros.html#expandMacros.": Thanks. Is there something similar for templates?
13:11:36FromDiscord<ezquerra> Ideally what I’d like to see is Nim code that only has procs and funcs, no macros or pragmas since all would have been expanded
13:26:56FromDiscord<demotomohiro> Doesn't `expandMacro` work to template?
13:31:01FromDiscord<summarity> How can I access an `extern` global variable from a C compilation unit in Nim? E.g. file.c declared `extern void something;` and is compiled via `{. compile: "file.c" .}`
13:32:05FromDiscord<demotomohiro> `expandMacro` not only expand macros and templates but also constant expressions:↵https://play.nim-lang.org/#ix=4KKw
13:35:45FromDiscord<demotomohiro> In reply to @summarity "How can I access": If you have header file `file.h`, it is probably `let something{.header: "file.h".}: pointer`
13:36:52FromDiscord<demotomohiro> or `var something{.header: "file.h".}: pointer ` if you want to change the variable.
13:47:23*CO2 quit (Quit: WeeChat 4.1.1)
14:00:51NimEventerNew question by vijay shankar: Opening File in Nim, see https://stackoverflow.com/questions/77426194/opening-file-in-nim
14:20:37*CO2 joined #nim
14:30:14*def- quit (Quit: -)
14:31:26*def- joined #nim
14:33:05*gooba_ quit (Quit: Leaving)
14:33:23*gooba joined #nim
14:38:26FromDiscord<kcvinker5420> sent a code paste, see https://play.nim-lang.org/#ix=4KKO
14:38:57FromDiscord<System64 ~ Flandre Scarlet> Hi↵What is the more performant?↵Writing data in a one big buffer and writing the entire buffer on file at once? (uses more memory)↵Or Writing on a small buffer and then writing on file multiple times? (uses less memory)
14:41:39FromDiscord<kcvinker5420> sent a code paste, see https://play.nim-lang.org/#ix=4KKQ
14:42:03FromDiscord<kcvinker5420> sent a code paste, see https://play.nim-lang.org/#ix=4KKR
14:42:40FromDiscord<demotomohiro> In reply to @kcvinker5420 "When using operator overloading,": Use operator overloading when it makes sense rather than using alphabet name.
14:43:11FromDiscord<kcvinker5420> In reply to @demotomohiro "Use operator overloading when": Was trying to do some ugly trick
14:43:21FromDiscord<kcvinker5420> (edit) "trick" => "tricks"
14:44:48FromDiscord<demotomohiro> In reply to @sys64 "Hi What is the": It depends. iirc, Nim's file io uses buffer in default when writing to a file.
14:47:08FromDiscord<griffith1deadly> In reply to @sys64 "Hi What is the": if it server application, write to file once ↵if client application, write to file multiple
14:48:13FromDiscord<System64 ~ Flandre Scarlet> In reply to @griffith1deadly "if it server application,": What happens is I want to write a waveform↵But since my software runs natively and on Emscripten, I have 2 differents approaches : https://media.discordapp.net/attachments/371759389889003532/1170736332952326214/message.nim?ex=655a202d&is=6547ab2d&hm=e72e86db62ec388c4d184ead74d0c90535f116aa63a5b80477d2f89afc6c8e87&
14:49:05FromDiscord<Phil> Was there a simple way to check if x is one of several types?
14:49:18FromDiscord<Phil> Something like `x of [A, B]`?
15:04:26FromDiscord<treeform> In reply to @sys64 "What happens is I": Did you run into the fact that ffmpeg does not produce a "clean" .wav but ads this strange audioFormat == 65534 some sort of Microsoft header to it? https://github.com/treeform/slappy/commit/96b5b04ca4171d8524864a075e84ceac92e11ec0
15:06:24FromDiscord<treeform> Run into this recently
15:06:40FromDiscord<System64 ~ Flandre Scarlet> In reply to @treeform "Did you run into": Weird↵But the wav I export isn't a recording, it's computed
15:06:41FromDiscord<treeform> (edit) "Run" => "Ran"
15:07:00FromDiscord<treeform> I think this is more about reading. Do you read wav as well?
15:07:28FromDiscord<System64 ~ Flandre Scarlet> No, only export
15:07:32FromDiscord<treeform> ok
15:11:03FromDiscord<System64 ~ Flandre Scarlet> In reply to @griffith1deadly "if it server application,": I can limit the buffer to 8MB, it wouldn't be that harmful for memory
15:13:21FromDiscord<System64 ~ Flandre Scarlet> Since one waveform can have up to 4096 samples↵A sample can use up to 2 bytes↵And you can export up to 1024 waveforms at once
15:29:23FromDiscord<System64 ~ Flandre Scarlet> Btw is it possible to do async with Emscripten ?
15:48:08Amun-Rayou can call sync code with async js (-sASYNCIFY)
15:59:51FromDiscord<System64 ~ Flandre Scarlet> In reply to @Amun-Ra "you can call sync": The code that must run async is written in Nim and has the EMSCRIPTEN_KEEPALIVE pragma
16:00:04FromDiscord<System64 ~ Flandre Scarlet> and this code is also called from Nim
16:02:18Amun-Raso syncify it
16:05:43Amun-Rayou can't intermix nim async and js async
16:06:48*CO2 quit (Quit: WeeChat 4.1.1)
16:07:53FromDiscord<Phil> Dangit, the Concept doesn't catch ref object variants
16:17:49*CO2 joined #nim
16:24:24FromDiscord<System64 ~ Flandre Scarlet> In reply to @Amun-Ra "you can't intermix nim": No, I want Nim to call async Nim
16:28:34FromDiscord<Phil> ElegantBeef I summon thee to ask if concepts acctually work with macros because mine currently aren't↵(Trying the macro approach to figuring out whether a type is an object variant type because I can't figure out how to cover ref-object-variants
16:28:53FromDiscord<Phil> (edit) "ref-object-variants" => "ref-object-variants)"
16:34:36FromDiscord<jmgomez> In reply to @isofruit "Something like `x of": `typeof(x) is A | B `
16:35:09FromDiscord<jmgomez> In reply to @isofruit "ElegantBeef I summon thee": they should work with macros, yes
16:35:36FromDiscord<kcvinker5420> sent a code paste, see https://play.nim-lang.org/#ix=4KLo
16:37:19FromDiscord<jmgomez> In reply to @kcvinker5420 "I want to use": https://nim-lang.org/1.6.6/dynlib.html
16:37:45FromDiscord<kcvinker5420> Thanks @jmgomez 🙂
16:39:24FromDiscord<demotomohiro> In reply to @kcvinker5420 "I want to use": Compile with `--clib:shellscalingapi`
16:40:21FromDiscord<kcvinker5420> Okay, But is there any ways to tell this to nim in source code ? Like the `pragma` in D ?
16:42:37FromDiscord<jmgomez> `passL` should be equivalent to what demo posted (specifying the expected name)↵https://nim-lang.org/docs/manual.html#implementation-specific-pragmas-passl-pragma
16:43:07NimEventerNew thread by stbalbach: Detect replacement/binary characters?, see https://forum.nim-lang.org/t/10607
16:46:16FromDiscord<kcvinker5420> In reply to @demotomohiro "Compile with `--clib:shellscalingapi`": Worked with this
16:46:22Amun-RaSystem64: you don't need to expose such a function then
16:46:30FromDiscord<kcvinker5420> (edit) "In reply to @demotomohiro "Compile with `--clib:shellscalingapi`": Worked with this" => "sent a code paste, see https://play.nim-lang.org/#ix=4KLu"
16:46:46FromDiscord<taperfade> heyyy
16:46:54FromDiscord<kcvinker5420> In reply to @jmgomez "`passL` should be equivalent": Let me check. Thanks
16:46:58FromDiscord<taperfade> i have a problem with memalloc
16:47:02FromDiscord<taperfade> memalloc.nim
16:47:36FromDiscord<taperfade> C:\Users\morbo\Desktop\importan\nim-2.0.0_x64\nim-2.0.0\lib\system\memalloc.nim(409, 8) Error: implementation of 'system.getFreeMem()' expected
16:48:02FromDiscord<taperfade> this is the thing causing problems https://media.discordapp.net/attachments/371759389889003532/1170766485011038348/image.png?ex=655a3c41&is=6547c741&hm=819b957dcdd05dc9ca87af6d1143a33946304b9c05fda0fc6c42f062363417b4&
16:48:04FromDiscord<taperfade> idk how to fix
16:48:08FromDiscord<taperfade> or what went wrong
16:48:26FromDiscord<user2m> In reply to @Zoom "use pdftk to cut": is pdftk a library? from my cursory google search it looks like a program
16:50:16FromDiscord<.bobbbob> whats a good library for user input like gnu readline? stdin.readline isnt cutting it
16:50:42FromDiscord<griffith1deadly> In reply to @taperfade "C:\Users\morbo\Desktop\importan\nim-2.0.0_x64\nim-2": add to compile command -d:hasAlloc
16:50:53FromDiscord<user2m> In reply to @.bobbbob "whats a good library": maybe this https://github.com/jjv360/nim-termui
16:51:29FromDiscord<taperfade> In reply to @griffith1deadly "add to compile command": to ?
16:52:14Amun-Rataperfade: run nim with --listcmd and show complete commandline
16:53:36Amun-Rawhat target are you compiling for?
16:54:23FromDiscord<taperfade> idk
16:54:31FromDiscord<taperfade> i get this error
16:54:40FromDiscord<taperfade> with just echo "hello world"
16:54:43FromDiscord<taperfade> im so confused
16:55:20Amun-RaI'm not a windows user but I suspect that should work ootb like it does on Linux
16:55:42Amun-Ras/that/this/
16:56:09FromDiscord<taperfade> what
16:56:49Amun-Rahttps://play.nim-lang.org/#ix=4KLA
16:57:48FromDiscord<.bobbbob> In reply to @user2m "maybe this https://github.com/jjv360/nim-termui": doesnt seem to work with nim 2.0
16:58:23FromDiscord<taperfade> guys
16:58:29FromDiscord<taperfade> should i reinstall nim
16:58:31FromDiscord<taperfade> or smth
16:58:33FromDiscord<taperfade> like that
16:59:15FromDiscord<taperfade> https://media.discordapp.net/attachments/371759389889003532/1170769309832847401/image.png?ex=655a3ee3&is=6547c9e3&hm=0ea987e890a0dea7d0f0abb2f69c4a91f4af8affc7fea840815ade5c93b897d2&
16:59:26FromDiscord<taperfade> what does it want from me
16:59:46FromDiscord<taperfade> i feel like im trying to communicate to a ancient long forgotten god that speaks in aremaic riddles
17:00:02Amun-RaI'd reinstall it
17:00:37FromDiscord<.bobbbob> did you delete stuff from the system library haha
17:00:44FromDiscord<taperfade> i dont think so
17:00:50FromDiscord<kcvinker5420> sent a code paste, see https://play.nim-lang.org/#ix=4KLC
17:01:25FromDiscord<taperfade> lets pray it doesnt break my c compiler again
17:01:40FromDiscord<taperfade> i wish windows would just work with coding
17:01:42FromDiscord<taperfade> i hate linux
17:01:55Amun-Ra¯\(ツ)/¯
17:04:27FromDiscord<Chronos [She/Her]> In reply to @sys64 "No, I want Nim": It shouldn't be any different from how it works normally in Nim, then
17:05:03Amun-Ratrue, that functions shouldn't be even exposed as external
17:05:08Amun-Rafunction*
17:05:28FromDiscord<taperfade> i just want to try a reverse shell script
17:05:34FromDiscord<taperfade> why does nim have to break
17:05:38FromDiscord<taperfade> big karma
17:05:42FromDiscord<taperfade> 😭
17:06:27Amun-RaI'm off then
17:06:55FromDiscord<taperfade> ok
17:07:04FromDiscord<taperfade> anyway
17:07:17FromDiscord<taperfade> i want to work on something other than silly malicious stuff
17:07:26FromDiscord<taperfade> so boring
17:09:02FromDiscord<Chronos [She/Her]> What if I use Nimscript as a buildscript for Java projects /j
17:09:07FromDiscord<Chronos [She/Her]> That'd be horrid but a bit funny
17:09:33Amun-Rathat'd be unorthodox
17:11:48FromDiscord<griffith1deadly> In reply to @chronos.vitaqua "What if I use": also nimble for gradle replacing
17:12:02FromDiscord<taperfade> guys please help
17:12:06FromDiscord<taperfade> what does it mean
17:12:11FromDiscord<taperfade> Error: implementation of 'system.getFreeMem()' expect
17:12:16NimEventerNew thread by icebergg: Experimental: "inferGenericTypes" -- unknown experimental feature, see https://forum.nim-lang.org/t/10608
17:12:30Amun-Rait means your nim does not function properly
17:12:30FromDiscord<griffith1deadly> In reply to @taperfade "guys please help": reinstall your nim instance
17:12:38FromDiscord<System64 ~ Flandre Scarlet> sent a code paste, see https://play.nim-lang.org/#ix=4KLG
17:12:44FromDiscord<taperfade> In reply to @griffith1deadly "reinstall your nim instance": erm
17:12:46FromDiscord<taperfade> what
17:12:48FromDiscord<Chronos [She/Her]> In reply to @griffith1deadly "also nimble for gradle": I wonder how this would even be done tbh, I'd imagine it would not integrate well without being able to compile to the JVM lol
17:12:51Amun-RaI used make for my java projects, not any typical java rubbish
17:13:09Amun-Rataperfade: reinstall means remove the current nim installed and install new one
17:13:24FromDiscord<taperfade> how do i delete it tho
17:14:39FromDiscord<griffith1deadly> you install nim with choosenim?
17:14:50FromDiscord<taperfade> what the flip is choosenim
17:14:52FromDiscord<taperfade> alright
17:14:52FromDiscord<taperfade> wait
17:16:30FromDiscord<Chronos [She/Her]> In reply to @Amun-Ra "I used make for": Sounds hellish, but probably better than working with Maven and Gradle lol
17:17:23Amun-RaChronos: it wasn't that hellish tbh, I used no external deps outside of stdlib, even making jars is pretty easy :)
17:18:08FromDiscord<taperfade> yooo it works
17:18:09FromDiscord<taperfade> thankies
17:18:31FromDiscord<Chronos [She/Her]> In reply to @Amun-Ra "Chronos: it wasn't that": ah, I assumed you used external projects lol
17:22:16Amun-Ra:)
17:22:49Amun-Raiirc it was jdk 7… how time flies…
17:26:11FromDiscord<taperfade> how do i define a socket
17:33:51FromDiscord<taperfade> let sock:Socket = ???
17:36:26FromDiscord<Chronos [She/Her]> Something called the docs may help
17:36:26FromDiscord<Chronos [She/Her]> https://nim-lang.org/docs/net.html#newSocket%2CDomain%2CSockType%2CProtocol
17:37:22FromDiscord<taperfade> holy shit
17:37:42FromDiscord<taperfade> now
17:37:59FromDiscord<taperfade> why did i not find that
17:38:04FromDiscord<taperfade> the search function is ass
17:39:49FromDiscord<taperfade> whats a sock type
17:40:40FromDiscord<Chronos [She/Her]> I searched on google for "Sockets nim" and searched `newSocket` and it game up, not too hard lol
17:41:37Amun-RaI don't think search bar is the hindrance in this case…
17:42:43FromDiscord<taperfade> ok
17:42:46FromDiscord<taperfade> anyways
17:42:51FromDiscord<taperfade> whats a sockType
17:43:18FromDiscord<taperfade> oh i think i got it
17:45:03FromDiscord<taperfade> nvm
17:45:04FromDiscord<.aingel.> In reply to @griffith1deadly "if it server application,": Why is this?
17:45:11FromDiscord<taperfade> chronos
17:45:12FromDiscord<taperfade> youre smart
17:45:21FromDiscord<taperfade> what do i put into the proc
17:45:21FromDiscord<Chronos [She/Her]> Hm... Do I need to do anything with `HiddenStdConv` when I'm generating code or
17:45:51FromDiscord<Chronos [She/Her]> In reply to @taperfade "what do i put": I don't mess with sockets, so idk
17:46:38FromDiscord<griffith1deadly> In reply to @.aingel. "Why is this?": i always stick to the thinking that if it's a server - memory caching is the best option, because CPU time can be more expensive
17:47:07FromDiscord<taperfade> omfg
17:47:09FromDiscord<taperfade> i read the docs
17:47:10FromDiscord<taperfade> i got it
17:47:50FromDiscord<.aingel.> In reply to @griffith1deadly "i always stick to": Interesting
17:48:28FromDiscord<griffith1deadly> In reply to @.aingel. "Interesting": the minecraft (mod) development is crippling people
17:59:29FromDiscord<.aingel.> Because of server memory caching?
18:05:54FromDiscord<griffith1deadly> In reply to @.aingel. "Because of server memory": because it fully singlethreaded (1.7.10) and you as server/project/online modpack creator need squeeze maximum performance
18:06:58FromDiscord<Phil> Also:↵Webdev servers are about databases, caching, and caching and databases.↵So using caching correctly is like 50% of the equation to get a fast server
18:07:19FromDiscord<Phil> It's also about databases, databases and databases... did I mention caching?
18:20:42FromDiscord<.aingel.> In reply to @griffith1deadly "because it fully singlethreaded": Async?
18:23:24FromDiscord<griffith1deadly> In reply to @.aingel. "Async?": only for yourself code, there are a lot of mods in minecraft that are written by people who don't really know anything about code and its optimization. and also handling a lot of tiles/entities can put tps in 1-2 if there are a couple of performance bugs in there, even small ones)
18:28:53FromDiscord<griffith1deadly> in EnderIO mod for example calling Enum.values() (native method that always allocate native array) can fall your tps from 20 to 13-14 with few pipes
18:28:53FromDiscord<.aingel.> Ouch, I see
18:28:56FromDiscord<.aingel.> Yeah makes sense
18:36:04FromDiscord<griffith1deadly> sent a long message, see http://ix.io/4KLX
18:36:48FromDiscord<ElegantBeef> In reply to @isofruit "ElegantBeef I summon thee": They should assuming you do not try to overload untyped macros
18:37:50FromDiscord<Phil> In reply to @elegantbeef "They should assuming you": I abandoned the approach the nanosecond I saw that apparently the type you get in a concept is looking odd (some kind of `Alias`popping up in the description). I moved back to the proc based approach and adjusted it to also support ref variants
18:38:26FromDiscord<ElegantBeef> Right you'd want to do `proc[T: MyConcept](bleh: T) = myMacro(T)`
18:38:47FromDiscord<ElegantBeef> Implicit generics do not give you the type, but the concept
18:39:33FromDiscord<Phil> Ahhhh... oh well, got away without it so all good in the end
18:39:44FromDiscord<Phil> But good to know in the future, thank!
18:40:57FromDiscord<ElegantBeef> Anyway it's always fun to do type introspection with procs, one of these days I'll figure out a way to find all the branch fields without a macro 😄
19:03:23FromDiscord<Chronos [She/Her]> How would y'all recommend I format the ideas/features from other protocols I should use (if I don't end up just using one of them in the end)
19:05:20FromDiscord<System64 ~ Flandre Scarlet> In reply to @griffith1deadly "because it fully singlethreaded": Also↵Java
19:06:21FromDiscord<griffith1deadly> In reply to @sys64 "Also Java": minecraft problem is not java
19:06:51FromDiscord<griffith1deadly> minecraft problem - very bad code quality and singlethreading
19:07:10FromDiscord<System64 ~ Flandre Scarlet> In reply to @griffith1deadly "minecraft problem - very": Is it still the case with 1.20?
19:07:46FromDiscord<Chronos [She/Her]> They've done some optimisations but it's still getting heavier as time goes on :p
19:08:41FromDiscord<System64 ~ Flandre Scarlet> In reply to @chronos.vitaqua "They've done some optimisations": True↵At the same time you have the Bedrock edition which is faster but sucks at the same time
19:09:24FromDiscord<Chronos [She/Her]> Because they don't focus on parity with it, sadly
19:09:41FromDiscord<griffith1deadly> In reply to @sys64 "Is it still the": in last versions code quality getting better, and with 1.13 or 1.14 it stopped being single-threaded (different logic and render threads), but still bad code
19:09:50FromDiscord<Chronos [She/Her]> Also JSON sucks for plugin stuff, but they have to use that for iOS sadly
19:10:22FromDiscord<System64 ~ Flandre Scarlet> It sucks becaue :↵1) No modding↵2) Microtransactions, Microtransactions, Microtransactions and Microtransactions
19:10:33FromDiscord<griffith1deadly> In reply to @chronos.vitaqua "Also JSON sucks for": in ios can use lua, or i misread?
19:11:00FromDiscord<Chronos [She/Her]> In reply to @griffith1deadly "in ios can use": Can't have any code be executed iirc
19:11:15FromDiscord<Chronos [She/Her]> In reply to @sys64 "It sucks becaue :": Rip
19:11:40FromDiscord<System64 ~ Flandre Scarlet> In reply to @chronos.vitaqua "Can't have any code": Don't worry, soon we will be able to sideload apps outside of the app store
19:11:40FromDiscord<griffith1deadly> In reply to @chronos.vitaqua "Can't have any code": appstore have many application with lua processing
19:12:12FromDiscord<Chronos [She/Her]> In reply to @griffith1deadly "appstore have many application": It does? Huh, maybe I'm mistaken
19:12:15FromDiscord<griffith1deadly> genshin impact for example
19:12:21FromDiscord<Chronos [She/Her]> In reply to @sys64 "Don't worry, soon we": Mojang won't allow that
19:12:30FromDiscord<System64 ~ Flandre Scarlet> In reply to @chronos.vitaqua "Mojang won't allow that": wdym?
19:12:31FromDiscord<Chronos [She/Her]> In reply to @griffith1deadly "genshin impact for example": Is the code inputted by the user?
19:12:42FromDiscord<Chronos [She/Her]> In reply to @sys64 "wdym?": They'll still have to be available through the app store
19:12:49FromDiscord<Chronos [She/Her]> And the app store has restrictions on this
19:12:51FromDiscord<System64 ~ Flandre Scarlet> Yeah true
19:12:59FromDiscord<System64 ~ Flandre Scarlet> Anyways, Apple is Bad!!
19:13:00FromDiscord<griffith1deadly> In reply to @chronos.vitaqua "Is the code inputted": no, bun it gets from the server, not static in application
19:13:08FromDiscord<griffith1deadly> (edit) "bun" => "but"
19:13:17FromDiscord<Chronos [She/Her]> Hm, not sure then
19:13:22FromDiscord<Chronos [She/Her]> In reply to @sys64 "Anyways, Apple is Bad!!": Agreed
19:13:30FromDiscord<System64 ~ Flandre Scarlet> https://tenor.com/bA2C1.gif
19:13:34FromDiscord<Chronos [She/Her]> In reply to @chronos.vitaqua "Hm, not sure then": Swear there was some restrictions about this
19:13:38FromDiscord<System64 ~ Flandre Scarlet> I love to do this joke
19:14:48FromDiscord<griffith1deadly> In reply to @sys64 "It sucks becaue :": for bedrock exist official mojang ui library in react
19:15:12FromDiscord<System64 ~ Flandre Scarlet> React?↵So JavaScript?
19:15:12FromDiscord<griffith1deadly> (edit) "In reply to @sys64 "It sucks becaue :": for bedrock exist official mojang ui library in react ... " added "(typescript)"
19:15:16FromDiscord<griffith1deadly> yes
19:15:21FromDiscord<System64 ~ Flandre Scarlet> Oh
19:16:06FromDiscord<griffith1deadly> https://github.com/Mojang/ore-ui
19:16:59FromDiscord<System64 ~ Flandre Scarlet> Oh, interesting
19:20:36FromDiscord<System64 ~ Flandre Scarlet> sent a code paste, see https://play.nim-lang.org/#ix=4KMh
19:21:43*Arthur joined #nim
19:26:08FromDiscord<System64 ~ Flandre Scarlet> sent a code paste, see https://play.nim-lang.org/#ix=4KMj
19:26:36FromDiscord<System64 ~ Flandre Scarlet> sent a code paste, see https://play.nim-lang.org/#ix=4KMk
19:27:40FromDiscord<System64 ~ Flandre Scarlet> sent a code paste, see https://play.nim-lang.org/#ix=4KMl
19:36:00FromDiscord<griffith1deadly> In reply to @sys64 "Btw about async stuff": i think emscripten mean JavaScript async, not nim
19:36:32FromDiscord<System64 ~ Flandre Scarlet> In reply to @griffith1deadly "i think emscripten mean": Yeah but I want to run some Nim code asynchronously
19:36:33*xet7 joined #nim
19:37:27FromDiscord<griffith1deadly> you can't, because nim async does not support emscripten
19:38:11FromDiscord<System64 ~ Flandre Scarlet> In reply to @griffith1deadly "you can't, because nim": Oh! Woops!↵Well, users will have to deal with huge lag during export then :/
20:18:46FromDiscord<taperfade> guys
20:18:49FromDiscord<taperfade> guys
20:18:55FromDiscord<summarity> I think I stumbled upon a bug in the push/pop pragma logic, can someone try to see if this repros: https://gist.github.com/turbo/0eafeca307945273a980c2f4ee63d960 ?
20:19:06FromDiscord<taperfade> lets say i have a server and a client , how do i send tasks to the clinet
20:19:07FromDiscord<taperfade> like
20:19:15FromDiscord<taperfade> opening firefox
20:22:04FromDiscord<System64 ~ Flandre Scarlet> ``Warning: conversion to enum with holes is unsafe``↵Is there a way to mute those warnings?
20:23:59FromDiscord<Phil> In reply to @sys64 "``Warning: conversion to enum": Should be with the compiler flag to disable specific classes of warnings
20:24:00FromDiscord<Elegantbeef> Stop doing it or use `--warning:..:off`
20:24:21FromDiscord<Phil> See warning off flag: gtk48
20:24:24FromDiscord<Phil> (edit) "gtk48" => "https://nim-lang.org/docs/nimc.html"
20:33:08FromDiscord<System64 ~ Flandre Scarlet> In reply to @isofruit "Should be with the": I can't do that into the config.nims? https://media.discordapp.net/attachments/371759389889003532/1170823135151538206/image.png?ex=655a7104&is=6547fc04&hm=32b33f7a4a3ec5c32744fa13c2bb4158b078fe95f9b3072c16c9d5f013e255d7&
20:33:48*__________ joined #nim
20:34:36FromDiscord<Elegantbeef> Probably need `switch("warning", "HoleEnumConv:off")`
20:34:38FromDiscord<Elegantbeef> Think that works
20:34:40*_________ quit (Ping timeout: 258 seconds)
20:39:56FromDiscord<demotomohiro> `--warning:"HoleEnumConv:off"` might work.
20:40:22FromDiscord<demotomohiro> https://nim-lang.org/docs/nimscript.html#--.t%2Cuntyped%2Cuntyped
20:45:29*__________ quit (Quit: leaving)
20:53:19*neceve quit (Ping timeout: 264 seconds)
20:54:09*_________ joined #nim
20:58:20FromDiscord<taperfade> guys
20:58:28FromDiscord<taperfade> what is that array called again
20:58:31FromDiscord<taperfade> that can change sizes
20:58:35FromDiscord<taperfade> i forgor
21:00:11Amun-Raseq?
22:19:17xutaxkamaysorry, this is maybe not related to nim itself at all, but i wanted to try out really the language today, so i went to setup cocvim with the lsp server, but i don't see any semantic highlighting?
22:25:19xutaxkamayim just hoping this is something wrong with my configs, let me know if you the steps on how i installed nim or configs
22:25:42FromDiscord<JJ> xutaxkamay: check out https://github.com/alaviss/nim.nvim
22:26:04FromDiscord<JJ> there is no highlighting merged into native vim regex highlighting files or nvim-treesitter highlighting, afaik
22:26:16xutaxkamayokay, thank you
22:30:29xutaxkamayokay yeah awesome i got now some colors, thanks again
22:41:36FromDiscord<leorize> nvim-treesitter backend for nim has been upstreamed fwiw
22:41:53FromDiscord<leorize> install `nim` and `nim_format_string` parser and you'll get the tree-sitter goodness
22:43:10FromDiscord<.aingel.> In reply to @leorize "install `nim` and `nim_format_string`": Nice!
22:43:18FromDiscord<.aingel.> What's nim_format_string
22:43:21FromDiscord<.aingel.> That's another lang to add?
22:52:16FromDiscord<leorize> it's formatting for `fmt"string"`
22:52:56FromDiscord<leorize> s/formatting/syntax/
23:09:19FromDiscord<.aingel.> Oh gotcha
23:59:13*CO2 quit (Quit: WeeChat 4.1.1)