Better integration of FFI number types
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 8/100
Hướng nghiên cứu
This is an open design question, not a ready task. The issue names the builtins math.min() and math.max() and the FFI types int64_t and uint64_t, and it asks that the numeric for loop be split into its own issue. Before any code, a newcomer would need to read how the compiler frontend and backend handle these number types. There is no clear definition of done, and the thread has been silent for years.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Plenty of builtins cannot deal with FFI number types, in particular int64_t/uint64_t. But this would be quite useful; good examples are math.min() and math.max().
A general solution isn't easy, because most of the builtins need to invoke code that's specialized to the number type to do their job. And the compiler frontend/backend needs to support these, too.
IMHO there's no easy solution for 3rd party code in general or the classic Lua/C API in particular. Auto-coercions can be quite dangerous for unsuspecting code.
Whenever this is tackled, one should think of the implications for other core functionality, like the numeric for i=start,stop,step do loop. Better split this off to a different issue.
- Ngôn ngữ chính
- C
- Star
- 5.8k
- Fork
- 1.2k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 LuaJIT/LuaJIT
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
3.0 enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 18/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
Tất cả issue của LuaJIT/LuaJIT
Issue tương tự
-
area/docs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 83/100
Clodmony/starship-coop#72 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ospf6d: heap-use-after-free in seqnumber_mismatch()/bad_lsreq() when a neighbor is deleted with events pendingCó thể đã có người làm @lichenlang89 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 61/100
Maintainer thường phản hồi trong vòng 2 ngày
-
5700模组网络优先级问题Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
luainkernel/lunatik#2372 ·
Maintainer thường phản hồi trong vòng 1 ngày