Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > tw.bbs.comp.sources > #15

jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_1_9_0_6_0_9__9060910200.rb

From YAMAGUTIseisei <seisei@hello.to>
Newsgroups tw.bbs.comp.sources, japan.test, hk.test
Subject jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_1_9_0_6_0_9__9060910200.rb
Followup-To tw.bbs.edu.computer-science
Date 2019-06-09 09:28 +0000
Organization X-PlsDntToRmsMatzYktJlgTtiRbistAnd: http://j.mp/2K8Eo4k?#__Sponsor_-_CellBE
Message-ID <5CFCD132.7020504@hello.to> (permalink)
References (30 earlier) <5BB0B825.8070403@hello.to> <5C161805.5090308@hello.to> <5C602426.2000502@hello.to> <5C8E192E.6010002@hello.to> <5CBC48AE.5090805@hello.to>

Cross-posted to 3 groups.

Followups directed to: tw.bbs.edu.computer-science

Show all headers | View raw


1332a

# GC.start		# g 

.
1331a

# GC.stress = true	# g 
# GC.start		# g 

.
1280a
#     if pco.! && fl.empty?
.
1268a

.
1264,1265c
#	  fl<< fibi(@@fls ||= fls, ~ pc, 1) { |pc| 0 > pc ? ~ pc : pc}	# p 
	  fl<< fibi(@@fls ||= fls, ~ pc, 1) { |pc| pc}	# p 
.
1257,1258d
1254,1255c
#	if ?J != sym.to_s[0] && ! [:ENTER, :SEND, :RETURN, :NOP].include?(sym)	# q 
	if (ifj.(sym) && ! ifs.(sym))		# c 2 
.
1251d
1245,1247c
#	c, sym = @@opf.(irep, pc = rg['pc'], imem)	# c 
	c, sym = @@opf.(irep, pc = rg['pc'])		# c 
.
1234a
    ifj = -> (sym) {?J != sym.to_s[0]}		# l 	# q 
    ifs = -> (sym) {[:ENTER, :SEND, :RETURN, :NOP].include?(sym)}	# l 

.
1230d
1227a
	sl.slp 0
.
1217,1218c
#	  printf("Unkown code %s \n", OPTABLE_SYM[get_opcode(cop)])
#	  printf("Unkown code %s \n", OPTABLE_SYM[imem.get_opcode(cop)])
.
1191c
#	  stack[0] = stack[imem.getarg_a(cop)]
#	  stack[0] = stack[rou(:getarg_a, cop)]
	  stack[0] = stack[rou.(:getarg_a, cop)]	# c 
.
1186c
#	  return stack[imem.getarg_a(cop)]
#	  return stack[rou(:getarg_a, cop)]
	  return stack[rou.(:getarg_a, cop)]	# c 
.
1136c
#	n = imem.getarg_c(cop)
#	n = rou(:getarg_c, cop)
	n = rou.(:getarg_c, cop)	# c 
.
1134c
#	mid = irep.syms[rou(:getarg_b, cop)]
	mid = irep.syms[rou.(:getarg_b, cop)]	# c 
.
1132c
#	a = imem.getarg_a(cop)
#	a = rou(:getarg_a, cop)
	a = rou.(:getarg_a, cop)	# c 
.
1109,1110c
#	  rg['pc', -1] = rg['pc'] + imem.getarg_sbx(cop)
#	  rg['pc', -1] = rg['pc'] + rou(:getarg_sbx, cop)
	  rg['pc', -1] = rg['pc'] + rou.(:getarg_sbx, cop)	# c 
.
1106,1107c
#	if !stack[imem.getarg_a(cop)]
#	if !stack[rou(:getarg_a, cop)]
	if !stack[rou.(:getarg_a, cop)]		# c 
.
1099c
#	  rg['pc', -1] = rg['pc'] + imem.getarg_sbx(cop)
#	  rg['pc', -1] = rg['pc'] + rou(:getarg_sbx, cop)
	  rg['pc', -1] = rg['pc'] + rou.(:getarg_sbx, cop)	# c 
.
1097c
#	if stack[imem.getarg_a(cop)]
#	if stack[rou(:getarg_a, cop)]
	if stack[rou.(:getarg_a, cop)]		# c 
