joker

Discuss all things joker, the Clojure interpreter/linter on top of Go. https://github.com/candid82/joker
sb 2019-11-25T14:39:21.107800Z

Hello, how to possible create http request with joker?

sb 2019-11-25T14:45:54.107900Z

Ok, I see here is joker.http.

👍 1
sb 2019-11-25T14:47:11.108100Z

sorry I see now, here is a docs map

sb 2019-11-25T15:28:15.108700Z

Possible compile to rpi3? I got this

panic: runtime error: slice bounds out of range

goroutine 1 [running]:
<http://github.com/candid82/joker/core.extractInt(...)|github.com/candid82/joker/core.extractInt(...)>
        /Users/sb/Downloads/joker-master/core/pack.go:199
<http://github.com/candid82/joker/core.UnpackHeader(0x0|github.com/candid82/joker/core.UnpackHeader(0x0>, 0x0, 0x0, 0xc7a100, 0xc9a360, 0xccc0b0, 0x6f, 0x415070)
        /Users/sb/Downloads/joker-master/core/pack.go:102 +0x634
<http://github.com/candid82/joker/core.processData(0x0|github.com/candid82/joker/core.processData(0x0>, 0x0, 0x0)
        /Users/sb/Downloads/joker-master/core/procs.go:1711 +0xc0
<http://github.com/candid82/joker/core.ProcessCoreData(...)|github.com/candid82/joker/core.ProcessCoreData(...)>
        /Users/sb/Downloads/joker-master/core/procs.go:1721
main.main()
        /Users/sb/Downloads/joker-master/main.go:653 +0x39c 

sb 2019-11-26T15:24:51.118300Z

Ok I try find somebody who solved! Thx

👍 1
sb 2019-11-25T15:28:48.108900Z

i used this command env GOOS=linux GOARCH=arm GOARM=5 go build -o clj

jcburley 2019-11-25T15:57:12.109200Z

Try rm -f core/a_*.go and rebuild, in case you had stale data files.

sb 2019-11-25T16:30:38.109400Z

ok, thanks!

sb 2019-11-25T16:50:39.109600Z

I wasn’t lucky. I tried with native build too.. on rpi3 with go 1.7, but I got

# <http://github.com/pkg/profile|github.com/pkg/profile>
../../pkg/profile/profile.go:198: undefined: runtime.SetMutexProfileFraction
../../pkg/profile/profile.go:205: undefined: runtime.SetMutexProfileFraction
# <http://github.com/candid82/joker/core|github.com/candid82/joker/core>
core/numbers.go:57: r.Num().IsInt64 undefined (type *big.Int has no field or method IsInt64)

jcburley 2019-11-25T16:52:32.109900Z

Hmm, that looks like an issue with the profiling code that is included with Joker but unnecessary and, I think, rarely used. Maybe you can edit main.go and remove it, at least temporarily, until this is addressed?

sb 2019-11-25T16:53:04.110100Z

Ok I check it!

jcburley 2019-11-25T16:53:11.110300Z

Also, I think README.md has cross-compilation info, if you haven't already found that.

sb 2019-11-25T16:53:56.110500Z

Yes, I read. I tried with many options.

sb 2019-11-25T16:54:34.110700Z

GOARM 5..6..7 etc

jcburley 2019-11-25T16:54:43.110900Z

Please do Issue any problems or ideas for improving the docs then!

jcburley 2019-11-25T16:55:45.111100Z

Oh, go 1.7 is probably way too old anyway. Try upgrading to 1.13, or at least 1.12, before proceeding.

sb 2019-11-25T16:59:04.111300Z

Ok! Yes, that is true.. I try to do on arm

sb 2019-11-25T16:59:08.111500Z

thanks!!

sb 2019-11-25T17:11:00.111700Z

Yes, with 1.13 works.. I got back like the first cross compiled version error.

sb 2019-11-25T17:11:14.111900Z

:face_with_rolling_eyes:

sb 2019-11-25T17:11:35.112100Z

I try to clean

jcburley 2019-11-25T17:11:49.112300Z

Ok.

sb 2019-11-25T17:13:58.112500Z

I will check tomorrow on arm64. Did you try with arm/ raspberry pi?

sb 2019-11-25T17:14:18.112700Z

Maybe Im not so expert in Golang.

sb 2019-11-25T17:30:07.112900Z

I got same error on scaleway 64 server..

sb 2019-11-25T17:30:18.113100Z

with arm64 config

jcburley 2019-11-25T17:49:27.113300Z

Using the latest master (though the latest release should probably work fine), I didn't run into any troubles building Juoker per instructions on my Mac OS X laptop just now:

$ ./run.sh -e '(loaded-libs)'
#{joker.base64 joker.core joker.html joker.http joker.json <http://joker.io|joker.io> joker.math joker.os joker.string joker.time joker.url joker.yaml joker.strconv joker.crypto joker.hex joker.filepath joker.csv}
$ GOOS=linux GOARCH=arm GOARM=6 go build
$ file joker
joker: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, Go BuildID=IEx-v-Gz7Md3-jn608rx/RV8Pe-XEJ76dYrKCZ5YY/sKdgj6f44rxQ23mGYf5_/pBpxeWaDXxOkec_ZY-hC, not stripped
$

sb 2019-11-25T21:42:07.114Z

I dont enough Golang know-how.. but I learn the lang, really cool project. If I will find out what is the problem, then I drop to you

sb 2019-11-25T21:42:30.114500Z

That is my first post

jcburley 2019-11-25T21:43:06.115Z

Oh. Well, I don't have an ARM machine to run that executable on, so can't test that....

sb 2019-11-25T21:46:11.117100Z

Np. I hope .. me or somebody found out. Really great job! That work on my Mac, really cool job! 👍👍👍 therefore i want to use on my rpi too

jcburley 2019-11-25T21:47:26.117300Z

Thing is, IIRC, some others have cross-build Joker to run on ARM machines before (maybe even a Raspberry PI?). Maybe search Issues (on Joker's GitHub) for past mentions and reach out to people who've talked about ARM support, to see if they've got success and maybe recipes?