- Identifying and explaining general concepts
- scopes, bindings, environments
- the background context behind 'running' a file/script/method
- Compiler stages:
- how they're organized and how they're chained
- how to define the first/last stages. Does the first stage have to be the parser? (I tried to implement a 'lexer' stage before then, and couldn't figure out how)
- Initializing the environment (things like initializing heap size/space) before compilation or execution
- A high-level overview of how code -> s-expressions -> AST/AST nodes -> bytecode
$ curl -kvv --tlsv1.2 https://sni.nakamura.io:4567/ | |
* Trying 127.0.0.1... | |
* Connected to sni.nakamura.io (127.0.0.1) port 4567 (#0) | |
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH | |
* TLSv1.2 (OUT), TLS handshake, Client hello (1): | |
* TLSv1.2 (IN), TLS handshake, Server hello (2): | |
* TLSv1.2 (IN), TLS handshake, Certificate (11): | |
* TLSv1.2 (IN), TLS handshake, Server key exchange (12): | |
* TLSv1.2 (IN), TLS handshake, Server finished (14): | |
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16): |
require 'benchmark/ips' | |
SYM = :magic_key | |
MYS = :key_magic | |
STR = 'magic_key' | |
RTS = 'key_magic' | |
Benchmark.ips do |x| | |
x.config(time: 2, warmup: 1) |
Last night, Brian Shirai unilaterally "ended" the RubySpec project, a sub-project of Rubinius (the alternative Ruby implementation which Brian was paid to work on full-time from 2007 to 2013). The blog post describing his reasons for "ending" the project led to a big discussion on Hacker News.
When a single, competing Ruby implementation tells that you its test suite is the One True Way, you should be skeptical. Charles Nutter, Ruby core committer and JRuby head honcho, spent a lot of time last night on Twitter talking to people about what this decision means. He's probably too busy and certainly too nice of a guy to write about what is a political issue in the Ruby community, so I'm going to do it on behalf of all the new or intermediate Rubyists out there that are confused by Brian's decision and what it me
Sites which should know about rubinius 3.0 or mention it: | |
http://rubydaily.org/ | |
http://rubyweekly.com/ | |
http://www.rubyflow.com/ | |
https://twitter.com/ruby_news | |
http://www.rubyinside.com/ | |
http://www.rorcasts.com/ | |
http://ruby5.envylabs.com/ | |
http://www.sitepoint.com/ruby/ |
class Report::Client | |
end |
Bundler::GemspecError: Could not read gem at /Users/bshirai/.gem/rbx/2.1.0/cache/tzinfo-0.3.42.gem. It may be corrupted. | |
verify_entry: 3 | |
wrong argument type Autoload (expected Module) | |
/Users/bshirai/.gem/rbx/2.1.0/gems/psych-2.0.6/lib/psych/class_loader.rb:53:in `resolve' | |
/Users/bshirai/.gem/rbx/2.1.0/gems/psych-2.0.6/lib/psych/class_loader.rb:45:in `find' | |
/Users/bshirai/.gem/rbx/2.1.0/gems/psych-2.0.6/lib/psych/class_loader.rb:27:in `load' | |
/Users/bshirai/.gem/rbx/2.1.0/gems/psych-2.0.6/lib/psych/visitors/to_ruby.rb:364:in `resolve_class' | |
/Users/bshirai/.gem/rbx/2.1.0/gems/psych-2.0.6/lib/psych/visitors/to_ruby.rb:207:in `visit_Psych_Nodes_Mapping' | |
/Users/bshirai/.gem/rbx/2.1.0/gems/psych-2.0.6/lib/psych/visitors/visitor.rb:15:in `visit' | |
/Users/bshirai/.gem/rbx/2.1.0/gems/psych-2.0.6/lib/psych/visitors/visitor.rb:5:in `accept' |
def kw(a: 0); end | |
N = Integer(ARGV[0]) rescue 250_000 | |
N.times { kw } |
# DCI EXAMPLE IN RUBY (with some prototype elements) | |
# Blog post: https://www.ludyna.com/oleh/dci-example-in-ruby | |
# | |
# More info: | |
# | |
# Creator of MVC & DCI, Trygve Reenskaug: DCI: Re-thinking the foundations of | |
# object orientation and of programming | |
# http://vimeo.com/8235394 | |
# | |
# James Coplien: Why DCI is the Right Architecture for Right Now |
require 'ffi' | |
require 'benchmark' | |
module LibC | |
extend FFI::Library | |
ffi_lib FFI::Library::LIBC | |
attach_function :malloc, [:size_t], :pointer | |
attach_function :free, [:pointer], :void | |
end |