.
1091c
#	rg['pc', -1] = rg['pc'] + imem.getarg_sbx(cop)
#	rg['pc', -1] = rg['pc'] + rou(:getarg_sbx, cop)
	rg['pc', -1] = rg['pc'] + rou.(:getarg_sbx, cop)	# c 
.
1079a
    rou = @@rou
.
1058c
#   sym = OPTABLE_SYM[imem.get_opcode(cop)]
#   sym = OPTABLE_SYM[rou(:get_opcode, cop)]
    sym = OPTABLE_SYM[(rou = @@rou).(:get_opcode, cop)]		# c 
.
1049,1050c
# @@opf = ->(irep, pc, imem) {	# l 
  @@opf = ->(irep, pc) {	# l 
#   imem = @imem
.
1031,1040d
1021d
1015d
1002,1003d
997,999c
	  lopa.push(k, 'th' == k ? fvl[oi <=> 0].(oi) : fv)		# c 
#	  lopa.push(k, 'th' != k ? fv : fvl.force[oi <=> 0].(oi))	# c 	#? mruby 410200
.
992d
979d
956,962c
  @@iset = nil
.
943,949c
##	  isr0 = [mt ? i : s, r[0]]
##	  sz = plr.size
#	  ca[
##	  ca.force[			#? mruby 410200
#		flg[1] ? 0 : 1].(r)	# c 
#	  c_l.ca[flg[1] ? 0 : 1].(r)	# c 
	  r = c_l.ca
.
940,941c
##	  sp ||= s.p = pl[i_sp][0]
##	  pr || (pr, sy, mt = imem.fml('st', sym))
.
936c
#		case f when Numeric then true else loc.verb(f); false end}
.
932,933c
###	  sym, (r0, r1) = rslt pl	# higokan mruby 70410200	# bce75e27 2211410200 matz
##	  sym, r, flg = rslt(pl) # ; r0, r1 = r
#	  sym, r, flg = c_l.rslt
	  sym, r, flg, f = c_l.rslt
.
930c
##	  pl = lpl.pl_g(pc1)	##
	  c_l.plg(pc1)
.
919d
897,916c
##   lm = ->(r1) {r1.nil? ? r1 : imem.send(pr, *isr0, r1, mt)}	# l 
#    lm = ->(r1) {imem.send(pr, *isr0, r1, mt)}			# l 
.
893a
	c_l = Fls__l.new(s, i, imem, lpl, sl)
.
892c
#	sp, pr = nil; plr = []
.
887,888c
#      ap = 1 << sz = 4; ap = @@fls_m ||=
#	((ap += (ap <<= 1) + (ap <<= 2) + (ap << 2)) >> sz) + 1 >> 1
.
885c
      sym = nil
#      flg = [f = false, f]
      f = false
      plr, r = []
.
883c
#      isr0, pr, sy, sym, mt = nil
.
879,880c
#      sp, pl, r = nil
      sp, pl = nil
#      plr = []

#      c_l = Fls__l.new(s, i, imem, lpl, sl)
      c_l = nil
.
872c
      pc1 = 0 # (pc = 0) + 1
.
862,864c
  @@fls = nil
  def fls		##
.
859a

      [@sym = sym, @r = r, @flg = flg, @f = flg.all?]
    end
.
853,858c
#  def rslt(pl)
#    lpl = @pl
#    r = pl[lpl.afl('th', ?i)]		# q 
##   r.map { |v| v[1] = v[-1]}
##   r = r.map { |v| v[1] = v[-1]}	# higokan ? mruby 70410200
#    [pl[lpl.afl('sym', ?i)].to_sym,	# q 
#	*[r, r.map { |v| lpl.ckth(v, 1)}].map { |v| [v[0], v[-1]]}]
#  end

  class Fls__l
    @@fls_m = nil

    def initialize(s, irep, imem, lpl, sl)
      (
	@s = s; @i = irep; @imem = imem; @lpl = lpl

#	sp, sz, isr0, r0, r1, lm, sy = []	# higokan ? mruby 70410200
#	sp, sz, ht, isr0, r0, r1, lm, sy = [][0]
#	@sp, @isr0, @r0, @r1, @r, @pr, @sym, @sy, @mt = nil
	@sp, @isr0, @r, @pr, @sym, @sy, @mt = nil

	@f = false; @flg = [false, false]

#      ap = 1 << sz = 3; ap = @@fls_m ||=
	ap = 1 << sz = 3; @ap = @@fls_m ||=
	  ((ap += (ap <<= 1) + (ap <<= 2) + (ap << 2)) >> sz) + 1 >> 1

	@plr = []; @sz = 0 # @plr.size
#	@lm = ->(r1) {r1.nil? ? r1 : @imem.send(@pr, *@isr0, r1, @mt)}	# l 
	@lm = ->(r1) {@imem.send(@pr, *@isr0, r1, @mt)}		# l 
	@ca = [
	  ->(r) {	# f
#	    @r = @r1 < @sz && @plr[@r1] || @lm.(@r1)	# c 
	    sz = (sz = @plr[r[1]]   ; r[1] >= @sz ||	# _ = ( _ = @plr[
#			sz)	|| @lm.(r[1])		# c 
			sz.nil?) ? @lm.(r[1]) : sz	# c 
#	    s[@r1] = @sy ? [s[@r1], @r].inject(@sy) : @r
	    s[r[1]] = @sy ? [s[r[1]], sz].inject(@sy) : sz	# : _
	  },		# rs = [r1.to_xeh, r0.to_xeh]},
	  ->(r) {	# flg[0]
#	    ((sw = sp + sz) + 0xe).step(sw, -1) {	# higokan mruby 70410200	# bbab89e7 5211410200 tmtm
#	    @sz.step(@sz + @ap -= @ap >> 2) { |n| @plr<< @lm.(@isr0, s[n])}	# p c 
	    0 == s.size ? sl.slp(0) : @plr += @lm.(s[(sz = @sz) .. sz + @ap = (	# c 
#		@ap += @ap >> 1) >> 1)])	# @ap >>= 1) + (@ap >> 1)])
#		(sz = @ap) += sz >> 1) >> 1])	# sz = @ap >> 1) + (sz >> 1)])
		sz = @ap; sz += sz >> 1) >> 1])	# sz = @ap >> 1) + (sz >> 1)])
#			.. sz + (ap = (ap += ap >> 1) >> 1) + (ap <=> 0)])
	  }		# rs[1] = r0.to_xeh
	]	# .lazy #? mruby 410200

	plb = Plb
#	i_th = lpl.afl('th', ?i)	# q 
	@i_sp = plb.assoc('sp')[1]
      )
    end

    def ca # (i)
      if @flg[0]
	@sp ||= @s.p = @pl[@i_sp][0]
#	@r0, @r1 = @r
	@pr || (@pr, @sy, @mt = @imem.fml('st', @sym))
#	@isr0 = [@mt ? @i : @s, @r0]
	@isr0 = [@mt ? @i : @s, @r[0]]
	@sz = @plr.size

#	(ca = @ca).force[	#? mruby 410200
#	       @ca.force[	#? mruby 410200
#	(ca = @ca)[
	       @ca[
			@flg[1] ? 0 : 1].(@r)	# c 
      end
#      [@r, @sym]
      @r
    end

    def plg(pc)	@pl = @lpl.pl_g(pc)	end

    def rslt # (pl)
      lpl = @lpl
      pl = @pl
      r = pl[lpl.afl('th', ?i)]	# q 
#     r.map { |v| v[1] = v[-1]}
#     r = r.map { |v| v[1] = v[-1]}	# higokan ? mruby 70410200

      sym, r, flg = [pl[lpl.afl('sym', ?i)].to_sym,	# q 
.
848,850d
845d
842,843d
823d
821d
813d
809c
    # 3080410200 : 5x2 ok ( gc ) : monami-ya.mrb 8270410200 813e2af8	# www.monami-ya.jp
.
784a
    Plb = @@plb
.
680,682c
  def is(i = nil)
    @i = i
  end
.
676d
662a
      @p = sp; @s = s; @i = nil
.
661c
#      @p = sp; @s = s
.
631d
615,617c
#####      fpl.delete_if.with_index { |fb, i| break if i > 0; fb.resume}
#####      fpl.delete_if.with_index { |fb, i| next if i > 0; fb.resume}
#####      fpl.delete_if.with_index { |fb, i| p i; fb.resume}
.
613c
#     fpl.delete_if(&:resume)
##    fpl.delete_if(&:resume(pc))
.
601a
##    pc && 0 <= pc && (fpl<< (@@plw ||= plw).dup)[-1].resume(pc)	# p 	# ? 
.
595a
##@@plw = nil
.
588,589d
586d
582,584c
	Fiber.yield((( ####		       th[idx].nil?.! && # fuguai taisaku
.
579a
##    Fiber.yield # (false)
.
578c
    Fiber.new { ## |pc|	##
.
575d
573d
568a
##def plw	##
.
564d
558,562c
#   case (opc, op = a)[0] when Numeric then true end ||
.
554c
#   return a[0] if 0 >= a.hgt
.
549,550d
545d
532,533d
517,518c
#   bf = (Array.new(bfsz, '1').join).to_i(2)	# higokan ? mruby 70410200
#   bf = Array.new(bfsz) { |n| 1 << n}.inject	# higokan ? mruby 70410200
.
514d
512d
437d
429,431d
416d
364d
342,343d
324d
317c
#      return a_r1.map{ |v| v.nil? ? v : __send__(*a[0 .. @@I_s__r0 + 1], v)}	# r 
      a[i_s__r1].map{ |v| v.nil? ? v : __send__(*a[0 .. i_s__r1 - 0_0 - 1], v)}
.
314,315c
    a[0] = ?s << a[0].to_s		# q 
#    case a_r1 = a[@@I_s__r1 + 1]
    case a[i_s__r1 = @@I_s__r1 + 1]
.
308d
300d
238d
191d
185d
176d
168d
162c
module M__Loc	# Inspired by Professor NAGAI Hidetosi http://rubykaigi.org/2011/ja/schedule/details/17S05/#KyuTech
.
147a
#   [true][Time.now.to_f.to_s.split(?.)[1].to_i & 15] && GC.start	# g 
#   [true][(@@ctr += 1; @@ctr &= 3)] && GC.start		# g 
.
146a
#   (r - 1).times {usleep 0}; r.times {usleep t}
#   (r - 1).times {msleep 0}; r.times {msleep t}		# usleep yobi
#   (r - 1).times {sleep 0}; r.times {sleep t}			# antei ?
#   (r - 1).times {sleep 0}
#   r.times {sleep t}

.
142d
140c
# @@ctr = 0
.
127d
113c
# def delif_c(i, a = self)	# # higokan ? mruby-thread:410200 monami-ya.mrb:60510200 mruby:70410200
.
105d
102,103c
#   self[0].index(k)	# higokan mruby 10410200 ( irep.rb )
.
87d
18,19c
))))))))) # .move	# ? 	# conf.gem :github => 'miura1729/mruby-mmm'


