@Schneems@ruby.social avatar

Schneems

@Schneems@ruby.social

I am:

Y’all means all

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

camertron, to random
@camertron@ruby.social avatar

yo dat quicktime be such a player

Schneems,
@Schneems@ruby.social avatar

@camertron a real qt for sure

Schneems, to random
@Schneems@ruby.social avatar

The name for a group of software architects is called "it depends."

Schneems, to ruby
@Schneems@ruby.social avatar

Ever find a tutorial that was broken is some subtle but deeply fundamental way?

Ever WRITE a tutorial that was broken in some subtle but deeply fundmental way?

I just released RunDOC 2.0. A tool for writing tutorials that run and embed the results into a markdown document. Check it out https://github.com/zombocom/rundoc

#ruby

Schneems,
@Schneems@ruby.social avatar

Want an example? I used rundoc for this CNB tutorial https://www.schneems.com/2024/05/01/build-a-ruby-on-rails-application-image-in-5-minutes-no-dockerfile-required/

All of the output in the tutorial is REAL output.

Schneems, to random
@Schneems@ruby.social avatar

Ever want to have multiple Ruby bindings that are isolated from each other? I found a hack way to do this with Ractor.new:

https://stackoverflow.com/questions/50263804/any-way-to-create-a-new-empty-binding-in-ruby/78426206#78426206

Schneems, to random
@Schneems@ruby.social avatar

The voyager stuff is cool, but where are the hard debugging details. How did they isolate the problem to that specific chip?

They're moving the logic somewhere else, cool. Is it replacing/diminishing other functionality? Was voyager created/born with the ability to hotfix software or was that hacked on.

Don't leave me hanging! Turn this into a Netflix drama

maxim, to random
@maxim@ruby.social avatar

@Schneems Hello! Fellow rubyist here. Since you work(ed?) at Heroku, and if it's not a trade secret, would you mind sharing how you folks shut down ephemeral one-off containers that run console and rake tasks? For example, if connection drops on user's end, how would you know to kill the container asap? Is that done via some standard config, or something proprietary? We're trying to find a simple way to shut down a container if client connection is lost, and been stuck so far.

Schneems,
@Schneems@ruby.social avatar

@maxim I’ve got no clue. We restart every box at least once every 24 hours so if there was a mistake the worst that would happen is an extra day of dyno hours.

Most all connection commands go though some service though so when you “Heroku run bash” there is likely a callback that tells the API to prune the instance when it shuts down.

The CLI is all open source, you could poke there. IDK if there are any “is connected, but no data after X minutes” disconnect.

Schneems, to random
@Schneems@ruby.social avatar

Name a fictional or real robot.

Preferably not violent or adult. I need ideas for labeling robotics kits for an elementary school class I help with.

bagder, to random
@bagder@mastodon.social avatar

Is it time to drop support from and call the experiment a failure?

https://curl.se/mail/lib-2024-04/0021.html

Schneems,
@Schneems@ruby.social avatar

@bagder they hyper maintainer was just on rustacean station podcast and mentioned this effort. Sounds like they personally won’t get involved but they are doing the full-time open source maintainer thing.

b0rk, to random
@b0rk@jvns.ca avatar

started using a Mac as my personal machine recently after exclusively using linux for 20 years and one of the most surprising things has been that the options for creative software (making vector graphics, fonts, etc) on Mac really are much better in many cases

feels like one of those things that everyone knows but I never really internalized

(do not lecture me about the options available on Linux, I promise I know)

Schneems,
@Schneems@ruby.social avatar

@b0rk I hate that it’s required but I love your prompts at the bottom of your posts. It makes me feel like maybe this kind of thing should be a feature of mastodon.

Like the same way when someone goes to open an issue in a github repo and they get an issue template, maybe when someone posts give them the option of specifying a message only people who click the “reply” button see.

camertron, to random
@camertron@ruby.social avatar

People say Ruby is slow, and sure, it can be. But the amount of time I spend waiting on JavaScript tools absolutely dwarfs the time I spend waiting on Ruby tools.

By at least an order of magnitude.

Schneems,
@Schneems@ruby.social avatar

@camertron @codefolio I used to think people saying “Ruby is slow” was about JIT. Then I started reading Rust performance optimization posts where people complain certain code isn’t producing SIMD capable instructions so they write inline assembly. In the comments section there Ruby isn’t slow, Go is.

I don’t disagree about what’s being said in this thread, but didn’t really appreciate what exactly other communities meant when they say “X is slow” until I had that experience.

Schneems, to random
@Schneems@ruby.social avatar

Heroku has relied on people specifying a Ruby version in their Gemfile for a LONG time. We’ve never required it in the Gemfile.lock, until today.

