« first day (369 days earlier)
← previous day
next day →
last day (588 days later) »
Downgoat
7:22 PM
@ASCII-only can you figure out memory management
we need GC
or ref counting. but that is v expensive
GC is better for this moment
2 hours later…
Downgoat
9:35 PM
@ASCII-only ok so I am plan on have 4 type of value:
value (bitset), reference<T> (T*), complex value (struct), multi value (tuple)
for reference<T> I was thinking we could just have like a
value.isReference
prop
1 hour later…
ASCII-only
10:59 PM
@Downgoat huhwhat?
Downgoat
so when you have like value
its stored in memory
but LLVM has special types (e.g. int)
which can have special operation run on them
and then they are other type like array
which contain multiple of these things e.g. int
ASCII-only
umwhat
what exactly does reference have to do with this
Downgoat
ok so lets say you have object right
object is passed by reference
let a = Goat()
to manage memory we are use ref counting right?
ASCII-only
@Downgoat :|
is slow
researcher.watson.ibm.com/researcher/files/us-groved/…
Downgoat
you want to do GC instead?
ASCII-only
11:06 PM
yeah
maybe ref counting for now? idk
Downgoat
uh gc is slower
because it has to stop whole program
ASCII-only
that one doesn't
Downgoat
also worse on memory
ASCII-only
that is pauseless
Downgoat
because we have to store
all
reference
ASCII-only
11:06 PM
isn't it same for ref counting
Downgoat
no
ASCII-only
but also gc/mm should be only used when needed
e.g. no gc for like factorial and hello world
Downgoat
ref count is like
let a = Goat()
become
a = Reference(Goat()); a.increment()
instead of like
a = Goat()
directly
@ASCII-only pls provide elaboration of this GC method
specifically how to detect when should be use and not be use
and when it should be called
ASCII-only
ok apparently this is better
azul.com/resources/azul-technology/azul-c4-garbage-collector
@Downgoat when all object dying time can be predicted then don't use gc at all
Downgoat
@ASCII-only 0/10 cost money to see whitepaper
@ASCII-only how to predict object dying time
ASCII-only
11:10 PM
@Downgoat nvm is need special hardware anyway
@Downgoat last time object is used
if object not pass out of function and all calls with object have finished using
Downgoat
@ASCII-only how do you identify when the last time an object is used? How do you know which path program execution will take
ASCII-only
@Downgoat doesn't matter, free memory last time it is used on specific path
if it's freed on both then free after the calls on both
Downgoat
11:26 PM
@ASCII-only can u provide sample implement
staging.vihan.org/LLIR/docs
« first day (369 days earlier)
← previous day
next day →
last day (588 days later) »
all rooms
Transcript for
Oct
20
Oct '17
21
Oct
22
VSL
ide.c9.io/somebody1234/node-vsl
language-design
join this room
about this room
00:00
06:00
12:00
18:00
all times are UTC
site design / logo © 2024 Stack Exchange Inc;
legal
mobile