Comments (3)
There are several current exercises that would be appropriate for idris, mainly the functional ones.
Some examples:
- https://github.com/exercism/x-common/tree/master/exercises/rna-transcription
- https://github.com/exercism/x-common/tree/master/exercises/space-age
- https://github.com/exercism/x-common/tree/master/exercises/leap
from idris.
Those exercises suite about every language, you won't need any of idris' special features to solve them.
And even with a lot of bending, I can't think of a way to solve those using dependent types, except for rna-transcription
, but its just using Vect n a
instead of List a
.
Sure this can be used to introduce Vect
s for the first time.
I'd really like to see some exercises that actually do something with the benefits of dependent types.
hamming
in its current for is a good start. By using Vect n a -> Vect n a -> Nat
, we specify in the functions type that both inputs are of same length. Also this makes us able to omit clauses for hitting the end of the list for a single list early and idris still knows that its fine. I like this! If now we could also find a way to tell, that the returned Nat
will be less than or equal to n
… But perhaps that would complicate things too much, but it would show the capabilities of dependent types.
But to be honest, I think we need exercises that deal with proofs and rewrites and stuff. In any language with dependent or refined types, this is my biggest problem. Convincing the compiler that the obvious holds…
from idris.
Maybe we could borrow some stuff from Logical Foundations. There ought to be something useful in https://github.com/idris-hackers/software-foundations
from idris.
Related Issues (20)
- Build representer
- Check docs are up to date
- Fix CI
- Launch tracking
- Move from Travis to GitHub Actions HOT 3
- Add nucleotide-count exercise
- Add kindergarten-garden exercise
- Add list-ops exercise
- Add pascals-triangle exercise
- exercises/practice/grains/src/Grains.idr
- Pass linting checks HOT 1
- Build Test Runner
- Build Representer and Analyzer HOT 1
- Update status of track
- Update status of Concept Exercises HOT 1
- Launch Tracker 🔴
- Add language blurb
- 🤖 Sync error for commit a955c6
- Extract track-specific help instructions from `config/exercise_readme.go.tmpl`
- Extract track-specific test instructions from `config/exercise_readme.go.tmpl`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from idris.