math.huge prints 1.7976931348623e+308 when the host has real inf (lr_numstr/lr_fmt_g are finite-only)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start in src/runtime.eigs at lr_numstr and lr_fmt_g, which format finite values only, and at the math.huge workaround near line 3286. Reproduce with print(math.huge, tostring(-math.huge)) under bin/eigenlua. The fix needs an IEEE EigenScript build (make ieee), which depends on upstream work (#1644 Phase 2), so confirm that build exists first. Done means non-finite values print inf, -inf and nan like Lua 5.4, with a test row covering math.huge, -math.huge and 0/0.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Found by EigenScript #1746 Phase 1 (IEEE-754 experiment build, make ieee). With real inf in the host, math.huge IS inf (math.huge > 1.7976931348623157e308 is true), but printing goes through lr_numstr -> lr_fmt_g (src/runtime.eigs, "C's %.
g for finite x"), which decodes exponent bits and prints 1.7976931348623e+308. Lua 5.4 prints inf, -inf, and nan/-nan.
Repro: print(math.huge, tostring(-math.huge)) with EIGENSCRIPT=<EigenScript build/ieee/eigenscript> bin/eigenlua -> 1.7976931348623e+308 -1.7976931348623e+308.
Only reachable once EigenScript ships IEEE doubles (#1644 Phase 2); today the host clamps to 1e308. The runtime.eigs:3286 math.huge workaround comment also goes stale then.
Done when
-
lr_numstr(andstring.format%g/%f paths) emitinf/-inf/nanfor non-finite values, matching Lua 5.4, under an IEEE host build. - A test row prints
math.huge,-math.huge,0/0and compares to real Lua's output.
- Ngôn ngữ chính
- Lua
- Star
- 0
- Fork
- 0
- Merge trung bình
- 54 phút
- Pull request đã merge (30 ngày)
- 19
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của InauguralSystems/EigenLua
-
documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
InauguralSystems/EigenLua#60 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
front-end good first issue
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 70/100
InauguralSystems/EigenLua#62 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
front-end good first issue
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 66/100
InauguralSystems/EigenLua#61 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement front-end help wanted
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
InauguralSystems/EigenLua#55 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
1/0 and 0/0 abort the program with 'EigenScript value error: division by zero' (ref: inf / nan)Đang mởbug eigenscript-gap
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
InauguralSystems/EigenLua#50 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của InauguralSystems/EigenLua
Issue tương tự
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
eugenioenko/ttt#919 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Profiler (Remotery) leaks a socket for every connection that fails the WebSocket handshakeCó thể đã có người làm @rthery đã nhận hôm nay. Đang mởtriage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
koreader/koreader#16242 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Mosquito: LOOP_ANT_LOCK reads the IFF detonator coverCó thể đã có người làm @cbass2404 đã nhận hôm nay. Đang mởMosquito
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
DCS-Skunkworks/dcs-bios#1925 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 80/100
mason-org/mason.nvim#2117 ·