Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 24 05:22
    bakpakin closed #990
  • Jun 24 00:18
    jeannekamikaze opened #990
  • Jun 20 16:28

    bakpakin on v1.23.0

    (compare)

  • Jun 20 16:23

    bakpakin on master

    Github showing old git attribut… (compare)

  • Jun 20 16:09

    bakpakin on master

    Prepare for 1.23.0 release. Remove ssize_t usage. (compare)

  • Jun 20 16:08

    bakpakin on v1.23.0

    (compare)

  • Jun 20 16:06

    bakpakin on v1.23.0

    Prepare for 1.23.0 release. (compare)

  • Jun 20 01:20

    bakpakin on master

    Add support for 0-element array… Fix docstring. (compare)

  • Jun 19 20:07

    bakpakin on master

    Prepare for 1.23.0 release. (compare)

  • Jun 19 19:49
    bakpakin closed #798
  • Jun 19 18:06

    bakpakin on master

    Update changelog to say FFI ini… Fix unset field in JanetFFIType. Fix trailing :pack-all or :pack… (compare)

  • Jun 19 15:29

    bakpakin on master

    Error message sounded a bit uns… (compare)

  • Jun 19 15:28

    bakpakin on master

    Improve error messages when usi… (compare)

  • Jun 19 15:02
    bakpakin closed #871
  • Jun 19 15:02

    bakpakin on master

    On suite0009 errors for localna… Remove bad suite0009 test. Clos… (compare)

  • Jun 19 14:18

    bakpakin on master

    Update CONTRIBUTING.md (compare)

  • Jun 19 13:49

    bakpakin on master

    Use _tzset() on windows before … (compare)

  • Jun 19 13:03

    bakpakin on master

    Support for array types in ffi. (compare)

  • Jun 19 03:09
    bakpakin closed #984
  • Jun 18 21:53

    bakpakin on master

    Cast NULL pointer to nil in ret… (compare)

Levi R. I. Tan Ong
@levitanong
ah sorry, i phrased it weirdly. I'm running ijanet on emacs (and yes i have the eval buffer) and i'm trying to use circlet, which is a webserver based on mongoose. It has a (while true) to keep the server running, and it seems like the repl is blocked while this is happening. Having said this, I realize the solution might simply be to wrap it in a coroutine. That would make it async, and perhaps not block the repl.
andrewchambers
@andrewchambers
I think you need to consider which bits of state are persistent and which are not
and use vars
and manually code some reloading logic
but i think its possible
saikyun
@saikyun
I solved a similar problem with netrepl and ev/call. Relevant bits of code: https://github.com/Saikyun/text-experiment/blob/main/src/main.janet#L503
I also used dofile to get an env and merge it into the root env: https://github.com/Saikyun/text-experiment/blob/main/src/file_handling.janet#L54
@sogaiu:matrix.org has some info about using netrepl from Emacs, but I'm not sure if that code is public
Zach Smith (subsetpark)
@subsetpark:matrix.org
[m]
There’s an ijanet now??
sogaiu
@sogaiu:matrix.org
[m]
i think the emacs netrepl code i have is here: https://gist.github.com/sogaiu/aa957885d965e4b874fc83c55f873719
@subsetpark: may be you found it already, but iiuc, ijanet refers to this: https://github.com/SerialDev/ijanet-mode
andrewchambers
@andrewchambers
@bakpakin:matrix.org i sometimes wonder if polymorphic number functions should have just called methods instead of using polymorphic operators. It seems more orthogonal
e.g.
(:+ a b)
it seems pretty clear what is going on
so the answer to writing a polymorphic formula would have been to use methods for everything
i guess that would have required methods on things like Number
the syntax doesn't even look that bad imo
i guess it would put you in the situation that to use int/s64 you would be required to use methods
andrewchambers
@andrewchambers
in hind sight i think basically everything numeric function that is polymorphic should be under a namespace like
poly/pos? poly/max poly/min ...
and they would be implemented in terms of methods
I think its currently quite error prone in the stdlib to use any of the standard functions with abstract number types
since a bad comparison often silently returns true or false
due to total ordering
andrewchambers
@andrewchambers
but yeah, i feel like method calls should be the way to do polymorphism
im not sure the real value having + call a method on fallback provides
andrewchambers
@andrewchambers
perhaps the fact that numbers do not have methods pulled janet towards having special semantics in operators
though i think it might not be that bad to do static method lookup for primitive types
in the method call opcode
anyway, not sure this is a good idea or not, just some thoughts
andrewchambers
@andrewchambers
bah, wrong chat, sorry
Levi R. I. Tan Ong
@levitanong
Thanks @Saikyun and @andrewchambers ! I will digest this over the coming days.
yumaikas-
@yumaikas:matrix.org
[m]
So, is anyone keeping a Janet dockerfile around? I'm planning on using docker to help packat a project, and I am willing to write one, but wanted to check for prior art
Never used it for anything, but tested that it works. I settled for the classic PHP "files on the server" approach
andrewchambers
@andrewchambers
@yumaikas:matrix.org how does docker help? do you depend on some system library?
yumaikas-
@yumaikas:matrix.org
[m]
It helps by giving me a cross platform "Run this to check out this janet project"
Instead of trying to cross compile, or have the people in question go through the Janet installation process
andrewchambers
@andrewchambers
@yumaikas:matrix.org but then don't people need to deal with the Docker installation process?
for me that was a lot worse
yumaikas-
@yumaikas:matrix.org
[m]
@andrewchambers: this is a program for a specific set of people I expect to be more familiar with Docker than Janet, not a general distribution of code. Otherwise I'd share your concerns
ahungry
@ahungry:matrix.org
[m]
Janet in docker is a nice sandbox, perhaps easier to setup than a chroot for web janet and so small via alpine
Janet cross platform is fun but tricky
andrewchambers
@andrewchambers
i uninstalled docker after i started doing backups and seeing all the shit it does pointlessly every second to my filesystem, even when idle. Not a fan haha.
I liked rocket a lot more, too bad it died
sogaiu
@sogaiu:matrix.org
[m]
isn't there a docker replacement from redhat that can handle docker files?
andrewchambers
@andrewchambers
theres podman, probably some other things
sogaiu
@sogaiu:matrix.org
[m]
podman or something