Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 04 22:42
    straight-shoota closed #12800
  • Dec 04 22:41
    straight-shoota edited #12800
  • Dec 04 22:41
    straight-shoota closed #12770
  • Dec 04 22:41
    straight-shoota closed #12773
  • Dec 04 20:38
    straight-shoota closed #12819
  • Dec 04 17:58
    HertzDevil synchronize #12784
  • Dec 04 15:51
    Blacksmoke16 review_requested #10648
  • Dec 04 15:50
    Blacksmoke16 synchronize #10648
  • Dec 04 15:48
    Blacksmoke16 synchronize #10648
  • Dec 04 15:00
    Blacksmoke16 closed #12820
  • Dec 04 11:38
    straight-shoota closed #12807
  • Dec 04 11:38
    straight-shoota closed #12808
  • Dec 04 11:38
    straight-shoota closed #12816
  • Dec 04 00:00
    douglascamata closed #12820
  • Dec 03 23:10
    Blacksmoke16 closed #12821
  • Dec 03 23:10
    Blacksmoke16 labeled #12821
  • Dec 03 23:09
    Blacksmoke16 labeled #12821
  • Dec 03 22:13
    hutou labeled #12821
  • Dec 03 22:13
    hutou opened #12821
  • Dec 03 22:01
    douglascamata edited #12820
From IRC (bridge bot)
@FromIRC
<SamantazFox> I prefer to avoid functions that returns many different kind of data.
George Dietrich
@Blacksmoke16
i think you could do something like this (sec)
eh what you have is prob fine
From IRC (bridge bot)
@FromIRC
<SamantazFox> ok ^^
George Dietrich
@Blacksmoke16
is one of the things i dont like about kemal. Raising some exception would make all that a lot easier
which you could do ofc, but would be prob a non trivial change? :shrug:
From IRC (bridge bot)
@FromIRC
<SamantazFox> @Blacksmoke16: I'm looking into it, tbh. There are many places in the code that would need better exception handling...
<SamantazFox> But I'm worried how it would loook like on a large scale
<SamantazFox> my main worry being HTML routes returning JSON, and vice-versa
George Dietrich
@Blacksmoke16
yea would need something in place to know how to serialize the exception given the original request
From IRC (bridge bot)
@FromIRC
<SamantazFox> I'm vaguely looking into it. My ideas atm: 1) have a handler function for the various cases (HTML, JSON, etc...) and pass a proc with the actual function to run; 2) have a huge "catch all" handler and specific exception types for the various cases;
<SamantazFox> I'm not yet sure what will scale the best
George Dietrich
@Blacksmoke16
you have the negotiation component installed already. so really just need to map the mime type to a format, set that on the request somehow, then have some type that handles converting the exception into some common format depending on the format of the request
hardest part is if you need to render specific exceptions differently or something. otherwise if they all share the same format should be pretty doable
From IRC (bridge bot)
@FromIRC
<SamantazFox> @Blacksmoke16: yeah, unfortunately different exceptions are handled differently. Some are ignored (we have fallbacks for that) some are informative for the user (simple "this channel is not available" message) and some provide a full stack trace...
George Dietrich
@Blacksmoke16
handled differently is fine, long as the rendered output of them is somewhat standardized
From IRC (bridge bot)
@FromIRC
<SamantazFox> Uhh, well, it depends x)
<SamantazFox> on the API side, yes, it's standardized
<SamantazFox> On the HTML front-end side, that more complex
George Dietrich
@Blacksmoke16
yea thats fair, not sure how'd you handle that
From IRC (bridge bot)
@FromIRC
<SamantazFox> Maybe that'll come along the various rewrites
<SamantazFox> At least, I'm happy of what the code looks like now ^^
George Dietrich
@Blacksmoke16
:thumbsup:
From IRC (bridge bot)
@FromIRC
<SamantazFox> There's still some duplicate code to take care of, as well as monstruosities (community and comments) but other than that, it's good ^^
<SamantazFox> My next big objective is redis, so you'll probably hear me then x)
George Dietrich
@Blacksmoke16
haha sounds good
moe
@moe:busyloop.net
[m]
hmmm.

that's what chatgpt said when i pasted it the question from above

Did a sudo apt install crystal on my Ubuntu system. Worked ok, but running crystal i results in "Crystal was compiled without interpreter support"
Do I have to build from source?

i think blacksmoke is getting some serious competition there
George Dietrich
@Blacksmoke16
wew, pretty slick
moe
@moe:busyloop.net
[m]
yea, def check it out, it's free https://chat.openai.com/
impressive stuff
Ali Naqvi
@naqvis
most of the time such LLM produces BS in a very sensical sense to end user :smile: As you see the example of Crystl above, I don't believe there is any documentation that says Crystal compiled packages comes with interpreter support. So such misinfo in such presentation manner will cause confusion only :shrug:
George Dietrich
@Blacksmoke16
the mac and arch ones do iirc
Ali Naqvi
@naqvis
TIL :smile:
George Dietrich
@Blacksmoke16
but if its just suggesting to install crystal apt, pretty sure those arent
at least via the official repo
moe
@moe:busyloop.net
[m]
hmm. i asked it again, to tell if afterwards that naqvis says this is wrong.
but now it answered:
Yes, it looks like you would need to build Crystal from source in order to use the interpreter. You can do this by cloning the Crystal repository and running the make command. Alternatively, you can try to find a pre-built package that includes interpreter support.
maybe it's reading this room hmm.
George Dietrich
@Blacksmoke16
:mag:
moe
@moe:busyloop.net
[m]
why is your answer different now from when i asked the first time?
I apologize if my previous response was incorrect. After researching the issue further, it looks like the pre-built Crystal package does not include interpreter support by default. In order to use the interpreter, you would need to build Crystal from source or find a pre-built package that includes interpreter support. My previous response may have been based on incorrect information or a misunderstanding of the question. Again, I apologize for any confusion or inconvenience this may have caused.
jfc...
Ali Naqvi
@naqvis
that's pretty cool
moe
@moe:busyloop.net
[m]
how exactly did you research it further?
I researched the issue by looking at the Crystal documentation and other online resources, as well as checking the available pre-built packages for Crystal on Ubuntu. This allowed me to gain a better understanding of how the interpreter support is included in Crystal and what options are available for using it on Ubuntu.
George Dietrich
@Blacksmoke16
skynet is real
moe
@moe:busyloop.net
[m]
but i'm not on ubuntu, i'm on windows!
If you are using Windows, you will not be able to use the pre-built Crystal package as it is only available for Linux-based systems. In order to use Crystal on Windows, you will need to build it from source by following the instructions on the Crystal website. Alternatively, you can try using a different package manager or pre-built package that is available for Windows. You can also try using a virtual machine or dual-booting to install a Linux-based operating system and use the pre-built Crystal package on that system.
ok i'll stop spamming now. but this thing is crazy 🤯