ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
DTZUZU has joined #crystal-lang
dbohdan has quit [Read error: Connection reset by peer]
chachasmooth has quit [Ping timeout: 245 seconds]
chachasmooth has joined #crystal-lang
chachasmooth has quit [Ping timeout: 245 seconds]
chachasmooth has joined #crystal-lang
sagax has quit [Remote host closed the connection]
hendursa1 has joined #crystal-lang
hendursaga has quit [Ping timeout: 240 seconds]
alexherbo2 has joined #crystal-lang
alexherbo2 has quit [Ping timeout: 240 seconds]
alexherbo2 has joined #crystal-lang
sagax has joined #crystal-lang
trepanger_ has quit [Ping timeout: 252 seconds]
sorcus has quit [Quit: WeeChat 3.1]
<FromGitter> <RespiteSage> I have the benefit of having been in school within the last five years and working with mathematicians on a day-to-day basis. That said, I make frequent use of the math pages on Wikipedia (especially the "identity" ones).
sorcus has joined #crystal-lang
trepanger_ has joined #crystal-lang
trepanger_ has quit [Quit: leaving]
Stephie has quit [Quit: Fuck this shit, I'm out!]
Stephanie has joined #crystal-lang
<FromGitter> <nothratal> Is anyone aware of any possibilities to write single page applications with crystal?
<FromGitter> <Blacksmoke16> use crystal as an API and serve data to some SPA framework
<FromGitter> <Blacksmoke16> would be the simplest approach
<FromGitter> <nothratal> True, but then I have different code basis
<FromGitter> <nothratal> I hoped I can stay in one language. JavaScript is not really my strength :People
<FromGitter> <Blacksmoke16> how would that work then? From my understanding you'd need some js to take over the spa aspect of it no?
<FromGitter> <Blacksmoke16> even if you ssr the initial JS and such
<FromGitter> <MrSorcus> @Blacksmoke16 or he want something like webassembly 😄
<FromGitter> <MrSorcus> @nothratal maybe this can be interested for you - https://github.com/mint-lang/mint
<FromGitter> <nothratal> @MrSorcus thanks but yet another language :)
<FromGitter> <nothratal> I try to keep my toolbox as small as possible
<FromGitter> <MrSorcus> @nothratal ok 😉
alexherbo2 has quit [Ping timeout: 240 seconds]
<FromGitter> <Blacksmoke16> @nothratal what did you have in mind then? afaik you can't have a SPA without js
f1refly has quit [Quit: see ya in hell]
f1refly has joined #crystal-lang
<FromGitter> <nothratal> @Blacksmoke16 also true, I hoped there is somewhere a feature in one of the crystal web frameworks that binds a client side library into the code and somehow transpiles a little bit of crystal to js :P
<FromGitter> <Blacksmoke16> gl
hendursa1 has quit [Quit: hendursa1]
<FromGitter> <Blacksmoke16> im quite certain thats not a thing
<FromGitter> <Blacksmoke16> at least in crystal ecosystem
hendursaga has joined #crystal-lang
<FromGitter> <Blacksmoke16> id be curious to know if *any* framework has that feature :P
<FromGitter> <MrSorcus> @Blacksmoke16 https://dotnet.microsoft.com/apps/aspnet/web-apps/blazor
<FromGitter> <MrSorcus> @Blacksmoke16 but it converts to webassembly. So any language with wasm can do similar stuff... Maybe...
<FromGitter> <Blacksmoke16> ah that makes more sense
<FromGitter> <nothratal> I know that's possible in other languages: kotlin, scala, nim, ruby, some others I can't remember
<FromGitter> <nothratal> mostly because of transpilation to javascript
<FromGitter> <nothratal> but...crystal is still my favourite, my hidden gem :D
<FromGitter> <nothratal> most of the things I write, are for my self or people I'm related to. At work it's mostly java, it's ok, but not really something I enjoy. Privatly I would like to archive things very quickly, so it's a key to avoid multiple code basis, more then one language and every other anoying thing
<FromGitter> <nothratal> and somehow I really enjoy programming crystal
<FromGitter> <Blacksmoke16> best bet would be SSR or have crystal be an API then
<FromGitter> <Blacksmoke16> without getting super complex
<FromGitter> <MrSorcus> > and somehow I really enjoy programming crystal ⏎ ⏎ Then you can try to implement webassembly support in crystal 😆
<repo> hey, a c-binding/gc question: i'm writing bindings for notmuch and there's a database type which gets initialized before all else, with the handle for that db, one can create queries. each of those have destructor functions provided by the c lib. Destructing a query after the db has ben destructed, however, results in a segfault
<repo> so i guess i'm asking how i can somehow make sure the gc destroys the query before destroying the db. i thought this would happen automatically because i pass the db instance (the crystal class wrapping the c handle) to the constructor of the query and store it as an instance var
<repo> s/crystal class/crystal object/
<FromGitter> <oprypin:matrix.org> @FromIRC: uhhhhhh have the query keep a reference to the db
<repo> yeah
<repo> that's exactly what i'm doing
<FromGitter> <oprypin:matrix.org> oh yeah.. :(
<repo> this happens after a few invocations of the api using the bindings
DTZUZU has quit [Read error: Connection reset by peer]
DTZUZU has joined #crystal-lang