We recently rolled out new Bundler versions which come with some new behavior. If you’re using Bundler 2.4+ you are required to have RUBY VERSION in your Gemfile.lock.

https://devcenter.heroku.com/changelog-items/2809

ekuber, to rust
@ekuber@hachyderm.io avatar

What would you take out of this diagnostic? Is this too much information? Would you prefer to have a shorter message at the cost of needing multiple cycles of the compiler telling you you're missing a change?

Schneems,
@Schneems@ruby.social avatar

@ekuber somewhat tangential: I had a hard time understanding that ‘static effectively meant “owned or static”

hailey, to random
@hailey@hails.org avatar

I strongly feel that the maybe-async/keyword-generics stuff being worked on in rust at the moment is a bad idea.

If your code might be async, just write it as async! Writing async code doesn't tie you into using an async runtime - all it means is that the compiler generates a state machine for you. You can totally slot in some blocking calls, never return Poll::Pending, and your async function will complete on first poll.

The side benefit to this is there's no weird bifurcated API: your code, whether blocking or non-blocking, is always compiled as a state machine and can be treated just the same.

Schneems,
@Schneems@ruby.social avatar

@hailey have you seen the yosh talk from RustConf? It’s on the idea that we could have generic effects where async is one of many possible effects. I don’t have enough of a type background to have an opinion on it.

Schneems, to TodayILearned
@Schneems@ruby.social avatar

Is anyone in Austin, TX, interested in teaching kiddos computer science for a living?

Long View (micro school) is hiring! Retoots appreciated.

Job description for computer science teacher continued

Schneems, to random
@Schneems@ruby.social avatar

Can you 👀 my latest toolbox upgrade?

bascule, to random
@bascule@mas.to avatar

Ultraviolet light can kill almost all the viruses in a room. Why isn’t it everywhere?

"Far-UVC" offers a form of ultraviolet light which doesn't damage human skin or eyes due to its shorter 207/222nm wavelengths, but does destroy viruses.

https://www.vox.com/the-highlight/23972651/ultraviolet-disinfection-germicide-far-uv

Schneems,
@Schneems@ruby.social avatar

@gsuberland @bascule during the pandemic Naomi Wu was advocating using (some kind of UV light) fixtures above human height that pointed at the ceiling.

The idea being it has more exposure time than in a random duct and doesn’t directly hit humans.

timClicks, to rust
@timClicks@mastodon.nz avatar

Question for programmers - do you know what Cell and RefCell do?

Schneems,
@Schneems@ruby.social avatar

@timClicks one is flammable, the other is inflammable.

byroot, to random
@byroot@ruby.social avatar

Today I learned about the Performance/UnfreezeString rubocop rule, and it made me angry https://github.com/ruby/ruby/pull/8952

We probably should go over all these cops that advocate for unobvious micro-optimizations of this sort.

Schneems,
@Schneems@ruby.social avatar

@byroot what we should do (IMHO) is decouple formatting from linting into two different tools.

Schneems, to elixir
@Schneems@ruby.social avatar

Do you know any Elixir shops that are hiring?

Schneems, to random
@Schneems@ruby.social avatar

Next will be in Chicago!

timClicks, to rust
@timClicks@mastodon.nz avatar

My request for the 2024 edition of is to make --release the default of cargo build

Schneems,
@Schneems@ruby.social avatar

@timClicks I mean, if “cargo test” is still debug by default, I could see that.

Schneems, to random
@Schneems@ruby.social avatar

Do you have a recommendation for a ski shop in Austin or Houston (or somewhere in between) that does a great job with boot fitting?

mitsuhiko, to random
@mitsuhiko@hachyderm.io avatar

Flask today is a different framework than the one I have created. But that is in many ways what it should be. New blood, new goals. David (https://mas.to/@davidism) is doing a tremendous job maintaining it with the new contributors. I set different priorities than he does, but that's just how things are and should be. There is just one modern Flask, and that's the one he and others maintain. There is also only that one Flask that became so popular. David has invested more time into it than I did.

Schneems,
@Schneems@ruby.social avatar

@mitsuhiko so…I’ve tried to soft onboard people to some of my projects, and it’s also tough. People don’t feel it is “theirs” if I’m hovering over their shoulder.

There are rare cases where someone takes an active maintenance role and gradually takes on more and more until the original author just kinda steps back. But IDK how to manufacture that. Seems hard.

shanselman, to random
@shanselman@hachyderm.io avatar

I used to have a watch problem, now I have an Apple Watch band problem as well

collection of automatic watches

Schneems,
@Schneems@ruby.social avatar

@shanselman “I still do, but I used to too”

  • 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