Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 00:32
    naveensrinivasan opened #979
  • May 26 03:35

    bakpakin on master

    Make install work ok if meson i… (compare)

  • May 14 15:27

    bakpakin on master

    Fix meson.build for older versi… (compare)

  • May 10 14:22
    bakpakin commented #970
  • May 09 18:55
    patranger commented #970
  • May 09 15:29

    bakpakin on v1.22.0

    (compare)

  • May 09 15:28

    bakpakin on v1.22.0

    (compare)

  • May 09 15:28

    bakpakin on master

    Fix version bump. (compare)

  • May 09 15:20

    bakpakin on v1.22.0

    (compare)

  • May 09 15:19

    bakpakin on master

    Prepare for 1.22.0 release. (compare)

  • May 08 13:38
    bakpakin closed #974
  • May 06 00:24

    bakpakin on master

    Add `module/value` function to … (compare)

  • May 05 23:33

    bakpakin on master

    Remove file/popen - address #974 (compare)

  • May 05 23:28
    bakpakin commented #974
  • May 05 23:27

    bakpakin on master

    Use janet_getnat when non-negat… (compare)

  • May 05 13:56
    bakpakin closed #975
  • May 05 13:56

    bakpakin on master

    Fix #975 - null ptr dereference… Merge pull request #976 from ri… (compare)

  • May 05 13:56
    bakpakin closed #976
  • May 05 13:56
    bakpakin commented #976
  • May 05 05:13
    rick2600 opened #976
andrewchambers
@andrewchambers
i guess it would put you in the situation that to use int/s64 you would be required to use methods
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
Never thought I'd be reading the best blog/history of containers I've seen yet on a banking website
saikyun
@saikyun
Is there a way to replace c functions while running Janet?
Eg if I have a function pointer, recompile some c code, and somehow replace the content of that pointer
Using dlload or something like that
andrewchambers
@andrewchambers
you can make a new module and import it
at a different path i guess
janet doesn't currently let you unload modules
you could also use something like my tcc bindings to make a C function that is an asbtract type
this can be garbage collected
so you can swap it out i guess
saikyun
@saikyun
The second one sounds interesting. How would I do that? :D
to be concrete, I have a callback function that I give to miniaudio (used by raylib) in order to generate sound. What I would like to do is to switch out the contents of that function, and I figured the easiest way would be to have it call a function pointer, and I'd change out that function pointer somehow
andrewchambers
@andrewchambers
i dunno, this package is just a prototype
if you've done some C stuff before extracting and casting C function pointers is not that hard
but im sure the libtcc api would let you do some other stuff too