mattn (Yasuhiro Matsumoto)
- Login: mattn
- Email: mattn.jp@gmail.com
- Registered on: 09/13/2011
- Last sign in: 03/14/2014
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 2 | 2 |
Activity
03/14/2014
-
12:08 AM Ruby Feature #8572: Fiber should be a Enumerable
- Koichi Sasada wrote:
> Can I close it?
Sorry for delay. Close this please.
09/09/2013
-
08:30 PM Ruby Feature #8572: Fiber should be a Enumerable
- > Why you don't use Enumerator?
Ah, make sense. -
05:29 PM Ruby Feature #8572: Fiber should be a Enumerable
- I think most of use case of using `Fiber` is something like getting stream data or catching-up draining entities. Maybe we won't use `Fiber` for getting limited resources. For example, If `Fiber` has `each`, I guess that we will be possi...
09/02/2013
-
02:35 PM Ruby Feature #8572: Fiber should be a Enumerable
- ko1 (Koichi Sasada) wrote:
> Use case?
~~~ruby
f = Fiber.new {
Fiber.yield 3
Fiber.yield 2
Fiber.yield 1
Fiber.yield 0
}
f.each do |x|
puts x
end
~~~
For example, I want to do `each` for Fiber. But it can't
06/28/2013
-
09:16 AM Ruby Feature #8572 (Closed): Fiber should be a Enumerable
- I'm thinking that Fiber should be a Enumerable. it's easy and reasonable to implement.
https://gist.github.com/mattn/5874949
09/14/2011
-
09:33 AM Ruby Bug #5317: rubyのヘッダファイルを使った拡張を行う際にoff_tの宣言回避をする事が出来ない。
- > システムに _off_t があったら、__int64 ではなく _off_t を使うようにすればいいんですかね。
> ...
そうですね。
もしくはconfig.hのSIZEOF_OFF_T宣言を無効化出来るとか。
#ifndef SIZEOF_OFF_T
#define SIZEOF_OFF_T 8
#endif
まぁoff_tに限った話でもなさそうですが。
-
12:58 AM Ruby Bug #5317: rubyのヘッダファイルを使った拡張を行う際にoff_tの宣言回避をする事が出来ない。
- vimのpatchとしてはそうしました。
https://groups.google.com/d/topic/vim_dev/VM_AgsF1_K4/discussion
ただ、あまりお作法が良いとは思えませんでした。
出来ればどのプロジェクトでも
#undef off_t
しなくても良い形がのぞましいと思ってます的な意味でfeature requestです。:)
09/13/2011
-
09:51 PM Ruby Bug #5317: rubyのヘッダファイルを使った拡張を行う際にoff_tの宣言回避をする事が出来ない。
- ぜんぜんuid_tじゃないですねw off_tでした!
以下、s/uid_t/off_t/g で置き換えて下さい。
-
09:47 PM Ruby Bug #5317 (Closed): rubyのヘッダファイルを使った拡張を行う際にoff_tの宣言回避をする事が出来ない。
- 以前、vimのif_ruby(ruby拡張)の修正を担当した時、mingw32でのuid_tの宣言とrubyに同梱されているwin32.hでの宣言に差異があり、リンクされた物がクラッシュするというバグに遭遇しました。
vimでrubyに関連するのはif_ruby.cであり、そのファイルのみがruby.hをincludeしているのですが(他のファイルもruby.hをincludeしろというのは無しです)、別のファイルはmingw32の宣言である
sys/typ...