124500+ entries in 0.074s

apeloyee: put a dummy array of 4 (or whatever) elements just before
the Stack
apeloyee: doesn't gnat have a facility
to control
the layout of memory?
apeloyee: ~will~ write
to
the zero cell << why not
to minus-one cell
then
a111: Logged on 2016-01-21 13:29 asciilifeform: 'if i make it what i
think is
the right size, it crashes!111'
apeloyee: what's ugly about my proposal? only
two lines changed
a111: Logged on 2018-01-17 17:03 apeloyee:
the proper range for a cursor into an array (1..N) is (0.5 .. N+0.5);
this is usually shifted
to become (1 .. N+1) as in
text editors, but no reason not
to shift in
the other direction, as you did,
to (0..N)
apeloyee: well it'd
turn a pop from empty stack into a range-dipping eggog instantly <<
the reason I even suggested
that 3 weeks ago
apeloyee: "1) ugly" << can't see
that.; "2) ... it relies on
type ranges for good chunk of
the proofolade"<< if you really want, can explicitly declare a subtype of Stack_Positions, omitting 0 from it
apeloyee: SP _is_ a cursor, I'm merely suggesting
to
treat it as such
apeloyee: the proper range for a cursor into an array (1..N) is (0.5 .. N+0.5);
this is usually shifted
to become (1 .. N+1) as in
text editors, but no reason not
to shift in
the other direction, as you did,
to (0..N)
☟︎ apeloyee: if FFACalc code is correct,
then it's also safe
to omit
that zero-indexed element from Stack
apeloyee: an extra element won't save
the father of russian democracy (c), if FFACalc stack manipulation code is wrong; e.g. if a 'Want(X)' statement is omiitted
apeloyee: Logically, SP isn't a reference. It's a cursor, showing
the boundary between
the valid and invalid elements. If a line in a
text editor has N sybols,
then a cursor has N+1 valid positions. (Consider
that an empty line sill has 1 valid cursor position).
BingoBoingo: In other shithole factories: meltdown/specte patches are making a bunch of industrial systems wobble! Chinesium's about
to get a low more Pinoy
apeloyee: can you
think of a way
to have
the range of SP and of Stack be
the same <<
this is plainly absurd. a N-sized stack has (modulo contents) N+1 possible states: "0 elements", "1 element", ..., "N elements". i.e.the ranges MUST differ, by exactly one.
shinohai: Gotta sell all my Bitcorn before
the Missus finds out I spent all our monies on
the Bitconnect ponzi.
BingoBoingo: Nah,
this appears
to be an Azn attempt at replicating white person's waterfall
apeloyee: yes. hence me bringing
this item here
apeloyee: aliasing checks are like range checks in
this regard
apeloyee: conditional jumps are OK if one of
the destinations just aborts
the program
apeloyee: does gnat provide a facility
to check aliasing at runtime?
☟︎ apeloyee: *memory locations of
the arguments
apeloyee: I
think everything up
to ch.5 is safe as long as arguments are either equal or don't overlap
shinohai: Diana Voman sounds very Soviet
to me for some reason.
apeloyee: this can be used
to justify pointer arithmetic and what-not. Just don't do unsafe
things!!
esthlos: I will proceed one step at a
time
esthlos: diana_voman very likely am over
thinking
things
apeloyee: is invoked many
times with output = one of inputs
apeloyee: what functions can
tolerate aliasing of arguments is
talked of precisely nowhere. and it's easy
to forget about
that when changing
them later. and aliasing is used extensively.