defect-process
Elm
defect-process | Elm | |
---|---|---|
19 | 198 | |
204 | 7,454 | |
- | 0.3% | |
3.5 | 4.8 | |
10 months ago | 14 days ago | |
Haskell | Haskell | |
BSD 3-clause "New" or "Revised" License | BSD 3-clause "New" or "Revised" 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.
defect-process
-
Is it possible to write games like Pac-Man in a functional language?
Totally possible. Here’s a link to a game recently released on Steam that is written in Haskell and whose source is open: https://github.com/incoherentsoftware/defect-process
I recently hacked together an asteroids clone in Haskell with SDL2 and not much else. It’s not super pretty but it works.
I’ve talked to folks who’ve been using the newer effects libraries taking advantage of the new delimited continuation primops in GHC 9.6 for their game dev. Even with very high level libraries their reporting acceptable performance.
With enough dedication I’m certain anyone could make whatever game they wanted in an FP language.
-
Genuine question: how do you all use Haskell IRL?
And the full code (w/o assets) is available too https://github.com/incoherentsoftware/defect-process
- [FOR HIRE] Illustrator / Animator / UI / Background Artist.
-
Why the gc?
Or as mentioned recently... a game written in Haskell, published on steam: https://incoherentsoftware.com/defect-process/docs/ https://store.steampowered.com/app/1136730/Defect_Process/
-
Defect Process - Incoherent Software LLC - 2d character action game / spectacle fighter
Steam | YouTube
-
Defect Process full haskell source (~62k LOC | action game on Steam)
Hi I added the full source code for Defect Process to coincide with the full game release on Steam. See the brief overview docs for a high level tour of the code design.
-
Is there anyone here using Haskell for anything other than web development?
A haskell game on steam: https://store.steampowered.com/app/1136730/Defect_Process/
-
The Source Code of Defect Process
Over the Christmas break I took some time to study the source code of Defect Process (https://github.com/incoherentsoftware/defect-process) to better understand industry-strength software architecture in Haskell and Game Engines. I have written a longer article about my analysis: https://www.lambdabytes.io/articles/defectprocess/
-
Defect Process - 2d hack n' slash game (Steam + GitHub)
Thanks, good to hear that learning haskell has been rewarding so far! For code questions later on, feel free to open a github discussion if this reddit thread is inactive at that point.
Elm
-
Ludic: New framework for Python with seamless Htmx support
Elm [1] is based on a similar idea. Build your app from pure functions that return HTML tags.
[1] https://elm-lang.org/
- Learning Elm by porting a medium-sized web front end from React (2019)
-
Can you make your own JavaScript by implementing ECMAScript standard?
You also wouldn't really be creating your own new programing language. You would be creating something that can run JavaScript by following JavaScript standards and syntax. You might be able to add some non-standard features of your own on top of those standards, or include your own standard library of helpers or utilities, but you can't completely make a new or alternative language and then load it in the browser (or at least not by reimplementing ECMAScript standards... you actually can make your own language that runs within any Javascript enviroment, if you provide an interpreter or compiler that transforms it into valid JS. Some people have done something like this, eg Elm: https://elm-lang.org/).
-
What is the best way to present the user the results of Haskell computations?
You should at least have a look at https://elm-lang.org/ it is a pure functional language like Haskell (although with fewer fancy syntax/type classes) but it has some lovely libraries for visualisation and even with plain elm (+ elm-ui) doing string transformations can be easily done.
- Course using F#: Write your own tiny programming system(s)
-
Building React Components Using Unions in TypeScript
I get it. However, the whole point of using Unions to narrow your types, ensure only a set of possible scenarios can occur, and only access data of a particular union when it’s safe to do so. That’s some of what pattern matching can provide, and 100% of what using switch statements in TypeScript with their Discriminated Unions can provide. Yes, it’s not 100% exhaustive, but TypeScript is not soundly typed, and even Elm which is still has the same issue TypeScript does: You’re running in JavaScript where anything is possible. So it’s good enough to build with and much better than what you had.
- What's the state of the Elm repo? · Issue #2308 · elm/compiler
-
How to render a basic calendar UI in Elm
The beauty of a language like Elm (and other lambda-calculus / functional programming inspired languages) is that there's very little transformation involved in going from an idea to code. And that seems to have a big impact on getting things done.
- Como desenvolvi um backend web em Clojure
-
Is it possible to write games like Pac-Man in a functional language?
I think the most fun and approachable way for beginners to build games with functional programming is with Elm [1].
See a few (small, demo) games built by the community in [2] .
Notice Elm has abandoned the FRP approach in favor of Model-View-Update [3].
[1] https://elm-lang.org/
What are some alternatives?
Tidal - Pattern language
rescript-compiler - The compiler for ReScript.
chips - A clone of Chips Challenge in Haskell
haskelm - Haskell to Elm translation using Template Haskell. Contains both a library and executable.
fmod - dump of minimal haskell FMOD bindings, this is not a proper library
purescript - A strongly-typed language that compiles to JavaScript
Okasaki - Code from the book "Purely Functional Data Structures" by Chris Okasaki (both original and my own solutions to the exercises, in Haskell)
yew - Rust / Wasm framework for creating reliable and efficient web applications
zazengine - Automatically exported from code.google.com/p/zazengine
idris - A Dependently Typed Functional Programming Language
quantum-chemistry
reflex - Interactive programs without callbacks or side-effects. Functional Reactive Programming (FRP) uses composable events and time-varying values to describe interactive systems as pure functions. Just like other pure functional code, functional reactive code is easier to get right on the first try, maintain, and reuse.