5 ms·
GUI Examples – Rye Language
- t-3 2y agoIt would have been helpful to have some info on what exactly fyne is. A quick search brought me here: https://github.com/fyne-io/fyne https://github.com/fyne-io/fyne The rye version looks much nicer both to read and write.
- middayc 2y agoThanks for the feedback. Good idea. I will make "Go's Fyne UI library bold" and provide a link to Fyne page at the top.
- zerr 2y agoAccessibility?
- middayc 2y agoThanks for pointing it out. Frankly I haven't looked at that topic with Fyne yet. If I google it I see this response from the main Fyne maintainer from 2022: https://news.ycombinator.com/item?id=31788824 https://news.ycombinator.com/item?id=31788824 They do keep actively moving forward so I have hope this will get addressed.
- mwcampbell 2y agoOn that thread, I plugged my AccessKit project (https://accesskit.dev/ https://accesskit.dev/). We have a C API now, and the project is much further along than when I commented on that old thread, so somebody could develop Go bindings now.
- K0nserv 2y agoWhat an excellent project and idea. Accessibility is always a big gap in these cross-platform, lowest common denominator frameworks, glad to see someone is trying to tackle it.
- ajwillia_ms 2y agoAccessibility was mentioned at FyneConf last week as a priority. It may not make it to v2.6.0 this year but expect it in 2.7. https://conf.fyne.io https://conf.fyne.io
- middayc 2y agoGreat to hear. I have yet to see the full video of the conf. (It's on Youtube)
- jonathanstrange 2y agoFyne has no integrated accessibility support yet.
- anonzzzies 2y agoMakes me think of Rebol/Red and indeed seems it was one of the influences.
- middayc 2y agoYes, Rye started and is basically Rebol + few more word types (Rebol has multiple types of words) that allow left to right oriented evaluation (op-words, pipe-words, left-set-words). Get words are `?word` instead of Rebol's `:word` because that's left-set-word, we don't have refinements and scoping / contexts work somewhat differently. There are probably other differences in details, but all basic concepts are based on Rebol.
- anonzzzies 2y agoIt's nice; well done.
- anonzzzies 2y agoThe Fyne lib works for web too; does this at well? Seems a nice candidate for a LiveView type of thing.
- middayc 2y agoRye works on web too, we are currently trying to make a proper and fully compatible web console (REPL) and then include more web technologies. So I think there should be no problem in running Rye-Fyne on web. In fact the developer who is working on binding generator proposed it few chats ago. What exactly do you mean by LiveView?
- anonzzzies 2y agoLike Phoenix Liveview [0], so frontend/backend blurs and you don't have to think about what is front and what is backend; everything is backend and parts of the frontend are updated based on serverside DOM changes. No JS; such a blessing. [0] https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.html https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.html
- middayc 2y agoI was so far a little skeptical of these all-in-one solutions, but never say never and language is general one, so somebody could try to tackle this if they see the oportunity. I will try to find out more about LiveView, thanks for the link.
- anonzzzies 2y agoI was as well, but in the last years they really jumped ahead; it might be personal, but for me I cannot imagine going back. Especially when I now use nextjs or so, I scratch my eyes out. It's such an timewasting and frankly annoying experience compared to liveview, livewire [0], go live [1] and of course CLOG [2]. Edit; Blazor server[3] is another one [0] https://laravel-livewire.com https://laravel-livewire.com [1] https://github.com/jfyne/live https://github.com/jfyne/live [2] https://github.com/rabbibotton/clog https://github.com/rabbibotton/clog [3] https://learn.microsoft.com/en-us/aspnet/core/blazor/hosting-models?view=aspnetcore-8.0#blazor-server https://learn.microsoft.com/en-us/aspnet/core/blazor/hosting...
- kragen 2y agopretty nice looking. people say rebol, but i'm reminded instead of tcl/tk
- middayc 2y agoHm ... I keep hearing about tcl and I'm aware Rebol and Tcl have some similarities, but I've never really looked that deep into it. Now I looked at the first example that I found (https://wiki.tcl-lang.org/page/A+little+stopwatch https://wiki.tcl-lang.org/page/A+little+stopwatch) and visually there really are many similarities. We also seem to use the same word-formatting combinations. I see ".word" "::word" { } and [ ] blocks. They are all probably used for different things, but it is funny. I really need to look at Tcl at some point. I was a little discouraged by "everything is a string" idea so far, but I keep hearing that it is conceptually very interesting language.
- kragen 2y ago'everything is a string' is a fatal flaw in tcl, both in terms of bugproneness and performance. it does have some real advantages, though: serialization for storage, configuration, debugging, or networking is trivial, and it eliminates aliasing bugs, especially important for end-user programming independent of 'everything is a string', tcl also works much better as a command language than 'real programming languages' do; contrast ifup eth0 -ip 192.168.2.53 with ifup('eth0', ip='192.168.2.53') which is a real pain to type when you're in a hurry. but you could get that benefit by only making things strings by default; requiring [] or $ to get expression evaluation is conceptually independent of tcl's type system or lack thereof the rebol family seems like an improvement over conventional programming languages there, but at the cost of conceptual simplicity wrt guis in particular the ability to edit the gui without restarting it is pretty great. but this is a suboptimal way to edit it: .qd.ipentry configure -textvariable ip on the other hand, the ability to trigger code when a variable changes is pretty awesome (edited to clarify)
- amelius 2y ago> 'everything is a string' is a fatal flaw in tcl, both in terms of bugproneness and performance Also security I suppose. I'm thinking of injection attacks.
- HexDecOctBin 2y agoIs there a tutorial on how the variable scoping works in this language? I have never understood how scoping works in Rebol-likes; as far as I can tell, it is similar to a closure passed in form of an f-expr, but I'm not sure on the details.
- middayc 2y agoRebol has something named definitional scoping. Interesting document about that was called "bindology" (If I remember correctly). We don't have a tutorial about this. In Rye this is still partially open to experimentation. If in Rebol dialects were the most interesting part. Rye also has multiple dialects, but I think in Rye contexts (scopes) are the most interesting aspect of the language. In very short. Code is always evaluated inside a specific context. This also determines what certain words mean (from "core" words, like if, for, fn, ... up). Contexts can be linked together (you can define a parent context), created, manipulated, isolated at runtime. We have functions like do\in do\par(ent) and also fn\in and fn\par that evaluate code in context you provide. Lookup for a word happens in current context and then if not found in it's parent contexts if there are any. This is lookup ... "read" operation, but you can change (set or mod) only words in a current context. There is no syntax to change a value in parent or sub-context (there is no global context). You can call functions in (send messages to) contexts in your view and convention is if functions change values in-place their name must end with !. That is current idea in very short, but this is all still open to be tested in practice and potentially changed.
- draegtun 2y agoHopefully these two links will help: - Definitional Scoping / Rebol actually does not have scoping at all - https://stackoverflow.com/q/21964110/12195 https://stackoverflow.com/q/21964110/12195 - Bindology - https://en.wikibooks.org/wiki/Rebol_Programming/Advanced/Bindology https://en.wikibooks.org/wiki/Rebol_Programming/Advanced/Bin...
- middayc 2y agoUh ... BrianH and Ladislav ... two of the real Rebol magicians. I can't wait to read the second again, and the first for the first time!
- andrewshadura 2y agoThis resembles Tcl/Tk a lot, except Tcl is much more readable in my opinion.
- middayc 2y agoThere is a whole thread about Tcl/Tk a little lower that you might find interesting (https://news.ycombinator.com/item?id=41634817 https://news.ycombinator.com/item?id=41634817). I can't comment on what is more readable, as I am not proficient in Tcl. I intend to look at it now that it keeps getting mentioned. Tnx.
- draegtun 2y agoEverything is subjective of course :) I remember comparing Tcl/Tk with Rebol/View - https://news.ycombinator.com/item?id=7069311 https://news.ycombinator.com/item?id=7069311
- deleted 2y ago[deleted]
- pistoleer 2y agoI really enjoyed the undertone of dry, absurdist humor in these examples. The components are nicely showcased but in an unexpected context.
- middayc 2y agoHehe, thanks ... I didn't know if anyone would find it at least a little funny ... or weird :)