@kupac@functional.cafe avatar

kupac

@kupac@functional.cafe

This profile is from a federated server and may be incomplete. Browse more on the original instance.

brodriguesco, to random
@brodriguesco@fosstodon.org avatar

What are some packages that take forever to compile?

kupac,
@kupac@functional.cafe avatar
brodriguesco, to random
@brodriguesco@fosstodon.org avatar

What a perfect day to write some SAS© code on my Microsoft Windows 11® 15.6" Acer laptop

kupac,
@kupac@functional.cafe avatar

@brodriguesco
Working on that {six} package, are we?

kupac,
@kupac@functional.cafe avatar

@brodriguesco
Ah, the fully procedural package manager? X-D

coolbutuseless, to random
@coolbutuseless@fosstodon.org avatar

hivemind:

What's the current preferred solution for running multiple R versions on macOS?

rig?
rswitch?

something else?

kupac,
@kupac@functional.cafe avatar

@coolbutuseless
Ah, I thought it was spelled {rix} :)

brodriguesco, to random
@brodriguesco@fosstodon.org avatar

Contemplating going back to Ubuntu LTS from opensuse tumbleweed: with Nix on Ubuntu LTS it would easy to have a stable base with bleeding edge dev envs

kupac,
@kupac@functional.cafe avatar

@brodriguesco
Is there any reason why you don't go all in?

kupac, to random
@kupac@functional.cafe avatar

An unexpected benefit from fixing packages for is that you discover some super useful ones. Like {opencv} for face detection and other image analysis tasks, {unrtf} to process rich text files {asciicast} to create animated code displays, and the indispensable {switchboard} with a Pikachu-shaped progress bar.

It's also great fun to work with @brodriguesco, @specphil et al.

kupac, to random
@kupac@functional.cafe avatar

Hey, packaging and CRAN gurus out there! If a package needs another package for compilation only (not for its functionality), does that other package have to be in the DESCRIPTION? Where? Imports? Suggests? Nowhere?

kupac, to random
@kupac@functional.cafe avatar

Is there something like the Debian package popularity contest, but for packages on CRAN/Bioconductor?

brodriguesco, (edited ) to random
@brodriguesco@fosstodon.org avatar

I was very happy to talk about my package, {rix} at yesterday!

Video is available here:
https://www.youtube.com/watch?v=eWt1oXatxw8

Slides are available here: https://is.gd/fosdem_2024_rix

kupac,
@kupac@functional.cafe avatar

@brodriguesco
Damn, that was in Brussels???

kupac,
@kupac@functional.cafe avatar

@brodriguesco
I live nearby; it would have been nice to meet in person. Maybe another time!

BartoszMilewski, to random
@BartoszMilewski@mathstodon.xyz avatar

It seems like Nature does some suboptimal engineering. Every cell in your body contains the complete blueprint for the whole organism and instructions for assembling every possible protein. But only a small part of the DNA is ever used in somatic cells. The rest is inactive. Why carry this baggage?

kupac,
@kupac@functional.cafe avatar

@BartoszMilewski
Contrary to common belief, nature does not strive for perfection. Our bodies are full of inefficiencies and ugly hacks, but they work, and that's good enough. Having a copy of the whole genome in each cell allows transdifferentiation to other cell types (usually with an intermediate dedifferentiation step to a stem cell), which can improve fault tolerance [also known as healing :) ]

brodriguesco, to random
@brodriguesco@fosstodon.org avatar

Say want you want about the , nothing beats its expressiveness!

kupac,
@kupac@functional.cafe avatar

@brodriguesco
{lenses} FTW
@jrosell

Mehrad, to NixOS
@Mehrad@fosstodon.org avatar

A question for and folks:

I want to start a R project and I want to keep everything about this project static and frozen in time. I know nix-shell is a thing, but:

  1. is there a better/smoother approach?

  2. is it possible to also have a service/daemon running in that nix-shell ? The editor I use (Rstudio) has desktop and server versions, and I would rather have the server version running on a beefy remote machine and I ssh into it.

Boosting is highly appreciated :)

kupac,
@kupac@functional.cafe avatar

