mastodon.ie is one of the many independent Mastodon servers you can use to participate in the fediverse.
Irish Mastodon - run from Ireland, we welcome all who respect the community rules and members.

Administered by:

Server stats:

1.6K
active users

#functional

2 posts2 participants0 posts today

**3D printing bicycle handles**

The old bicycle handles became sticky (some kind of silicone rubber?) so I had to replace them. I could bought them, but then I would miss the opportunity to learn some more FreeCad.

Here is the final result: one pair of smooth and one pair of rigged handles printed with orange TPU:

There is 1 main part (for the smooth handle) or 11 main parts (for the rigged handle):

  • one tall hollow cylinder
  • 10 rigs

Steps:

  1. Open FreeCad, Select ‘Part Design‘ workbench, New Body
  2. Create new additive cylinder (d=30.4mm, h=115mm)
  3. Create new hole on the top side of the cylinder (d=22.3mm, depth=11mm, drill point=angled)
  4. Select bottom edge and top edge of the cylinder, create fillets for smooth edges
  5. Select inner side of the hole, create chamfer (to easy slip the hole on the metallic handle)
  6. Create new body (for rigs)
  7. Create new additive torus (the first rig), transform, move it to the correct position
  8. Go to Part workbench, scale the first rig on the z-axis (factor 2)
  9. Copy-paste the first rig 9x and evenly distribute it along the handle (transform, move on the z-axis)
  10. Select all, Union (in Part workbench)
  11. Select the newly created Fusion, export as .stl

12. Import .stl to Ultimaker Cura Slicer

13. 3D print settings:

  • Material: Generic TPU 95A
  • Layer height: normal
  • Temperature: 228C
  • Bed: 60C
  • Fan: 5%
  • Speed: 60mm/s
  • Arc welder on
  • No supports, brims

Send to Octoprint, wait 2 hrs, take timelapse meanwhile, done. Here’s the timelapse of the smaller, smooth handle:

Tags: #3dprinting #tpu #functional

https://blog.rozman.info/3d-printing-bicycle-handles/

I know I CAN DO IT. I can have a purely #functional language WITH MUTATION and without having to resort to #monads.
And it's AWESOME and I'm *completely* alone in my enthusiasm.
Why OH WHYYYYYY the rest of my fellow humans are barren to this beauty?

(For the technically curious: I'm using uniqueness typing and a bit of syntactic sugar to maintain referential transparency).

There could even be a way to implement safe pointers.

@lil5 how awesome you want to dive deeper into purely #functional #programming 🤟 I think even if you don't plan to use #haskell for a great good, this is a great mind expanding experience. I would suggest to try to build something real with the language as you go, for me it is the best way to learn. This book is awesome, I also bought it btw. I think everyone struggles mostly with function composition (my fav) and the laziness, and of course do notation (monadic), but it will click, trust me.

I am using one tool implemented in Haskell. Cost: my #ArchLinux updates about 100 #Haskell packages every 2 days on average. Seriously? I am starting to think that even though I am a #functional programmer, programming in Haskell would not be for me - and not for the ferocious purity and laziness, but for the stability of the environment!

Disclaimer: I know nothing about the Haskell ecosystem. It may well be that these updates are just as innocuous as they are irritating.

#ITByte: #Functional #Interfaces were added in Java 8 with #Lambda expressions and Method references in order to make code more readable, clean, and straightforward.

A functional interface is an interface that contains exactly one abstract method. This means that a functional interface can be implemented by a lambda expression, which is a concise way to write a function.

knowledgezone.co.in/posts/Java

Preprint of the longest paper I ever contributed to: arxiv.org/abs/2505.08906 - it is a qualitative and quantitative comparison of various #functional #array languages, with a significant #gpgpu element.

arXiv.orgComparing Parallel Functional Array Languages: Programming and PerformanceParallel functional array languages are an emerging class of programming languages that promise to combine low-effort parallel programming with good performance and performance portability. We systematically compare the designs and implementations of five different functional array languages: Accelerate, APL, DaCe, Futhark, and SaC. We demonstrate the expressiveness of functional array programming by means of four challenging benchmarks, namely N-body simulation, MultiGrid, Quickhull, and Flash Attention. These benchmarks represent a range of application domains and parallel computational models. We argue that the functional array code is much shorter and more comprehensible than the hand-optimized baseline implementations because it omits architecture-specific aspects. Instead, the language implementations generate both multicore and GPU executables from a single source code base. Hence, we further argue that functional array code could more easily be ported to, and optimized for, new parallel architectures than conventional implementations of numerical kernels. We demonstrate this potential by reporting the performance of the five parallel functional array languages on a total of 39 instances of the four benchmarks on both a 32-core AMD EPYC 7313 multicore system and on an NVIDIA A30 GPU. We explore in-depth why each language performs well or not so well on each benchmark and architecture. We argue that the results demonstrate that mature functional array languages have the potential to deliver performance competitive with the best available conventional techniques.
Continued thread

#Space 🌌 is a far more logical, sensible place to do #fusion, because that’s where it wants to happen anyway. In 📆 2027, we’re going to send a small part of #Sunbird in #orbit. The first #functional Sunbird will be ready four to five years later. Sunbird could deliver #cargo to #Mars 🔴 in under six months edition.cnn.com/science/nuclea

CNN · Nuclear-powered rocket concept could cut journey time to Mars in halfBy Jacopo Prisco

I'm looking for interesting new ways to bend (or break) my brain. Is there a #functional (first) #programming language that compiles down to single binaries?
I have some experience with F#, but it's been ages since I used it and I don't really like whatever "self-contained" .Net binaries are. 😬
Haven't tried Elm or Haskell yet.
Any recommendations?

GNU Guix: Revolutionizing Software Deployment with Functional Package Management

GNU Guix is an innovative package manager and operating system that rethinks software deployment by adopting a purely functional approach. Unlike traditional package managers, Guix manages software in a way that guarantees reproducibility, transactional upgrades, and precise dependency tracking.

Read More: machaddr.substack.com/p/gnu-gu