jhawthorn
When writing ARM assembly, the assembler (at least the ones I've seen) abstract this detail away from you.
You can use
ldr r0, =0xff000000
and the assembler will emit a MOV if it can, and if it can't it will put the value somewhere in RAM and use LDR to load it up.ARM is fun.
Show HN: Convert curl commands to Ruby's net/http
Here's the source https://github.com/jhawthorn/riama
https://www.ruby-lang.org/en/news/2013/11/22/ruby-2-1-0-prev...
Today I would use systemd with monit for additional monitoring. systemd ensures that the same environment is used regardless of how it is invoked, and the units are extremely simple. Monit can ensure a running server is behaving (memory limits, CPU limits, testing HTTP) and rely on systemctl for restarting processes.
Fullwidth conversion code in ruby:
"string".tr(' !-~', "\u3000" + (0xFF01...0xFF5f).to_a.pack('U*'))First, this is in no way faster than cuSPARSE or cusp. I wrote this for an originally for a school assignment (hence older cuda version) and was hoping to convey what I had learned my first time using cuda.
The size of the shared memory is so the reduction has no buffer overflow without using conditionals. However I am using more than needed, it should be set to 32+16. I don't expect this to affect performance as the kernel already reaches 100% theoretical occupancy.
Could you explain the desire for more threads/blocks per row? I can't immediately think of one, having more additions per thread sounds good so long as all are running.
Thanks very much for the read and the reply!
input.inject({}) do |hash, item|
hash.merge(item => process(item))
end
Far, far slower, more memory intensive (big deal, given ruby's gc), and uglyer than the sane (and commonly accepted) Hash[input.map do |item|
[item, process(item)]
end]