elm-ui
ring
elm-ui | ring | |
---|---|---|
9 | 15 | |
1,330 | 3,708 | |
- | 0.3% | |
0.0 | 8.4 | |
6 days ago | about 1 month ago | |
Elm | Clojure | |
BSD 3-clause "New" or "Revised" License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
elm-ui
- Como desenvolvi um backend web em Clojure
-
What is the right way to style an Elm application in 2023?
It's been a few years, but last time I built a non-trivial Elm app, I used elm-ui. Otherwise, I've used either vanilla CSS with the Meyer reset (am I dating myself?) or SCSS.
-
Learning Elm because of work into Vue/React but why is the code so ugly?
"clean" means you are used to it. ELM is a totally new language (not like JS and TS) based on a paradigm (functional programming) that you are probably not used to. And it is based on the ML type system (different from what you are used to). So it is a lot of new things at once. "Reinventing the wheel" is an unfortunate side-effect of using a different way to do things. Some things can be copied verbatim, some are totally different. Check out "elm-ui" (https://package.elm-lang.org/packages/mdgriffith/elm-ui/latest/) for a very different and refreshing view in UI code in ELM (that will appeal to the mostly-backend developers in your workplace).
-
Ask HN: What are you favorite goto frameworks when writing Web Aplications
I use Elm for my project. Once you accept thinking the way it wants you to, it's a delight to develop front-end with it.
Side advantage, Elm-UI frees you from CSS: https://package.elm-lang.org/packages/mdgriffith/elm-ui/late... it's like Tailwind but deeply intertwined with the language.
https://elm-lang.org
-
Tips/Resources on starting with ELM
The last advice I could give is to try elm-ui (https://github.com/mdgriffith/elm-ui) for your user interface. It's amazing how great that is compared to traditional ways of building a frontend layout.
-
What projects *didn't* you make in Rust?
The library elm-ui makes it easy to create a nice user interface. I am unaware of anything similar for Rust+WASM, so I would have been forced to deal with HTML and CSS.
-
Elm Compiler Written in Elm
There are several things named elm-ui. It's the author of a different library than what is usually understood when someone refers to elm-ui (which is https://package.elm-lang.org/packages/mdgriffith/elm-ui/late...)
-
Bootstrap 5
Foregoing CSS all together by using a different approach to UI construction (elm-ui)
-
New Speedcubing Training Software
Right now I'm just using the built in from the UI library I used for the sake of ease as I didn't find a perfect solution and it seemed good enough for now: Github Link to source, which it looks like would classify your laptop as a tablet, whoops!
ring
-
A History of Clojure (2020) [pdf]
* HTTP: Ring is the de facto way to manage HTTP request (see https://github.com/ring-clojure/ring/wiki/Concepts). Jetty and Aleph are common web servers (and https://github.com/clj-commons/aleph) that implement Ring interface.
- Como desenvolvi um backend web em Clojure
-
what componies uses Clojure, and what componies deceased the use of other languages after additions of Clojure, for example Dropbox decrease the use of python after addition of Go programming language, are there any similar story with Clojure?
https://youtu.be/LcpbBth7FaQ (really cool live coding session with REPL-driven development for a ring web app)
-
I Don’t Like Go’s Default HTTP Handlers
> In the HTTP handlers it makes sense that you don't have return values, because: What would you do with that value exactly?
I think that approach used by clojure's ring shows an elegant way to represent http responses https://github.com/ring-clojure/ring/wiki/Concepts#responses. They are essentially structs with the following fields:
status := number
headers := map of string->string
body := stream | string | seq | inputstream
Request handlers are handed a request struct that is similar. The handler is a function that maps a request to a response (it doesn't actually write to streams itself).
I like this style for an http library for a couple of reasons:
1. HTTP resources can be viewed as functions whose domain is the request, and range is the response. Having the abstraction match that makes for really nice code.
-
what web framework do you use?
While you won't find your Spring here, you will find that many of those web libraries will tend to use or produce Hiccup, return Ring maps or maybe have pipelines built using interceptors. Composing libraries together is usually not that hard, but it does require you to leave the comfort zone of the framework's abstractions to try to understand what is actually happening e.g. when someone makes an HTTP request and something is returned and displayed in the browser.
-
Microhttp is an event-driven, single-threaded, zero-dependency web server with 500 LOC. Benchmarks on EC2 show 100,000+ requests per second and 50,000+ persistent connections.
On that note, are you able to support everything required by the ring spec?
-
is bulding rest apis with clojure a good idea ?
You can check out my example project in Clojure with using Ring.
- Clojure Ring เบื้องต้น
-
Diving into clojure
It uses already mentioned ring api (https://github.com/ring-clojure/ring/wiki).
-
Can someone help me understand ring's async handlers (specifically, with Jetty)
I've tried to pair down to the simplest example which shows the issue, and raised it here as I couldn't see one you'd already created or similar: https://github.com/ring-clojure/ring/issues/436 This is so that I have something to link to/follow from our side, hope you don't mind, and many thanks for the diagnosis!
What are some alternatives?
htmx - </> htmx - high power tools for HTML
Jetty - Eclipse Jetty® - Web Container & Clients - supports HTTP/2, HTTP/1.1, HTTP/1.0, websocket, servlets, and more
ToolJet - Low-code platform for building business applications. Connect to databases, cloud storages, GraphQL, API endpoints, Airtable, Google sheets, OpenAI, etc and build apps using drag and drop application builder. Built using JavaScript/TypeScript. 🚀
usermanager-reitit-integrant-example - A little demo web app in Clojure, using Integrant, Ring, Reitit, Selmer (and a database)
compiler - Elm compiler written in Elm
ring-netty-adapter - Netty Support for Ring
elm-format - elm-format formats Elm source code according to a standard set of rules based on the official Elm Style Guide
ketu - A clojure kafka client with core.async integration.
hotwire-rails - Use Hotwire in your Ruby on Rails app
clojure-polylith-realworld-example-app - Clojure, Polylith and Ring codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API.
rust-gpu - 🐉 Making Rust a first-class language and ecosystem for GPU shaders 🚧
clojure - The Clojure programming language