Scenic - A Functional UI Framework

@sherbondy: OW YEAH !!!

Sorry for caps, but I’m really so excited!

Awesome work @boydm. I will try it as soon as possible!

2 Likes

Just a regular old hex package. You own the app and just take a dependency on it.

4 Likes

Just watched the talk. Really awesome. Can’t wait to try it out.

Oh thank you, i got tricked by the post title “Framework” and “Goodbye Qt” on the comment I replied to. So I forgot it’s a lib.

Also we are used to deploying elixir app to server, now it’s a client app … it’s interesting to think that should the app ships as a mix or a release. A release may expose commands that are not made for desktop app use case. :desktop_computer:

https://twitter.com/jerelunruh/status/1038915417962676225?s=21

By @jerel

And

https://twitter.com/nucleartide/status/1039163921171542017?s=21

By @nucleartide

:003:

2 Likes

Hi,

I’m wondering if is there is a way to autorefresh the current scenic when the main window loses the focus and then gain it again.

My opinion: when a window receives the focus Scenic should re-render all visible components/scenes.

Thanks

2 Likes

More cool stuff! This time by @ConnorRigby :023:

https://twitter.com/pressy4pie/status/1040075433134370816?s=21

4 Likes

I almost posted this here but didn’t know it it was cool enough lol. I didn’t post the source, but it’s just the scenic.new app with the joystick package and like 10 lines of scaling axis output

4 Likes

Oh you definitely should have :lol: :sunglasses:

1 Like

@boydm - please let everyone know when the Pi + Nerves version is available. If you want an early tester, I’ve got a pretty extensive use case for what I’m building that could hopefully exercise some edge cases for you, and I’d love to potentially contribute some components in a library.

3 Likes

I’m trying to open it up on github soon. However, I’m not going to publish it to hex yet as there are several issues that need to be resolved first. I need the Nerves guys to help with at least one of them.

Not sure I would recommend anyone really try using yet. If you do, you’ll see what I mean…

2 Likes

Totally something different - but I wonder if you’ve run into funny issues with the NanoVG bundled font library on Nerves. It just crashed on me, apparently with a malloc call that returned NULL. Haven’t tried since then because a switch to freetype worked, but it certainly complicates building :slight_smile:

You are right on. Also has issues compiling under C99.

Swap out the stb_truetype.h file with the current in the stb libraries. Everything seems to work just fine now.

1 Like

@boydm Feel free to contact any of us. We are all very excited about Scenic on Nerves. We’ve updated the toolchains pretty recently which may hinder or help compiler issues.

1 Like

Yes the changes to the pipeline are slowing me down a bit. I think. I made the nerves driver public this morning and sent it to Frank and Justin to look at. Go ahead and look at github boydm/scene_driver_nerves_rpi if you want. Sample app at boydm/nerves_scenic_test_app

For now it doesn’t compile. Once we get past that I can get back to the application level bugs.

3 Likes

Congrats on your work - must say something about the API for people to be able to just pick it up and run with it :slight_smile:

Anyone used it on a Pi with an mini touch screen?

2 Likes

Does Scenic work on Windows?

https://hexdocs.pm/scenic/install_dependencies.html tells how to install on different OS, but Windows is not mentioned.

I wanted to try https://github.com/Arkham/scenic_escher but couldn’t compile (fatal error C1083: Cannot open include file: ‘stdbool.h’: No such file or directory).

There has been some iniital work done to get it working on Windows, but I’ve been swamped and haven’t verified it. Take a look at https://github.com/boydm/scenic_driver_glfw/pull/22 which is most if not all of what you want. Let me know if you can get it to work.

Thanks!

2 Likes