Comments (5)
Yeah, I was thinking about that. We definitely want jemalloc enabled for every version, so we should start thinking about it. @samueldr can probably get us into shape here once the build stuff is sorted. I'm going to create a repo for the nix stuff to be extracted to. We can start plopping things like this in there.
from rails-nix.
Nice, this looks about right. We'll probably want to extract these into a separate repo where we build and upload to a binary cache. I'll open a separate issue to try to outline what I think we can try.
from rails-nix.
Just a note on some of the details of building Ruby versions (which might be a bit much at this early stage, but could be a consideration later): there's a couple of build flags that are quite popular and might be in demand if the Rails/Nix thing takes off, related to increasing Ruby's performance/speed. The first is the --with-jemalloc
flag for switching out the default memory allocator, and the second is the new flag for enabling YJIT (which is now available in Ruby, but I think still disabled by default).
from rails-nix.
There are some bits built in to the pkgs.ruby
implementation for handling jemalloc
already 👌 But yeah the opt-in or opt-out YJIT thing will be in demand and that makes things a bit more complex if you want to offer that.
from rails-nix.
Now this is being moved into https://github.com/fly-apps/nix-base, we can open more specific tickets there.
from rails-nix.
Related Issues (20)
- Increase the layer count HOT 2
- Setup a machine VM for running Nix builds HOT 1
- Javascript dependencies HOT 2
- Extract nix code to be reusable HOT 1
- Gems are rebuilt on gemdir input change HOT 3
- Extend Rails documentation to include Sidekiq and multiprocess apps HOT 1
- Write a basic documentation page for launching Rails apps
- Ensure nix-shell is usable and useful HOT 2
- Make assets pre-compilation a discrete cacheable build and layer HOT 3
- grpc gem build failure HOT 8
- nixpkgs 21.11 is missing an important coreutils patch HOT 2
- Choosing a strategy for changing nixpkgs versions HOT 4
- Add examples for all configurable options in rails-nix/default.nix HOT 1
- Work out how to reduce the image size HOT 2
- Try strategies to reduce closure sizes in an ad-hoc manner HOT 1
- Update the `pg` gem in Nixpkgs to depend on `postgresql.lib` to reduce the closure size HOT 2
- Look at strategies to separate runtime vs. app in containerization layers
- Skip inclusion of gems in the development/test groups HOT 4
- Customize the layering strategy HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rails-nix.