| 00:00:40 | FromDiscord | <demotomohiro> <@&371760044473319454> |
| 00:48:36 | FromDiscord | <primechampion270> discord.gg/prettygirls |
| 00:49:28 | FromDiscord | <topetope0358> discord.gg/prettygirls |
| 00:49:40 | FromDiscord | <demotomohiro> <@&371760044473319454> |
| 01:28:29 | FromDiscord | <m______________________________l> In reply to @heysokam "> But every new": maybe exaggeration |
| 01:58:34 | FromDiscord | <riku5543> They really spammed all the channels huh 😭 |
| 02:45:40 | FromDiscord | <DetermiedNim1> In reply to @alipolo17777 "i love languages like": like ruby! |
| 04:02:47 | * | rockcavera quit (Remote host closed the connection) |
| 04:07:40 | * | acidsys quit (Ping timeout: 245 seconds) |
| 04:09:42 | * | acidsys joined #nim |
| 04:21:17 | * | rockcavera joined #nim |
| 04:40:53 | * | om3ga quit (Ping timeout: 252 seconds) |
| 07:01:43 | * | tiorock joined #nim |
| 07:01:43 | * | tiorock quit (Changing host) |
| 07:01:43 | * | tiorock joined #nim |
| 07:01:43 | * | rockcavera quit (Killed (zirconium.libera.chat (Nickname regained by services))) |
| 07:01:43 | * | tiorock is now known as rockcavera |
| 07:08:45 | FromDiscord | <riku5543> sent a long message, see https://pasty.ee/YaJGKEXz |
| 07:16:57 | * | om3ga joined #nim |
| 07:19:59 | * | kick455 joined #nim |
| 07:23:43 | * | oculux quit (Ping timeout: 276 seconds) |
| 07:58:00 | * | beholders_eye joined #nim |
| 08:38:28 | * | rockcavera quit (Ping timeout: 276 seconds) |
| 08:43:39 | * | rockcavera joined #nim |
| 08:43:43 | FromDiscord | <_timurski> In reply to @riku5543 "I watched the social": I'm not familiar with the specifics of what araq said but I'd imagine it's the same thing as knowing how locks work in any language |
| 08:43:56 | FromDiscord | <_timurski> as in being familiar with atomics, memory safety, memory visibility |
| 08:45:24 | FromDiscord | <riku5543> In reply to @_timurski "as in being familiar": Does nim have native atomics? Are there any good resources to learn more about them? (It's okay if you don't wanna answer, I could look it up as well) |
| 08:46:03 | FromDiscord | <_timurski> there is std/atomics and probably more stuff related to locks, and you could always read the source code :> |
| 08:46:46 | FromDiscord | <_timurski> though if you wanna learn about them in general then there's other more General resources online for that, just googling how they work at the hardware level since it's not Nim specific |
| 08:47:01 | FromDiscord | <riku5543> Ah okay, thanks :D |
| 09:05:05 | FromDiscord | <shalokshalom> In reply to @riku5543 "I watched the social": Elixir can do that with GenServer, F# has MailboxProcessor and so on. Can all be global and mutable. 🙂 |
| 09:08:46 | FromDiscord | <riku5543> Huh, so how does it access the global memory safely? Does it use atomics internally? |
| 09:35:34 | FromDiscord | <_timurski> In reply to @riku5543 "Huh, so how does": i'm personally not familiar with the implementation details but i think you can get the idea across with how you would do it if you only knew about atomics: have an atomic `bool` that a thread sets when it's using it and releases when it's no longer using it, preventing any concurrent modifications |
| 09:37:00 | FromDiscord | <_timurski> like for example a mutex just means only one thread has access to the variable at any given time (memory safety), + it has guarantees that that thread correctly sees the writes of any previous thread and correctly writes its results before any other thread accesses it (memory visibility) |
| 09:38:40 | FromDiscord | <riku5543> You're awesome, thank you :D Multithreading still scares me so learning about this stuff should make it a lot easier. (And make async programs easier to write too \:P) |
| 09:39:37 | FromDiscord | <_timurski> the low level details can get kind of complex but to be honest you don't need to go down to the hardware instruction level (at least i haven't felt the need for that, and ive done a good bit of work with multithreading for optimization) |
| 09:40:16 | FromDiscord | <_timurski> In reply to @_timurski "as in being familiar": once you understand those few concepts and how constructs like condition variables and locks are based on the same principles you won't have issues with parallelism |
| 09:42:30 | FromDiscord | <_timurski> but also i read what you said earlier, all of this stuff only applies if you're talking about a multi threaded environment |
| 09:42:45 | FromDiscord | <_timurski> you don't need anything like atomics or locks in the same sense if you're only on 1 thread |
| 09:42:50 | FromDiscord | <_timurski> which is what most web dev people talk about |
| 09:42:59 | FromDiscord | <_timurski> async != parallel |
| 09:43:15 | FromDiscord | <_timurski> in that case you still might want synchronization mechanisms but it's nothing to do with atomics |
| 09:43:35 | FromDiscord | <_timurski> i dont do anything in web dev, but there is a distinction that exists so make sure you're researching the right thing for you |
| 09:49:35 | FromDiscord | <riku5543> Ah the only issue is that I get a compile-time memory safety error for using a global variable inside an async proc.↵↵(Actually I just checked and it's only because I'm using a callback for asynchttpserver's acceptRequest. Earlier I was using raw asyncnet and could access globals there, maybe because I simply asyncCheck'd a client loop..)↵I'll have to look into that lol |
| 10:17:33 | FromDiscord | <gesee37> sent a code paste, see https://play.nim-lang.org/#pasty=BqRlVlUp |
| 10:18:48 | FromDiscord | <gesee37> (edit) "https://play.nim-lang.org/#pasty=wCpfpLML" => "https://play.nim-lang.org/#pasty=ABbYuBUb" |
| 10:20:08 | FromDiscord | <gesee37> This way async callback can just take the server as input and pass informations around |
| 11:13:09 | FromDiscord | <c0rey1015> sent a long message, see https://pasty.ee/lmYwSdEs |
| 11:13:30 | FromDiscord | <_timurski> In reply to @gesee37 "> There's a particular": also yeah in general global variables are bad practice |
| 11:13:53 | FromDiscord | <_timurski> In reply to @c0rey1015 "👋 Available for New": have you been hired a single time for anything |
| 11:14:10 | FromDiscord | <_timurski> like ever |
| 11:16:28 | FromDiscord | <0ffh> In reply to @_timurski "like ever": In my experience, those are just spam, I see them on every programming or machine learning related server I visit. |
| 11:16:51 | FromDiscord | <krissh.wtf> might be one of those north korean spies lol |
| 11:22:33 | FromDiscord | <_timurski> In reply to @0ffh "In my experience, those": yes ik |
| 11:22:42 | FromDiscord | <_timurski> I just hope one day I'll get a response |
| 11:22:47 | FromDiscord | <_timurski> maybe it'll be entertaining |
| 11:22:55 | FromDiscord | <gesee37> In reply to @_timurski "also yeah in general": I find them useful only when dealealing with macros |
| 11:23:38 | FromDiscord | <gesee37> In reply to @c0rey1015 "👋 Available for New": Hope it works my bro. ↵If you ever get someone I can be your assistant 😭 |
| 11:23:54 | FromDiscord | <gesee37> (edit) "dealealing" => "dealing" |
| 11:53:30 | FromDiscord | <lainlaylie> In reply to @c0rey1015 "👋 Available for New": <@&371760044473319454> spam |
| 15:19:14 | * | beholders_eye quit (Ping timeout: 248 seconds) |
| 16:21:33 | * | beholders_eye joined #nim |
| 18:17:01 | * | Vyrnexis quit (Quit: The Lounge - https://thelounge.chat) |
| 18:17:21 | * | Vyrnexis joined #nim |
| 18:58:38 | * | ttkap quit (Ping timeout: 256 seconds) |
| 19:04:19 | * | derpydoo joined #nim |
| 19:05:36 | * | ttkap joined #nim |
| 20:08:17 | * | derpydoo quit (Remote host closed the connection) |
| 20:17:44 | * | derpydoo joined #nim |
| 20:49:54 | * | beholders_eye quit (Ping timeout: 248 seconds) |
| 22:12:29 | * | beholders_eye joined #nim |
| 22:36:03 | FromDiscord | <emiliajssl> When will Nim migrate its LaTeX generation to Typst 🗣️ |
| 22:50:07 | * | derpydoo quit (Read error: Connection reset by peer) |
| 22:52:31 | FromDiscord | <_timurski> TRUE |
| 22:52:40 | FromDiscord | <_timurski> (nim has latec generation?) |
| 22:52:47 | FromDiscord | <emiliajssl> Yeah |
| 22:52:54 | FromDiscord | <emiliajssl> I'm flabbergasted it does |
| 22:53:04 | FromDiscord | <emiliajssl> That it's even the only one that does |
| 22:53:09 | FromDiscord | <emiliajssl> It's like |
| 22:53:12 | FromDiscord | <emiliajssl> Bongers |
| 22:53:16 | FromDiscord | <emiliajssl> 💯 |
| 22:53:36 | FromDiscord | <_timurski> ah i see https://nim-lang.org/1.6.6/docgen.html#document-types-latex |
| 22:53:44 | FromDiscord | <_timurski> doesn't seem very useful though tbh |
| 22:53:56 | FromDiscord | <emiliajssl> Why not |
| 22:54:33 | FromDiscord | <_timurski> well, i just dont know if many people are actually compiling nim projects with their docs to LaTeX |
| 22:54:43 | FromDiscord | <_timurski> does it support having LaTeX in documentation actually render as LaTeX? |
| 22:54:55 | FromDiscord | <_timurski> i need to read more carefully but that's the only use i could imagine for that specifically |
| 22:55:01 | FromDiscord | <_timurski> which to be fair would be quire awesome |
| 22:55:07 | FromDiscord | <emiliajssl> In reply to @_timurski "does it support having": I feel that would be a bit problematic |
| 22:55:22 | FromDiscord | <emiliajssl> It's honestly easier to convert from markdown to just latex |
| 22:55:34 | FromDiscord | <emiliajssl> Otherwise then scope cree |
| 22:55:35 | FromDiscord | <emiliajssl> P |
| 22:55:41 | FromDiscord | <_timurski> hmm |
| 22:55:44 | FromDiscord | <emiliajssl> People will ask why doesn't this work properly etc |
| 22:55:51 | FromDiscord | <emiliajssl> I mean |
| 22:56:07 | FromDiscord | <emiliajssl> Having fully offline structure PDF documentation of a language is |
| 22:56:14 | FromDiscord | <emiliajssl> Generally useful |
| 22:56:26 | FromDiscord | <_timurski> i've found that it would be very useful to be honest to have docs render be rendered to actual typst blocks for the stuff i'm working on; if i had the time i'd write a neovim plugin or something that lets you do something like that |
| 22:57:27 | FromDiscord | <emiliajssl> Like doc hover on symbols? |
| 22:57:42 | FromDiscord | <_timurski> like so you could have documentation above a proc like↵## Calculates $cal(M)_p^1$ mass matrix |
| 22:57:48 | FromDiscord | <_timurski> (edit) "like↵##" => "like↵`##" | "matrix" => "matrix`" |
| 22:57:55 | FromDiscord | <_timurski> and it would actually render as typst |
| 22:58:01 | FromDiscord | <emiliajssl> Dunno how that would work at least in vscode, I want to think it converts the MD to html to be rendered |
| 22:58:10 | FromDiscord | <emiliajssl> And typst has html conversion planned |
| 22:58:22 | FromDiscord | <_timurski> In reply to @_timurski "like so you could": if there was something that took this and generated docs from it that rendered properly that would be divine |
| 22:58:29 | FromDiscord | <_timurski> In reply to @emiliajssl "Dunno how that would": yeah idk its pretty niche |
| 22:58:58 | FromDiscord | <_timurski> laving latex support is cool and typst would be cool too im just not sure how much it would be used when html exists |
| 22:59:01 | FromDiscord | <emiliajssl> Math would be easier |
| 22:59:05 | FromDiscord | <_timurski> yeah |
| 22:59:10 | FromDiscord | <_timurski> it would be a lot easier 😭 |
| 22:59:10 | FromDiscord | <emiliajssl> At least the math syntax by typst |
| 22:59:14 | FromDiscord | <emiliajssl> Rather than latex |
| 22:59:21 | FromDiscord | <_timurski> you really can't document math well without rendering math symbols |
| 22:59:38 | FromDiscord | <emiliajssl> In Zig I'm just literally forced to make it into a function as |
| 22:59:47 | FromDiscord | <emiliajssl> It doesn't support any math rendering |
| 22:59:51 | FromDiscord | <_timurski> mass matrices have names.. but certain symbols have no good name except the symbol they're given, which might be some curly R or something |
| 23:00:28 | FromDiscord | <_timurski> maybe one day ill write my own text editor which renders math stuff properly everywhere in the code... |
| 23:01:11 | FromDiscord | <emiliajssl> Nim nim nim |
| 23:01:14 | FromDiscord | <emiliajssl> Typst 🗣️ |
| 23:19:12 | FromDiscord | <Aceroph> nim nim nim pss pss pss |
| 23:19:38 | FromDiscord | <Aceroph> does emacs render it properly? i learned that it rendered SVGs↵(@_timurski) |