@Mehrad
{rix} will just help you generate the Nix expression you need for that fully reproducible environment. It will not be needed later and won't be included in the environment unless you declare it. You can give it a try, what can you lose?
@RossGayler @brodriguesco

kupac,
@kupac@functional.cafe avatar

@Mehrad
You can generate a systemd service in nix, but I never tried it myself (only on NIxOS).

I do run nix-defined rstudio server routinely by hand and connect to it remotely. So it is possible, but never documented it :) anyone else?

Miriamm, to random
@Miriamm@mastodon.social avatar

a guy showed up to group therapy wearing this lol

kupac,
@kupac@functional.cafe avatar

@Miriamm
I'd innocently ask him: You mean mental healthCARE, right?

brodriguesco, to python
@brodriguesco@fosstodon.org avatar

I am once again wondering if there is an equivalent to the great {targets} package by @landau for . Not just a build automation tool, but one that makes you write pure functions, making the pipeline a composition of pure functions. Is there something like that?

kupac,
@kupac@functional.cafe avatar

@brodriguesco

@landau
First, you have to ask: Are pure functions pythonic? ;-D

brodriguesco, to python
@brodriguesco@fosstodon.org avatar

Would you agree with the following statement (why, why not): "even though is multi-paradigm, the prevailing paradigm is object oriented programming"

kupac,
@kupac@functional.cafe avatar

@brodriguesco
Yes, 100%. The more experienced you get with , the more you adopt a functional style. It's just the right thing to do in that language.

In , you do that from the beginning. There's just no other way. You can write imperatively, but it's really a pain.

is different. You really have to want to write in a functional style, and even then, it doesn't make it easy for you.

So from the functional perspective: Haskell > R > Python

(Strictly IMO)

brodriguesco, to emacs
@brodriguesco@fosstodon.org avatar

What’s an LLM I can run on my machine to assist me with coding on ?

kupac,
@kupac@functional.cafe avatar
kupac,
@kupac@functional.cafe avatar
dgar, to random
@dgar@aus.social avatar

Vaccines are a leading cause of old age.

kupac,
@kupac@functional.cafe avatar

@dgar
Are you saying that they increase the lifetime risk of cancer? We're walking on thin ice here... 😏

brodriguesco, to random
@brodriguesco@fosstodon.org avatar

I really love this

The {targets} package is probably one of the most underrated packages out there! Give it a try! You won't regret it!

kupac,
@kupac@functional.cafe avatar

@brodriguesco
I've been eyeing {targets} for a while. How does it work together with , or other workflow managers, like ? Does it add useful functionality on top of those?

brodriguesco, to random
@brodriguesco@fosstodon.org avatar

Some people argue that renaming Twitter to X was the worst marketing move of history, but these people don't know that Speculoos are now called Biscoff

kupac,
@kupac@functional.cafe avatar

@brodriguesco
The end of an era. It'll never be the same again. Vlad can release those nukes, it doesn't matter anyway.

Mehrad, to random
@Mehrad@fosstodon.org avatar

I was discussing with a colleague the other day that perhaps the best and indisputable random generator seed is the author' s own name.

The issue is R's set.seed() only accepts integer as random seed value. So I played around a little and finally managed to come up with a simple one-liner solution all using base R to use my own name as random seed.

I wrote a short blog post about it to explain my journey:

https://mehrad.ai/posts/20231022-use-string-as-random-seed-in-r/

kupac,
@kupac@functional.cafe avatar

@Mehrad
I tend to use 8008135 as random seed. Don't know why, I just think it's a beautiful number.

kupac,
@kupac@functional.cafe avatar

@Mehrad
You're obviously not an ornithologist, then! :-p

brodriguesco, to NixOS
@brodriguesco@fosstodon.org avatar

it's on !

kupac,
@kupac@functional.cafe avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • GTA5RPClips
  • thenastyranch
  • tacticalgear
  • ethstaker
  • InstantRegret
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • Youngstown
  • mdbf
  • khanakhh
  • slotface
  • rosin
  • provamag3
  • kavyap
  • everett
  • cisconetworking
  • Durango
  • modclub
  • osvaldo12
  • tester
  • Leos
  • cubers
  • normalnudes
  • megavids
  • anitta
  • lostlight
  • All magazines