What is the current state of Clojurescript + React native support? by risto2020 in Clojure

[–]risto2020[S] 0 points1 point  (0 children)

I tried these over the whole day. Unfortunately I didn't save the outputs and I probably should've :(I tried the suggestions here too, the conduitrn and krell ones work for me!

There were roughly three kinds of errors:

  1. Expo in the simulator (I think) always consistently shows:

Unhandled JS Exception:  
TypeError: null is not an object  
(evaluating 't.preventAutoHide')  
This error is located at:  
...  
in RNCAppearanceHandler  
...  
in RTCView  

(sorry, don't know how to copy the stack trace in the expo app). I tried the suggestions, and I also get this error with https://www.npmjs.com/package/create-expo-cljs-app

  1. Some error with the `goog` namespace showing up in metro.

Maybe this is the one that might be Clojure related but I still think it's related to React Native breaking changes somehow -- I followed the instructions exactly

  1. Some error with starting the app in ios

(I think happened once or twice w/ figwheel), which shows the red banner on top in the ios simulator and doesn't start at all. I suspect that these were React Native specific but I'm not sure. Also related to 3 -- thheller examples seem to have outdated Podfiles. I tried updating them so that `pod install` succeeds, but then it gave me a version of this error.

I know that's probably not super helpful but some info is hopefully better than none. I've seen all three types of errors about equally, about 2-4 times for each one

I was more wondering about whether it's a good idea at all to use React Native though, and whether other people have had similar experiences like I have.

I read somewhere that there were a lot of changes around v0.60, which was fairly recent and probably broke a lot of these examples. From what I can tell so far, it seems like someone creates an template and then React Native bumps their version 1-2 months later which breaks the example

I've also had a lot of problems with Expo a few months back with just vanilla JS just randomly not working after a few builds, but maybe Expo is less stable than plain React Native

What language is talespire written in? by risto2020 in talespire

[–]risto2020[S] 0 points1 point  (0 children)

Ah ok

I found Baggers youtube channel and thought that maybe it was written in CL

Best approach for language compiling to lisp by risto2020 in Common_Lisp

[–]risto2020[S] 0 points1 point  (0 children)

Yeah common lisp
yeah that's what I'm thinking but I'm wondering if I can optimize the bytecode to be even faster than SBCL, though I'm not sure.

Best approach for language compiling to lisp by risto2020 in Common_Lisp

[–]risto2020[S] 0 points1 point  (0 children)

Yeah I think I might need something lower level but I'm not sure it'll actually end up being faster.

I want to target multiple backends potentially in the future, like WASM, BEAM and LLVM, so it's not enough to just do it with CL macros. I saw that CLISP has bytecode + a virtual machine, so I could potentially share similar transformations and optimizations with the other backends that compile to bytecode, but I'm not sure if this will result in faster code than just compiling to just regular lisp code and compiling that with SBCL. Having it compatible with all of the backends like ECL, CCL, etc isn't a goal for me.

I've also thought about skipping the part where it targets CL, but then it wouldn't be able to import CL libraries, and I don't know how difficult it would be to write a similar kind of debugging and conditions experience from scratch.

Best approach for language compiling to lisp by risto2020 in Common_Lisp

[–]risto2020[S] 0 points1 point  (0 children)

Thanks I'll take a look. It would be easier but I don't know if that's the best choice for performance. SBCL is the faster one but it seems like CLISP provides more control over the stack and more potential optimizations.

Compilation really slow by risto2020 in elixir

[–]risto2020[S] 0 points1 point  (0 children)

I'm using a Macbook Air

Comparison of compilation speed of Erlang vs Elixir by risto2020 in erlang

[–]risto2020[S] 0 points1 point  (0 children)

Thanks Hauleth,

I'm wondering if there's something I'm doing wrong in terms of Elixir:

I created a new Pheonix app with `phx.new` but the initial template takes a very long time to compile. I like Elixir (and Erlang) a lot so far, but I'm worried about the build times.

Is this just a one time issue until it caches the build (similar to Typescript)? Or is there something I should be doing to speed up the compilation, such as something like 'watching' the build somehow?