ffi
dd-trace-rb
Our great sponsors
ffi | dd-trace-rb | |
---|---|---|
5 | 4 | |
2,054 | 290 | |
0.4% | 2.4% | |
8.1 | 9.9 | |
11 days ago | about 22 hours ago | |
Ruby | Ruby | |
BSD 3-clause "New" or "Revised" License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ffi
-
Mixing FFI, Fiddle, and C Extension in Ruby
If you're working with Ruby and need to invoke a function written in C language, there are some convenient gems available: Ruby-FFI and Fiddle.
-
Desperately need help with react-native init and ruby
Could this be related to spaces in the directory/this issue: https://github.com/ffi/ffi/issues/623? If so, there's no suggestion on the issue, but https://stackoverflow.com/a/64083281 (including the comment https://stackoverflow.com/questions/62368342/rails-bundle-cant-install-gem-ffi#comment123868330_64083281), might help.
-
Why Authorization Is Hard
Hey, Oso engineer here. Good question.
The rust core is indeed called from the ruby library (as it is with all of our 5 other host libraries). The core itself is pretty complex (there's a whole parser/interpreter in there), so maintaining it in a bunch of languages would be a bit hectic.
There are some files inside `lib/oso/polar/ffi` that define the C bindings used by the rest of the library. Here's an example: https://github.com/osohq/oso/blob/main/languages/ruby/lib/os...
We use the ffi gem to make that work: https://github.com/ffi/ffi
-
ffi-bitfield
Ruby-FFI is a powerful tool to create bindings for C language libraries in Ruby.
-
Travis CLI installation issue for MacOS
Tried solution mentioned here https://github.com/ffi/ffi/issues/653 but no luck then I posted this question over StackOverflow :
dd-trace-rb
-
The end of "Useless Ruby sugar": On intuitions and evolutions
Thing is, once you have 1) and 2), the added complexity of bringing in, integrating, and writing for a different tool to achieve 3) begins to make little sense, when you can just go along and do it just as well in rspec anyway... It's a matter of balance and heavily depends on the project.
> if you're still at Datadog
As a matter of fact I am. Feel free to shoot me an email.
curl -s https://github.com/DataDog/dd-trace-rb/commit/176c642ca73679cabc5fa1a113bc9b600aa04dcd.patch | grep '^From:'
-
A few words on Ruby's type annotations state
> For myself, I'm fine with the typing being in a separate .rbs file
We type[0] by having one separate .rbs file per .rb file. Works really well with an editor's vertical splits: type outline on one side, code on the other. That, or use something like vim-projectionist[1].
[0]: (WIP: there's a huge codebase to type, but we're progressively getting there) https://github.com/DataDog/dd-trace-rb/tree/master/sig
-
Why Authorization Is Hard
Thanks! I'll pass it on to the team :D
I've got to say, the folks at Intercom made it particularly fun. They were sending us traces and graphs from their internal systems when we trying to figure out some issues with them (e.g. we ran into this datadog context problem: https://github.com/DataDog/dd-trace-rb/issues/1389)
What are some alternatives?
cerbos - Cerbos is the open core, language-agnostic, scalable authorization solution that makes user permissions and authorization simple to implement and manage by writing context-aware access control policies for your application resources.
angular-upload-s3cf - This include angular build creation, upload to S3 and clearing CloudFront cache.
Ory Keto - Open Source (Go) implementation of "Zanzibar: Google's Consistent, Global Authorization System". Ships gRPC, REST APIs, newSQL, and an easy and granular permission language. Supports ACL, RBAC, and other access models.
OPA (Open Policy Agent) - Open Policy Agent (OPA) is an open source, general-purpose policy engine.
casbin-server - Casbin as a Service (CaaS)
oso - Oso is a batteries-included framework for building authorization in your application.
Rails Performance - Monitor performance of you Rails applications (self-hosted and free)
fiddle - A libffi wrapper for Ruby.
sorbet - A fast, powerful type checker designed for Ruby