Skip to content

Commit 2b1bcbb

Browse files
committed
A "todo" list to get rid of unneeded "pir::" references
1 parent 41b003e commit 2b1bcbb

File tree

1 file changed

+140
-0
lines changed

1 file changed

+140
-0
lines changed

docs/pir2nqp.todo

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
This file is basically a dump of all "pir::" occurrences in the nqp codebase,
2+
then looked at by pm and jnthn to determine what needs to be done with them
3+
(and to act as a sort of short / mid-term activity schedule for lizmat).
4+
Please update as necessary.
5+
6+
stay pir for now, until we know how to do constants:
7+
pir::const::CCLASS_ALPHABETIC
8+
pir::const::CCLASS_ALPHANUMERIC
9+
pir::const::CCLASS_ANY
10+
pir::const::CCLASS_BLANK
11+
pir::const::CCLASS_CONTROL
12+
pir::const::CCLASS_HEXADECIMAL
13+
pir::const::CCLASS_LOWERCASE
14+
pir::const::CCLASS_NEWLINE
15+
pir::const::CCLASS_NUMERIC
16+
pir::const::CCLASS_PUNCTUATION
17+
pir::const::CCLASS_UPPERCASE
18+
pir::const::CCLASS_WHITESPACE
19+
pir::const::CCLASS_WORD
20+
pir::const::IGLOBALS_CONFIG_HASH
21+
pir::const::IGLOBALS_LIB_PATHS
22+
pir::const::INTERPINFO_ACTIVE_PMCS
23+
pir::const::INTERPINFO_CURRENT_RUNCORE
24+
pir::const::INTERPINFO_TOTAL_MEM_ALLOC
25+
pir::const::INTERPINFO_TOTAL_MEM_USED
26+
pir::const::INTERPINFO_TOTAL_PMCS
27+
28+
can be done now by lizmat
29+
pir::chopn__Ssi -> nqp::substr
30+
pir::push__vPi -> nqp::push_i
31+
pir::setattribute__vppsp -> nqp::bindattr
32+
pir::getattribute__PPPs -> nqp::getattr
33+
pir::getattribute__ppps -> nqp::getattr
34+
pir::set_who__vPP -> nqp::setwho
35+
pir::get_who__PP -> nqp::who
36+
pir::does
37+
2nd = array then nqp::islist
38+
2nd=hash then nqp::ishash
39+
40+
after jnthn's toqast branch is merged
41+
nqp::defined -> nqp::isconcrete
42+
pir::defined__IP -> nqp::isconcrete
43+
pir::isa
44+
2nd arg = ResizablePMCArray, then nqp::islist
45+
2nd arg = hash then nqp::ishash
46+
specifically undef as 2nd is WRONG, check with jnthn
47+
48+
to be eliminated / handled by jnthn
49+
pir::is_dispatcher__IP
50+
pir::create_dispatch_and_add_candidates__PPP
51+
pir::push_dispatchee__0PP
52+
pir::getinterp__P
53+
pir::getattribute__PPs
54+
55+
to become nqp::escape
56+
pir::escape__SS
57+
pir::escape__Ss
58+
59+
to become nqp::load
60+
pir::load_bytecode
61+
62+
to be nqp::changetype
63+
pir::repr_change_type__0PP
64+
65+
to be nqp::primspec
66+
pir::repr_get_primitive_type_spec__IP
67+
68+
to be nqp::pubmethcache
69+
pir::publish_method_cache
70+
71+
to be nqp::pubtypecache
72+
pir::publish_type_check_cache
73+
74+
to be nqp::knowhow
75+
pir::get_knowhow__P
76+
77+
to be nqp::knowhowattr
78+
pir::get_knowhow_attribute__P
79+
80+
to be nqp::rxnfaalt
81+
pir::nqp_nfa_run_alternation__vPSIPP
82+
83+
to be nqp::rxnfaproto
84+
pir::nqp_nfa_run_protoregex__PPSI
85+
86+
to be nqp::setboolspec
87+
pir::set_boolification_spec__0PiP
88+
89+
to be nqp::setmethcacheauthoritativeness
90+
pir::set_method_cache_authoritativeness__vPi
91+
92+
unsure what to do with as yet:
93+
pir::compreg__0sP
94+
pir::compreg__Ps
95+
pir::copy__vPP
96+
pir::find_caller_lex__Ps
97+
pir::find_codepoint__Is
98+
pir::find_dynamic_lex__Ps
99+
pir::is_invokable__IP
100+
pir::typeof
101+
102+
need to stay:
103+
pir::new__Ps
104+
pir::interpinfo__Ii
105+
pir::interpinfo__si
106+
pir::getstderr__P
107+
pir::getprop__PPs
108+
pir::box__Pi
109+
pir::find_encoding__Is
110+
pir::find_encoding__is
111+
pir::get_hll_global__Ps
112+
pir::get_root_namespace__PP
113+
pir::return__vPsiPPi
114+
pir::set_hll_global__vPsP
115+
pir::set_hll_global__vsP
116+
pir::set_runcore__vs
117+
pir::setprop__vPsP
118+
pir::sweep__vi
119+
pir::trace
120+
pir::trans_encoding__Ssi
121+
pir::trans_encoding__ssi
122+
123+
to be decided on later on how to generalize:
124+
pir::assign__vPS
125+
pir::set_sub_code_object__vPP
126+
pir::nqp_add_code_ref_to_sc__vPiP
127+
pir::nqp_create_sc__PS
128+
pir::nqp_fresh_stub__PP
129+
pir::nqp_get_package_through_who__PPs
130+
pir::nqp_get_sc_for_object__PP
131+
pir::nqp_pop_compiling_sc__v
132+
pir::nqp_push_compiling_sc__vP
133+
pir::nqp_serialize_sc__SPP
134+
pir::nqp_set_sc_for_object__vPP
135+
pir::nqpdebflags__Ii
136+
pir::nqpevent__vs
137+
pir::nqpevent_fh__PP
138+
pir::repr_clone__PP
139+
pir::stable_publish_vtable_handler_mapping__vPP
140+
pir::stable_publish_vtable_mapping__vPP

0 commit comments

Comments
 (0)