![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
= Ruby Inline
rdoc :: http://docs.seattlerb.org/RubyInline/ home :: http://www.zenspider.com/ZSS/Products/RubyInline/ code :: https://github.com/seattlerb/rubyinline
== DESCRIPTION:
Inline allows you to write foreign code within your ruby code. It automatically determines if the code in question has changed and builds it only when necessary. The extensions are then automatically loaded into the class/module that defines it.
You can even write extra builders that will allow you to write inlined code in any language. Use Inline::C as a template and look at Module#inline for the required API.
== PACKAGING:
To package your binaries into a gem, use hoe's INLINE and FORCE_PLATFORM env vars.
Example:
rake package INLINE=1
or:
rake package INLINE=1 FORCE_PLATFORM=mswin32
See hoe for more details.
== FEATURES/PROBLEMS:
== SYNOPSIS:
require "inline" class MyTest inline do |builder| builder.c " long factorial(int max) { int i=max, result=1; while (i >= 2) { result *= i--; } return result; }" end end t = MyTest.new() factorial_5 = t.factorial(5)
== SYNOPSIS (C++):
require 'inline' class MyTest inline(:C) do |builder| builder.include '' builder.add_compile_flags '-x c++', '-lstdc++' builder.c ' void hello(int i) { while (i-- > 0) { std::cout << "hello" << std::endl; } }' end end t = MyTest.new() t.hello(3)
== (PSEUDO)BENCHMARKS:
make bench
Running native Type = Native , Iter = 1000000, T = 28.70058100 sec, 0.00002870 sec / iter Running primer - preloads the compiler and stuff With full builds Type = Inline C , Iter = 1000000, T = 7.55118600 sec, 0.00000755 sec / iter Type = InlineRaw, Iter = 1000000, T = 7.54488300 sec, 0.00000754 sec / iter Type = Alias , Iter = 1000000, T = 7.53243100 sec, 0.00000753 sec / iter Without builds Type = Inline C , Iter = 1000000, T = 7.59543300 sec, 0.00000760 sec / iter Type = InlineRaw, Iter = 1000000, T = 7.54097200 sec, 0.00000754 sec / iter Type = Alias , Iter = 1000000, T = 7.53654000 sec, 0.00000754 sec / iter
== PROFILING STRATEGY:
== REQUIREMENTS:
== INSTALL:
== LICENSE:
(The MIT License)
Copyright (c) Ryan Davis, seattle.rb
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
Unknown package
We found that RubyInline demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.