# GC.generational_mode = false	# g 	# http://syucream.github.io/mrubook/gc.html
.
16d
3,4c
# include MMM	# conf.gem :github => 'miura1729/mruby-mmm'

.



-- 
YAMAGUTIseisei ( str_h__namae = { :sei => "山口" , :mei => "青星" } )
http://hello.to/seisei/	mailto:seisei@.68..net	tel:081-70-5152-1104
heiwa furiisekkusu 1tu

Back to tw.bbs.comp.sources | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_1_7_0_6_3_0__0360710200.rb ( Was : Re: jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_1_6_0_7_0_7__7070610200.rb ) YAMAGUTIseisei <seisei@hello.to> - 2017-08-08 03:18 +0000
  jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_1_7_1_0_0_1__1001710200.rb YAMAGUTIseisei <seisei@x68k.net> - 2017-10-01 12:15 +0000
    jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_1_7_1_2_3_1__1321710200.rb YAMAGUTIseisei <seisei@x68k.net> - 2017-12-31 12:57 +0000
      jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_1_8_0_2_0_4__4020810200.rb YAMAGUTIseisei <seisei@hello.to> - 2018-02-04 10:52 +0000
        jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_1_8_0_4_0_1__1040810200.rb YAMAGUTIseisei <seisei@hello.to> - 2018-04-01 13:24 +0000
          jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_1_8_0_5_2_0__0250810200.rb YAMAGUTIseisei <seisei@hello.to> - 2018-05-20 12:21 +0000
            jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_1_8_0_7_0_1__1070810200.rb YAMAGUTIseisei <seisei@hello.to> - 2018-07-01 11:18 +0000
              jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_1_8_0_9_3_0__0390810200.rb YAMAGUTIseisei <seisei@hello.to> - 2018-09-30 11:48 +0000
                jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_1_8_1_2_1_6__6121810200.rb YAMAGUTIseisei <seisei@hello.to> - 2018-12-16 09:16 +0000
                jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_1_9_0_2_1_0__0120910200.rb YAMAGUTIseisei <seisei@hello.to> - 2019-02-10 13:16 +0000
                jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_1_9_0_3_1_7__7130910200.rb YAMAGUTIseisei <seisei@hello.to> - 2019-03-17 09:53 +0000
                jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_1_9_0_4_2_1__1240910200.rb YAMAGUTIseisei <seisei@hello.to> - 2019-04-21 10:40 +0000
                jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_1_9_0_6_0_9__9060910200.rb YAMAGUTIseisei <seisei@hello.to> - 2019-06-09 09:28 +0000
                jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_1_9_0_8_1_1__1180910200.rb YAMAGUTIseisei <seisei@hello.to> - 2019-08-12 10:10 +0000
                jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_1_9_1_0_2_7__7201910200.rb YAMAGUTIseisei <seisei@hello.to> - 2019-10-27 12:29 +0000
                jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_1_9_1_2_1_5__5121910200.rb YAMAGUTIseisei <seisei@hello.to> - 2019-12-15 12:24 +0000
                jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_2_0_0_2_1_6__6120020200.rb YAMAGUTIseisei <seisei@hello.to> - 2020-02-16 16:30 +0000
                jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_2_0_0_4_1_9__9140020200.rb YAMAGUTIseisei <seisei@hello.to> - 2020-04-19 16:59 +0000
                jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_2_0_0_7_0_5__5070020200.rb YAMAGUTIseisei <seisei@hello.to> - 2020-07-05 12:08 +0000
                jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_2_0_1_0_2_5__5201020200.rb YAMAGUTIseisei <seisei@hello.to> - 2020-10-25 11:16 +0000
                jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_2_1_0_1_1_0__0110120200.rb YAMAGUTIseisei <seisei@hello.to> - 2021-01-10 10:34 +0000
                jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_2_1_0_3_2_8_8230120200.rb YAMAGUTIseisei <seisei@hello.to> - 2021-03-28 15:48 +0000
                jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_2_1_0_4_2_4__4240120200.rb YAMAGUTIseisei <seisei@hello.to> - 2021-04-25 00:23 +0000
                jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_2_1_0_7_1_3__3170120200.rb YAMAGUTIseisei <seisei@hello.to> - 2021-07-13 12:15 +0000
                jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_2_1_1_0_0_8__8001120200.rb YAMAGUTIseisei <seisei@hello.to> - 2021-10-08 09:10 +0000
                jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_2_2_0_2_0_6__6020220200.rb YAMAGUTIseisei <seisei@hello.to> - 2022-02-06 15:29 +0000
                jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_2_2_0_3_0_6__6030220200.rb YAMAGUTIseisei <seisei@hello.to> - 2022-03-06 10:14 +0000
                jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_2_2_0_4_0_4__4040220200.rb YAMAGUTIseisei <seisei@hello.to> - 2022-04-04 15:20 +0000
                Debug ? ( Was : jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_2_2_0_4_0_4__4040220200.rb ) YAMAGUTIseisei <seisei@hello.to> - 2022-04-24 08:27 +0000
                jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_2_2_0_6_2_6__6260220200.rb YAMAGUTIseisei <seisei@hello.to> - 2022-06-26 14:52 +0000
                jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_2_2_1_0_1_7__7101220200.rb YAMAGUTIseisei <seisei@hello.to> - 2022-10-17 22:10 +0000
                jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_2_3_0_6_1_7__7160320200.rb "YAMAGUTIseisei(MasinZenmetu)" <seisei@hello.to> - 2024-01-07 14:44 +0000
          DoNotOpen:SJIS : Re : jit-1_-_github__ysei~mruby-meta-circular-heiretu_-_nightly_-_2_0_2_0_0_7_0_5__5070020200.rb YAMAGUTIseisei <seisei@hello.to> - 2020-07-12 14:55 +0000

csiph-web