#functionalprogramming — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #functionalprogramming, aggregated by home.social.
-
Did you know you can pass < or > directly into sorted(by:) as closures? This technique leverages Swift's functional programming capabilities for more expressive and concise collection sorting.
🔗: https://nilcoalescing.com/blog/SortingArraysInSwiftUsingComparisonOperators/ by Natalia Panferova (@natpanferova)
-
Did you know you can pass < or > directly into sorted(by:) as closures? This technique leverages Swift's functional programming capabilities for more expressive and concise collection sorting.
🔗: https://nilcoalescing.com/blog/SortingArraysInSwiftUsingComparisonOperators/ by Natalia Panferova (@natpanferova)
-
Did you know you can pass < or > directly into sorted(by:) as closures? This technique leverages Swift's functional programming capabilities for more expressive and concise collection sorting.
🔗: https://nilcoalescing.com/blog/SortingArraysInSwiftUsingComparisonOperators/ by Natalia Panferova (@natpanferova)
-
Did you know you can pass < or > directly into sorted(by:) as closures? This technique leverages Swift's functional programming capabilities for more expressive and concise collection sorting.
🔗: https://nilcoalescing.com/blog/SortingArraysInSwiftUsingComparisonOperators/ by Natalia Panferova (@natpanferova)
-
Did you know you can pass < or > directly into sorted(by:) as closures? This technique leverages Swift's functional programming capabilities for more expressive and concise collection sorting.
🔗: https://nilcoalescing.com/blog/SortingArraysInSwiftUsingComparisonOperators/ by Natalia Panferova (@natpanferova)
-
```
// ranged.gleampub opaque type Ranged { Ranged(value: Int, min: Int, max: Int }
pub fn new(value, min, max) -> {
Ranged(
value: int.clamp(value, min:, max:),
min:,
max:,
)
}pub fn set(current: Ranged, to new: Int) -> Ranged {
Ranged(
value: int.clamp(
new,
current.min,
current.max,
),
min: current.min,
max: current.max,
)
}
```1 of 2
#gleam #gamedev #functionalprogramming
edit: noo, my indentation :(
-
```
// ranged.gleampub opaque type Ranged { Ranged(value: Int, min: Int, max: Int }
pub fn new(value, min, max) -> {
Ranged(
value: int.clamp(value, min:, max:),
min:,
max:,
)
}pub fn set(current: Ranged, to new: Int) -> Ranged {
Ranged(
value: int.clamp(
new,
current.min,
current.max,
),
min: current.min,
max: current.max,
)
}
```1 of 2
#gleam #gamedev #functionalprogramming
edit: noo, my indentation :(
-
```
// ranged.gleampub opaque type Ranged { Ranged(value: Int, min: Int, max: Int }
pub fn new(value, min, max) -> {
Ranged(
value: int.clamp(value, min:, max:),
min:,
max:,
)
}pub fn set(current: Ranged, to new: Int) -> Ranged {
Ranged(
value: int.clamp(
new,
current.min,
current.max,
),
min: current.min,
max: current.max,
)
}
```1 of 2
#gleam #gamedev #functionalprogramming
edit: noo, my indentation :(
-
New blog post: Rules, Types, and Glue: A Multi-Paradigm Architecture for Game Simulation 🎮🧱
A deep dive into combining classical AI and strict type systems for high-performance simulation engines. I evaluate:
🧠 Prolog for symbolic reasoning (Rules)
🧱 Coalton for static type-safety (Types)
🔄 Common Lisp as the high-speed runtime (Glue)Includes SBCL vs. ECL performance benchmarks.
Read it here: https://dwightaspencer.com/posts/03-rules-types-and-glue/
#CommonLisp #Prolog #StandardML #FunctionalProgramming #GameDev #Simulation
-
New blog post: Rules, Types, and Glue: A Multi-Paradigm Architecture for Game Simulation 🎮🧱
A deep dive into combining classical AI and strict type systems for high-performance simulation engines. I evaluate:
🧠 Prolog for symbolic reasoning (Rules)
🧱 Coalton for static type-safety (Types)
🔄 Common Lisp as the high-speed runtime (Glue)Includes SBCL vs. ECL performance benchmarks.
Read it here: https://dwightaspencer.com/posts/03-rules-types-and-glue/
#CommonLisp #Prolog #StandardML #FunctionalProgramming #GameDev #Simulation
-
There's an "Ultimate Functional Programming Bundle" on Humble Bundle right now. And…
… if only I had more time (and a need (and fewer constraints on colleagues _also_ needing to know it))…
The "Seven Obscure Languages in Seven Weeks" book particularly caught my eye 😁
https://www.humblebundle.com/books/ultimate-functional-programming-pragmatic-programmers-books
#FunctionalProgramming #HumbleBundle #PayWhatYouWant #Charity
-
There's an "Ultimate Functional Programming Bundle" on Humble Bundle right now. And…
… if only I had more time (and a need (and fewer constraints on colleagues _also_ needing to know it))…
The "Seven Obscure Languages in Seven Weeks" book particularly caught my eye 😁
https://www.humblebundle.com/books/ultimate-functional-programming-pragmatic-programmers-books
#FunctionalProgramming #HumbleBundle #PayWhatYouWant #Charity
-
There's an "Ultimate Functional Programming Bundle" on Humble Bundle right now. And…
… if only I had more time (and a need (and fewer constraints on colleagues _also_ needing to know it))…
The "Seven Obscure Languages in Seven Weeks" book particularly caught my eye 😁
https://www.humblebundle.com/books/ultimate-functional-programming-pragmatic-programmers-books
#FunctionalProgramming #HumbleBundle #PayWhatYouWant #Charity
-
There's an "Ultimate Functional Programming Bundle" on Humble Bundle right now. And…
… if only I had more time (and a need (and fewer constraints on colleagues _also_ needing to know it))…
The "Seven Obscure Languages in Seven Weeks" book particularly caught my eye 😁
https://www.humblebundle.com/books/ultimate-functional-programming-pragmatic-programmers-books
#FunctionalProgramming #HumbleBundle #PayWhatYouWant #Charity
-
There's an "Ultimate Functional Programming Bundle" on Humble Bundle right now. And…
… if only I had more time (and a need (and fewer constraints on colleagues _also_ needing to know it))…
The "Seven Obscure Languages in Seven Weeks" book particularly caught my eye 😁
https://www.humblebundle.com/books/ultimate-functional-programming-pragmatic-programmers-books
#FunctionalProgramming #HumbleBundle #PayWhatYouWant #Charity
-
UK Racket meet-up: London 7:30pm Tuesday 19 May 2026
at The City Pride 🍕28 Farringdon Ln, London EC1R 3AU
Join us for discussion and pizza. All welcome.
https://racket.discourse.group/t/uk-racket-meet-up-7-30pm-tuesday-19-may-2026/4215
https://luma.com/2efru5cn
https://www.eventbrite.co.uk/e/uk-racket-meet-up-tickets-1989775291460
#racket #lisp #scheme #functionalprogramming -
UK Racket meet-up: London 7:30pm Tuesday 19 May 2026
at The City Pride 🍕28 Farringdon Ln, London EC1R 3AU
Join us for discussion and pizza. All welcome.
https://racket.discourse.group/t/uk-racket-meet-up-7-30pm-tuesday-19-may-2026/4215
https://luma.com/2efru5cn
https://www.eventbrite.co.uk/e/uk-racket-meet-up-tickets-1989775291460
#racket #lisp #scheme #functionalprogramming -
UK Racket meet-up: London 7:30pm Tuesday 19 May 2026
at The City Pride 🍕28 Farringdon Ln, London EC1R 3AU
Join us for discussion and pizza. All welcome.
https://racket.discourse.group/t/uk-racket-meet-up-7-30pm-tuesday-19-may-2026/4215
https://luma.com/2efru5cn
https://www.eventbrite.co.uk/e/uk-racket-meet-up-tickets-1989775291460
#racket #lisp #scheme #functionalprogramming -
UK Racket meet-up: London 7:30pm Tuesday 19 May 2026
at The City Pride 🍕28 Farringdon Ln, London EC1R 3AU
Join us for discussion and pizza. All welcome.
https://racket.discourse.group/t/uk-racket-meet-up-7-30pm-tuesday-19-may-2026/4215
https://luma.com/2efru5cn
https://www.eventbrite.co.uk/e/uk-racket-meet-up-tickets-1989775291460
#racket #lisp #scheme #functionalprogramming -
UK Racket meet-up: London 7:30pm Tuesday 19 May 2026
at The City Pride 🍕28 Farringdon Ln, London EC1R 3AU
Join us for discussion and pizza. All welcome.
https://racket.discourse.group/t/uk-racket-meet-up-7-30pm-tuesday-19-may-2026/4215
https://luma.com/2efru5cn
https://www.eventbrite.co.uk/e/uk-racket-meet-up-tickets-1989775291460
#racket #lisp #scheme #functionalprogramming -
🚀 Wow, Bartosz, you've managed to make #Haskell even less comprehensible by introducing "Profunctor Equipment"—because we all needed another reason to avoid functional programming! 🙃 Trust the compiler more than AI? Sure, because when my code breaks, it's way more fun to blame an inanimate syntax stickler than a sentient one. 🤖🔧
https://bartoszmilewski.com/2026/05/16/profunctor-equipment-in-haskell/ #Profunctor #FunctionalProgramming #CodeHumor #TrustTheCompiler #HackerNews #ngated -
🚀 Wow, Bartosz, you've managed to make #Haskell even less comprehensible by introducing "Profunctor Equipment"—because we all needed another reason to avoid functional programming! 🙃 Trust the compiler more than AI? Sure, because when my code breaks, it's way more fun to blame an inanimate syntax stickler than a sentient one. 🤖🔧
https://bartoszmilewski.com/2026/05/16/profunctor-equipment-in-haskell/ #Profunctor #FunctionalProgramming #CodeHumor #TrustTheCompiler #HackerNews #ngated -
🚀 Wow, Bartosz, you've managed to make #Haskell even less comprehensible by introducing "Profunctor Equipment"—because we all needed another reason to avoid functional programming! 🙃 Trust the compiler more than AI? Sure, because when my code breaks, it's way more fun to blame an inanimate syntax stickler than a sentient one. 🤖🔧
https://bartoszmilewski.com/2026/05/16/profunctor-equipment-in-haskell/ #Profunctor #FunctionalProgramming #CodeHumor #TrustTheCompiler #HackerNews #ngated -
🚀 Wow, Bartosz, you've managed to make #Haskell even less comprehensible by introducing "Profunctor Equipment"—because we all needed another reason to avoid functional programming! 🙃 Trust the compiler more than AI? Sure, because when my code breaks, it's way more fun to blame an inanimate syntax stickler than a sentient one. 🤖🔧
https://bartoszmilewski.com/2026/05/16/profunctor-equipment-in-haskell/ #Profunctor #FunctionalProgramming #CodeHumor #TrustTheCompiler #HackerNews #ngated -
🚀 Wow, Bartosz, you've managed to make #Haskell even less comprehensible by introducing "Profunctor Equipment"—because we all needed another reason to avoid functional programming! 🙃 Trust the compiler more than AI? Sure, because when my code breaks, it's way more fun to blame an inanimate syntax stickler than a sentient one. 🤖🔧
https://bartoszmilewski.com/2026/05/16/profunctor-equipment-in-haskell/ #Profunctor #FunctionalProgramming #CodeHumor #TrustTheCompiler #HackerNews #ngated -
🚀 Higher-Kinded-J v0.4.4 is out — functional programming for Java 25.
🧪 NEW hkj-test module: fluent AssertJ assertions for every HKJ type — Either, Maybe, Try, IO, VTask, every transformer — behind a single import.
🔗 PCollections integration: HKT compatibility + 7 new optics generators (30 across 7 families).
➕ Alternative.orElseAll(Iterable) & MonadZero.filter.
🔭 Optic-polymorphic ForState.zoom & ReaderPath.magnify.No breaking changes.
📦 https://github.com/higher-kinded-j/higher-kinded-j/releases/tag/v0.4.4
📚 https://higher-kinded-j.github.io -
🚀 Higher-Kinded-J v0.4.4 is out — functional programming for Java 25.
🧪 NEW hkj-test module: fluent AssertJ assertions for every HKJ type — Either, Maybe, Try, IO, VTask, every transformer — behind a single import.
🔗 PCollections integration: HKT compatibility + 7 new optics generators (30 across 7 families).
➕ Alternative.orElseAll(Iterable) & MonadZero.filter.
🔭 Optic-polymorphic ForState.zoom & ReaderPath.magnify.No breaking changes.
📦 https://github.com/higher-kinded-j/higher-kinded-j/releases/tag/v0.4.4
📚 https://higher-kinded-j.github.io -
🚀 Higher-Kinded-J v0.4.4 is out — functional programming for Java 25.
🧪 NEW hkj-test module: fluent AssertJ assertions for every HKJ type — Either, Maybe, Try, IO, VTask, every transformer — behind a single import.
🔗 PCollections integration: HKT compatibility + 7 new optics generators (30 across 7 families).
➕ Alternative.orElseAll(Iterable) & MonadZero.filter.
🔭 Optic-polymorphic ForState.zoom & ReaderPath.magnify.No breaking changes.
📦 https://github.com/higher-kinded-j/higher-kinded-j/releases/tag/v0.4.4
📚 https://higher-kinded-j.github.io -
🚀 Higher-Kinded-J v0.4.4 is out — functional programming for Java 25.
🧪 NEW hkj-test module: fluent AssertJ assertions for every HKJ type — Either, Maybe, Try, IO, VTask, every transformer — behind a single import.
🔗 PCollections integration: HKT compatibility + 7 new optics generators (30 across 7 families).
➕ Alternative.orElseAll(Iterable) & MonadZero.filter.
🔭 Optic-polymorphic ForState.zoom & ReaderPath.magnify.No breaking changes.
📦 https://github.com/higher-kinded-j/higher-kinded-j/releases/tag/v0.4.4
📚 https://higher-kinded-j.github.io -
Charity – Categorical programming language (1998)
https://github.com/mietek/charity-lang/blob/master/doc/README.md
#HackerNews #Charity #CategoricalProgramming #Language #ProgrammingHistory #FunctionalProgramming #GitHub
-
Charity – Categorical programming language (1998)
https://github.com/mietek/charity-lang/blob/master/doc/README.md
#HackerNews #Charity #CategoricalProgramming #Language #ProgrammingHistory #FunctionalProgramming #GitHub
-
Charity – Categorical programming language (1998)
https://github.com/mietek/charity-lang/blob/master/doc/README.md
#HackerNews #Charity #CategoricalProgramming #Language #ProgrammingHistory #FunctionalProgramming #GitHub
-
Charity – Categorical programming language (1998)
https://github.com/mietek/charity-lang/blob/master/doc/README.md
#HackerNews #Charity #CategoricalProgramming #Language #ProgrammingHistory #FunctionalProgramming #GitHub
-
Charity – Categorical programming language (1998)
https://github.com/mietek/charity-lang/blob/master/doc/README.md
#HackerNews #Charity #CategoricalProgramming #Language #ProgrammingHistory #FunctionalProgramming #GitHub