Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Sep 24 23:47
    bakpakin commented #1037
  • Sep 24 23:45
    bakpakin commented #1037
  • Sep 24 00:59
    andrewchambers commented #1037
  • Sep 22 15:58

    bakpakin on master

    Fix pass by reference in window… (compare)

  • Sep 22 15:55
    bakpakin reopened #1037
  • Sep 22 08:16
    kamisori commented #1037
  • Sep 21 19:16
    kamisori commented #1025
  • Sep 21 07:48
    kamisori commented #1037
  • Sep 21 07:47
    kamisori commented #1037
  • Sep 21 07:38
    kamisori commented #1037
  • Sep 21 07:21
    kamisori commented #1025
  • Sep 21 00:59
    soxfox42 closed #1034
  • Sep 21 00:59
    soxfox42 commented #1034
  • Sep 20 20:45
    bakpakin closed #1001
  • Sep 20 20:45
    bakpakin closed #1037
  • Sep 20 20:44
    bakpakin commented #1037
  • Sep 20 20:42

    bakpakin on master

    Fix ifdef in capi.c for janet_g… (compare)

  • Sep 20 20:37

    bakpakin on master

    Address #1037 - move stack hack… (compare)

  • Sep 20 16:01
    kamisori commented #1025
  • Sep 20 16:00
    kamisori commented #1025
