codeworld
haskell-template
Our great sponsors
codeworld | haskell-template | |
---|---|---|
14 | 7 | |
1,237 | 208 | |
0.0% | - | |
0.0 | 7.9 | |
about 1 year ago | 3 days ago | |
Haskell | Nix | |
Apache License 2.0 | 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.
codeworld
-
Pedagogical Downsides of Haskell
Code World[1] is a great project that addresses a number of the problems from the article, with an eye towards using Haskell to teach children basic math and programming simultaneously. Code World directly addresses a number of the obstacles outlined in this article:
1. Using an online editor with a rich built-in library removes any toolchain problems.
2. A custom standard library simplifies pedagogically unnecessary details like Foldable
3. The custom standard library also avoids currying (f(a, b) for functions rather than f a b)
4. Custom error messages improve the feedback students get from the compiler
I would highly recommend Code World to anybody looking to teach programming with Haskell. If you want to teach Haskell in a way that fits the existing ecosystem, it's also possible to run Code World without the custom standard library[2].
[1]: https://code.world/#
[2]: https://code.world/haskell#
-
What programming language should i learn to code games.
Alternatively, I'm a big fan of https://code.world which is specifically geared towards learners who want to work up to making simple games. It's kind of a toy, but imo resembles a "real" programming language a lot more than other educational programming languages
-
Ask HN: It's 2022. Where should I direct the youths to learn about programming?
Loose connection, but made me remember https://code.world/ uses a Haskell-like functional language to define still pictures, animations, or even games.
- My kid loves computers. I would like him to start programming, just for fun to see if it is something for him. But how to start, what type of programming language that is appealing. Books? I mean, we can start with Lisp, but how long will attention hold? Please advise, thanks.
-
Game
I second gloss! It's a bit limited (no sound, fonts, nor even text centering, but you do have support for vector and bitmap graphics, color manipulation, mouse, keyboard, and animations), but it's so, so easy to use that I not only recommend it (or the similar Code World) for anybody's first game, I still use it for my newer games.
-
Looking for help making a simple game in Haskell
Try https://code.world/
-
Functional Programming in OCaml
Two that I can think of:
- Bootstrap teaches a toned-down version of Racket (i.e. Scheme): https://bootstrapworld.org/materials/spring2021/en-us/course... . It's taught in some schools as well as a comp sci curriculum.
- https://code.world/ teaches using a toned-down version of Haskell. To my knowledge it's not used in schools.
-
Why I Support the Haskell Foundation
I had the silly 'fromString' error you get when using RebindableSyntax but had forgotten what to do next. Quick Google search and I hit on codeworld #59.
-
Hmmmmmmmmmmmmmmmmmmmmmm (SI is an AND gate, SAU is an OR gate)
That's a matter of tooling and environment. You can have a look at examples of drawing animations with physics simulation and user input at https://code.world. It's pure Haskell code without any scary abstractions, just functions from state to the next state.
-
Safe Haskell?
I'm not a user myself, but I understand Lambdabot and mueval depend on it. More generally, anything that executes Haskell code supplied by untrusted users would fit the bill. I don't know if CodeWorld for example allows user-supplied modules, but if it did they'd have to be Safe.
haskell-template
-
On the verge of giving up learning Haskell because of the terrible tooling.
I am a Haskell newbie myself. Found nix flakes and https://github.com/srid/haskell-template really nice to start with (of course some learning curve is unavoidable).
-
Simple GHC stack for a novice
If you wanna get started with Haskell on Nix, check out Sridhar Ratnakumar's Haskell template for Nix. You can easily clone the repo and move your Haskell code into it, especially if you're still a novice (as you likely won't be dealing with a HUGE codebase).
-
haskell-flake: A `flake-parts` Nix module for Haskell development.
I'd say that's up to you. haskell-template did recently switch to this; you can see the changes in this PR, which is all limited to flake.nix.
-
Best practices for Haskell on M1 with Nix?
Could you open an issue here with the full error message?
-
Looking for IDE that is suitable for learning Haskell
I think you should use ghcup because Nix has a higher learning curve ... BUT if you ever want to try out Nix, there is https://github.com/srid/haskell-template which sets everything up for you so that things "just work" in VSCode.
What are some alternatives?
Cabal - Official upstream development repository for Cabal and cabal-install
rust-nix-template - Rust project template with Nix (Flakes) and VSCode support
dune - A composable build system for OCaml.
ema - Change-aware static site generator for Haskell programmers
reanimate - Haskell library for building declarative animations based on SVG graphics
haskell.nix - Alternative Haskell Infrastructure for Nixpkgs
scratchjr - With ScratchJr, young children (ages 5-7) can program their own interactive stories and games.
haskell-flake - A `flake-parts` Nix module for Haskell development
haskell-template
template-haskell - The Haskell template, configured for Gitpod (www.gitpod.io) to give you pre-built, ephemeral development environments in the cloud.
sdl2-snake - An example application for sdl2.
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.