SchrodingerZhu

SchrodingerZhu

Hello, everyone! I do hope that the standard library can absorb some basic tools in FP (Functional Programming). For example, the standard library can provide the full implement of algae(ADTs together with monads and so on) and thunk(laziness).

Showing Posts 1 to 6

NobbZ

NobbZ

Lazyness is already there, to a certain level at least, you can find it in the Stream module.

Also, nothing of the things you mentioned is necessary for a language to be FP, nor does a language need to be FP to make use of Algebraic Datatypes or lazyness.

But perhaps I got you wrong and you can get a bit more into detail what you actually mean.

kokolegorille

kokolegorille

There is also

and

Both by expede.

And a related talk by the author

SchrodingerZhu

SchrodingerZhu OP

Ofc. They are not necessary…But it may be more convenient, I suggest. And, maybe it is just alright to include them in Hex for now..

NobbZ

NobbZ

Putting all those stuff into the stdlib, would put a lot of a burden to the core team. Also all that typeclassopedia mumble coming along with ADTs (Functors, Applicatives, Monoids, Monads et al.) is scarying newcommers.

When I was in FP class, I’ve seen a lot of students that grasp the syntax of Haskell easily, but had hard trouble to understand everything beyond the differences between sum and producttypes.

Therefore I conclude that putting those tools into the stdlib as a mandatory tool would make it hard for newcomers to get into elixir, while putting them there as optional tools would put the burden of maintanance on the core team while users wont use them that much.

mbuhot

mbuhot

Jose blogged about FP in elixir a while back.

FP is great, but it’s not the end goal, it’s a means to building concurrent and fault tolerant systems.

SchrodingerZhu

SchrodingerZhu OP

Ok, I understand now.

— All posts loaded —

Where Next? Top

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2977 94592 917
New
cblavier
Hey there, It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
New
caslu
I want to open this thread for you all to discuss and help those who really like Ash but are still hesitant to use it in a real project. ...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
heathen
Quite interesting article Google brought me. Didn’t find any mentions about it here. What do you think in general? Would you use togethe...
New
maennchen
:warning: Security advisory: Decimal DoS vulnerability A vulnerability has been published for decimal where very large exponents can cau...
New
marciol
It would be helpful to have a list of companies worldwide that hire engineers without prior experience in Elixir. Often, it can be quite ...
New

Other Trending Topics Top

marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
webofbits
Aludel - LLM Evaluation Workbench Aludel is an embeddable Phoenix LiveView dashboard for evaluating and comparing LLM prompts across mult...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews