@postmodern@ruby.social
@postmodern@ruby.social avatar

postmodern

@postmodern@ruby.social

Maintainer of chruby, ruby-install, bundler-audit, digest-crc, spidr, ronin, and more on GitHub!

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

postmodern, to random
@postmodern@ruby.social avatar

There was a thread on the /r/ruby subreddit where @headius lamented about how C extensions have hindered JIT and eventual plans to remove the GIL. @tenderlove chimed in with tentative plans to eventually move away from C extensions. If we could somehow rid ourselves of C extensions, this would make it easier for multiple Ruby versions to share the same GEM_HOME (ex: RVM/rbenv/chruby). You shouldn't have to delete/re-install all of your gems after upgrading ruby 3.1.5 -> 3.1.6.

postmodern, to random
@postmodern@ruby.social avatar

Occasionally the contrarian DHH gets it right. He finally came to the logical conclusion of just using Linux as a development environment. A bit annoyed he didn't call out macOS for all of the ridiculous hoops you have to jump through to setup a dev env (XCode, iTerm2, homebrew, case insensitive file-systems, etc), where as every Linux distro provides everything via the built-in package manager.
https://world.hey.com/dhh/linux-as-the-new-developer-default-at-37signals-ef0823b7
#yearofthelinuxdesktop #justuselinux #linuxdevenvironment

postmodern,
@postmodern@ruby.social avatar

@collin you mean like iTerm2 (which decided to jump on the AI bandwagon), or Adobe Suite (which is now cloud based for some reason), or do you mean iTunes (which started out as a music player, but is now an app store apparently)?

There's lots of annoying UX in Gnome or KDE (Gimp is frequently criticized), but I'd argue that macOS is less cohesive.

postmodern, to random
@postmodern@ruby.social avatar

I feel like ruby-core should bring back .tar.bz2 archives. OpenBSD doesn't support xz by default, but almost every *nix based OS supports .bz2.
https://ruby-lang.org/en/news/2024/05/16/ruby-3-4-0-preview1-released/

postmodern, to javascript
@postmodern@ruby.social avatar

What is the current best solution for testing client-side vanilla JavaScript (ES9)? I'm intentionally not using any fancy frameworks. Just plain old vanilla JavaScript and breaking everything apart into small classes.
http://vanilla-js.com/
#javascript

postmodern, to opensource
@postmodern@ruby.social avatar

PSA: HEADS UP EVERYONE! Another project noticed they were being targeted with similar social engineering tactics as the xz-utils backdoor attack. Be on the lookout for random people demanding that you add someone new as a maintainer for vague but urgent "reasons". Google their emails, check their GitHub/GitLab histories, see if they are on Mastodon/Reddit/"X"/LinkedIn. If they do not have an internet footprint, they are probably a plant.
https://openssf.org/blog/2024/04/15/open-source-security-openssf-and-openjs-foundations-issue-alert-for-social-engineering-takeovers-of-open-source-projects/
#opensource #opensourcesecurity

postmodern, to mechanicalkeyboards
@postmodern@ruby.social avatar

Are there any actual testimonies that using a mechanical keyboard helped with RSI? I can find plenty of blog posts which suggest it helps, but no one who can vouch that it actually did.

postmodern, to random
@postmodern@ruby.social avatar

Wow https://crystal-lang.org/ looks really nice!

janl, to javascript
@janl@narrativ.es avatar

Has anyone toyed with distributing “closed source” #JavaScript modules as V8 bytecode? I know you can pre-compile and load bytecode just fine. I also know that to some degree you can turn bytecode back into JS, but is that result useful enough to make the shipping as bytecode a moot point? And are there other options? Can WASM help?

(I know no solution is going to be perfect)

postmodern,
@postmodern@ruby.social avatar

@janl I think this is what WASM is for. Basically bringing the dream of the JVM to JavaScript.

postmodern, to random
@postmodern@ruby.social avatar

Accept that hard things are actually hard. There's a reason why nobody else has solved the same problem your currently working on.

postmodern, to random
@postmodern@ruby.social avatar

Hot Take, but bear with me here. What if, hypothetically speaking, we listened to the opinions of Software Engineers about software and programming, instead of CEOs of tech companies who have a vested interest in hyping up LLMs, attracting more VC money, making their stock go up, or selling more overpriced GPUs? I think the profession which literally contains both the words Software and Engineer might have more experience with the subject.

avdi, to random

INSTALLATION

Installation is super easy. Open your MacOS terminal, and...

INSTALLATION for LINUX

OK first of all fuck you for wanting to install a UNIX command-line tool on a modern UNIX instead of a bastardized BSD from 1990 as Jobs intended. Secondly, please use curl to install a third-party package manager...

postmodern,
@postmodern@ruby.social avatar

@avdi wait isn't that backwards? Is that the joke.gif?

postmodern,
@postmodern@ruby.social avatar

@avdi @mkarliner I also think it's weird how macOS users think it's normal to recommend jumping through all of these hoops to setup a macOS system. "First install XCode. Then install homebrew. Then install docker. Then..."

Meanwhile Linux has a built-in package manager with all of the usual packages. There's also snapcraft or flatpak. Plus there's Ubuntu's and SnapOS's appstore, etc.

postmodern, to random
@postmodern@ruby.social avatar

Say you have some code which tries to recognize the format of some data, then initializes it using another class specifically for that format of data, and that class also performs validation with a complex regex to ensure it's valid data for that class. How would you prevent double-validation? Or should I even care that a string is compared against a complex regex twice?

postmodern, to ruby
@postmodern@ruby.social avatar

How does emscripten/emirb/WASM handle embedding other Ruby libraries, or even C extensions? Would it be possible to precompile a version of emirb with various gems pre-loaded?
https://mame.github.io/emirb/
#ruby #emirb

nixCraft, to random
@nixCraft@mastodon.social avatar

😂 , , and lang comic.

postmodern,
@postmodern@ruby.social avatar

@nixCraft I have no idea why the tech community keeps insisting on hating on Ruby, despite it powering GitHub, Shopify, Stripe, AirBnB, and Mastodon which is a Rails app. Please stop bullying the Ruby community and get a hobby instead.

watzon, to typescript

Honestly getting really discouraged by all these layoffs. I had high hopes in the beginning because companies typically do a lot of hiring in Q1, but with big tech companies doing sweeping layoffs again the market is being flooded with highly qualified devs.

That being said, if you need an experienced engineer, I'm here.

#fedihired #jobs #typescript #javascript #vue #crystallang #golang #ruby #python #WillingToLearnRust

postmodern,
@postmodern@ruby.social avatar

@watzon this is why I'm becoming more interested in independent contracting and/or launching a subscription-based SaaS website.

postmodern, to random
@postmodern@ruby.social avatar

Rule of Thumb: if lazy loading becomes too complex, fall back to eager loading. Sometimes it's more important to just get the code done, then prematurely hyper-optimize it.

postmodern, to random
@postmodern@ruby.social avatar

Time to update all of the GitHub actions to include ruby 3.3.0. Just spotted this weird bug involving String.new(..., encoding: ...). The ronin-support spec suite keeps paying off.
https://github.com/ronin-rb/ronin-support/actions/runs/7344375314/job/19996142358

postmodern, to ruby
@postmodern@ruby.social avatar

I should do a passionate talk about how Ruby and it's community is still here. So many trolls tried to claim that Ruby was a passing fad, or that I'd pick a new language next week, or that "Ruby is dead". And yet I am still here, we are still here, Ruby, Ruby is still here. We are not going anywhere.
#ruby

postmodern, to ruby
@postmodern@ruby.social avatar

I have added ruby-3.3.0 to the ruby-versions repository so you can now safely install ruby-3.0.0 with ruby-install.

$ sudo ruby-install ruby-3.3.0

#ruby #rubyinstall #ruby_install

postmodern, to ruby
@postmodern@ruby.social avatar

I am really impressed at the scale of the changes in Ruby 3.3.0. Totally brand new parser (Prism). Switching from Bison to Lrama. Tons of YJIT performance improvements. M:N thread scheduler. These are big and methodical changes that one would expect from a mature scripting language. Congratulations to ruby-core and all of the contributors!
https://www.ruby-lang.org/en/news/2023/12/25/ruby-3-3-0-released/
#ruby

mackuba, to ruby
@mackuba@martianbase.net avatar

Just thinking out loud here, but… what languages can you write #Ruby extensions in apart from C? 🤔 My Apple dev feed service for Bluesky has a 4-digit number of regexps to check now and it takes a while when rescanning millions of posts… it could use some optimizing.

postmodern,
@postmodern@ruby.social avatar

@mackuba you'd have to rewrite it in Crystal. Crystal cannot be embedded in Ruby directly, since they both have GCs.

gabek, to random

I respond to VCs about Owncast pretty often, and I’ve never been super transparent about it. So here’s a response I just sent.

postmodern,
@postmodern@ruby.social avatar

@gabek having been through a [commercial] acquisition, most of the time the company has no clue what they are buying, quickly loses interest in it, under funds the project, and eventually shuts it down to save money. Even if a corporate benefactor buys an Open Source project, and manages to keep it maintained, the project always stops innovating/competing and stagnates.

tl;dr: don't sell your IP rights.

postmodern, to random
@postmodern@ruby.social avatar

I wonder if there's some kind of old UNIX rule for which option flags should have capital letters vs. which ones should be lowercase letters? Currently I am second guessing myself whether to use -t or -T for --text.
#cli

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