Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 29 03:51

    bakpakin on master

    Add `tabseq` macro. (compare)

  • Jun 29 02:24
    bakpakin closed #248
  • Jun 29 02:23
    bakpakin commented #856
  • Jun 29 02:23
    bakpakin closed #856
  • Jun 29 02:14
    bakpakin commented #984
  • Jun 29 02:02
    bakpakin commented #984
  • Jun 28 15:18
    masukomi commented #984
  • Jun 28 15:17
    masukomi commented #984
  • Jun 25 23:51

    bakpakin on master

    Add support for a dyn :task-id … (compare)

  • 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)

andrewchambers
@andrewchambers
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
lol
Zach Smith (subsetpark)
@subsetpark:matrix.org
[m]
Yes… k8s too has moved off docker proper isn’t it? The thing that makes it all go is containerd, and docker is just one rather clunky way of constructing images for containerd to run. That’s my extremely poorly informed understanding