llmII
@llmii:matrix.org
[m]
that's of interest indeed, if I could prohibit fn defn defmacro and variants that'd pretty much make flycheck do great for checking for errors without having to worry about arbitrary execution
saikyun
@saikyun
@pepe thanks for mentioning the error message problem, haha. I got a similar error in freja, which was easier to find thanks to your mention of it :)
3 replies
made it easier for me to look through recent janet commits
sogaiu
@sogaiu:matrix.org
[m]
pp: presumably he means this
as there was saikyun/freja@bea027e that referred to debug/stacktrace
saikyun
@saikyun
yeah what sogaiu said :)
pp
@damnpepe:matrix.org
[m]
you should I insist
I hoped to be funny
And thanks sogaiu as always!
saikyun
@saikyun
:D
pp
@damnpepe:matrix.org
[m]
There are some improvements to the numarray example. But they are in C, so I would love to get any feedback. πŸ™
pp
@damnpepe:matrix.org
[m]
janet-lang/janet#894 there I meant
pp
@damnpepe:matrix.org
[m]
bakpakin: can you please check PRs on the mendoza? They are mostly typos and formatting. Also I would like to change circlet to spork/http and separate watching from the library code, if you are OK with these changes
2 replies
pp
@damnpepe:matrix.org
[m]
If anyone here has some upward facing triangles, I would be glad here https://lobste.rs/s/2poljt/neil_bohemian_rhapsody_for_five_channels
I would also be glad for any feedback :-)
llmII
@llmii:matrix.org
[m]
pp: I don't have an account there but I did a quick read when I was groggy and it seemed interesting, you've put a lot of work into things that's for sure. I can't say I actually understand reactive streams but I believe when I reread it I'll get the gyst even if I wouldn't know of something to directly apply it to. I found it interesting you used jhydro and spun up an encrypted netrpl ordeal (I still haven't found a way to use netrpl, which probably hints more at my lack of imagination and my approach to things being solve some things that are necessary for my needs in the long run)
tionis
@tionis:matrix.org
[m]
I'm having issues using a table with keys that are arrays i mean something like that:
@{@[1 2] 1 @[2 3] 4}
is there a way to make this work?
bakpakin
@bakpakin:matrix.org
[m]
Don't use arrays as table keys, use tuples
arrays are mutable, so comparison is done just with pointer comparison
tionis
@tionis:matrix.org
[m]
i figured it was something like that and also tried it with tuples and it still didn't work, but now when i tried it it worked, must have had a typo somewhere from my previous tries
thanks!
tionis
@tionis:matrix.org
[m]
As I'm always asking some pretty basic Janet questions, I wanted to ask if this is even the right channel/wanted here?
sogaiu
@sogaiu:matrix.org
[m]
tionis: there is a help channel: https://gitter.im/janet-language/help
tionis
@tionis:matrix.org
[m]
Ah perfect, now I won't spam this channel anymore πŸ‘
sogaiu
@sogaiu:matrix.org
[m]
tionis: fwiw, i think it's not necessary to use do inside each if the desire is to use more than one form. in that was not so clear, here is an example.
ah i see you've moved on...never mind me :)
sogaiu
@sogaiu:matrix.org
[m]

llmII: i updated janet-editor-elf with some fixes for unwrapping comment forms. there is now a separate implementation for indent-region (should be faster for one thing, but requires another add-hook to enable) with some docs and there is a menu which should help with (re)discoverability of some of the commands.

it's been working ok for me, but if you give it a try and notice anything amiss, please let me know.

1 reply
Jason Pepas
@cellularmitosis
I've been picking up a bit of common lisp lately, and I came across this at-a-glance "simplified reference": https://jtra.cz/stuff/lisp/sclr/index.html
My first thought was "I should make one of these for Janet!"
sogaiu
@sogaiu:matrix.org
[m]
ooo, that looks nice with the groupings -- and even seems to fit on a single screen here
Florian Beeres
@cideM

:wave: The Janet version in Nixpkgs is really old 1.16.1 and I'd like to update it because I would like to play around with Janet. After updating to 1.19.2 I get a test failure during the build for suite0009:

11/11 test/suite0009.janet TIMEOUT        30.01s   killed by signal 15 SIGTERM
11/11 test/suite0009.janet TIMEOUT        30.01s   killed by signal 15 SIGTERM

The full log also only contains this error. I don't want to come across as lazy but maybe someone who's familiar with the Janet tests immediately knows what causes this.

The test file in question https://github.com/janet-lang/janet/blob/master/test/suite0009.janet does contain a test where the process is killed after 30s and expects to not find signal 24... but I don't know if this is just that the test runner was killed, or that the process was killed correctly but got the wrong signal.
sogaiu
@sogaiu:matrix.org
[m]
@cideM: the following is the output i get for make test with the current master branch: https://www.pastery.net/esvzev/
this is on a linux box
Florian Beeres
@cideM
I should have definitely added that I'm on an M1 MacBook but also that the tests in this case run in the Nix sandbox. I'll check this on my NixOS (Linux) machine. Be right back.
sogaiu
@sogaiu:matrix.org
[m]
iiuc, the test in question doesn't wait for 30s before killing.
my reading of the code is that the spawned process tries to sleep for 30s, but it is not likely to get very far before being killed by its parent.
Florian Beeres
@cideM
So... took a bit longer since I had to update some stuff. It passes on NixOS, so I'm inclined to believe this is not a result of the Nix sandbox but rather of Darwin, probably even specific to M1.
sogaiu
@sogaiu:matrix.org
[m]

the only issue i see that mentions m1 is this: janet-lang/janet#794

it seems to also mention suite 9

Florian Beeres
@cideM
I just cloned the repo and ran make test and this also passed on my M1 machine. Mysterious. Maybe some weird interaction between M1 AND the Nix sandbox.
Florian Beeres
@cideM

So I created a patch that removes the net/connect and net/server test, which is the one that's failing. With that out of the way, for now, I'm trying to also create a Nix package for JPM.

The docs mention PREFIX but don't really explain what this should be, they just say:

Generally, you will want to install to the same directory that Janet was installed

My assumption is that PREFIX needs to point at a Janet installation and DESTDIR is where I want jpm to be placed. If I now run PREFIX=${janet} DESTDIR=$out ${janet}/bin/janet $src/bootstrap.janet then the resulting tree is strange. It appears to split the path to Janet into segments and then re-create that hierarchy in DESTDIR.

In the command I added, ${janet} is the source of folder where janet is installed.

JPM tree:

$ tree /nix/store/az8320l6kcbrfzmmvxj965gk505giaqv-jpm-0.0.1
/nix/store/az8320l6kcbrfzmmvxj965gk505giaqv-jpm-0.0.1
└── nix
    └── store
        └── w9q7df3gi2pdq0vw214jkw4qffa9sg58-janet-1.19.2
            β”œβ”€β”€ bin
            β”‚   └── jpm
            β”œβ”€β”€ include
            β”œβ”€β”€ lib
            β”‚   └── janet
            β”‚       └── jpm
            β”‚           β”œβ”€β”€ cc.janet
            β”‚           β”œβ”€β”€ cgen.janet
            β”‚           β”œβ”€β”€ cli.janet
            β”‚           β”œβ”€β”€ commands.janet
            β”‚           β”œβ”€β”€ config.janet
            β”‚           β”œβ”€β”€ dagbuild.janet
            β”‚           β”œβ”€β”€ declare.janet
            β”‚           β”œβ”€β”€ default-config.janet
            β”‚           β”œβ”€β”€ init.janet
            β”‚           β”œβ”€β”€ pm.janet
            β”‚           β”œβ”€β”€ rules.janet
            β”‚           └── shutil.janet
            └── share
                └── man
                    └── man1
                        └── jpm.1

Janet tree (${janet}):

$ tree /nix/store/w9q7df3gi2pdq0vw214jkw4qffa9sg58-janet-1.19.2/
/nix/store/w9q7df3gi2pdq0vw214jkw4qffa9sg58-janet-1.19.2/
β”œβ”€β”€ bin
β”‚   └── janet
β”œβ”€β”€ include
β”‚   └── janet
β”‚       └── janet.h
β”œβ”€β”€ lib
β”‚   β”œβ”€β”€ janet
β”‚   β”œβ”€β”€ libjanet.1.19.dylib
β”‚   β”œβ”€β”€ libjanet.a
β”‚   β”œβ”€β”€ libjanet.dylib -> libjanet.1.19.dylib
β”‚   └── pkgconfig
β”‚       └── janet.pc
└── share
    └── man
        └── man1
            └── janet.1.gz
Florian Beeres
@cideM
Or rather, it appears to look at the path to the Janet binary I'm invoking and uses this path and its segments when it creates the output folders.
sogaiu
@sogaiu:matrix.org
[m]
i think when @andrewchambers is around he may be able to help out
Florian Beeres
@cideM
Ah neat, I tagged him in the issue in nixpkgs as well
andrewchambers
@andrewchambers
@cideM will take a look
andrewchambers
@andrewchambers
I will make some time either tonight or tomorrow and we can get the new jpm etc packaged
that might be a janet bug.