Skip to content

Instantly share code, notes, and snippets.

@ahoy196
Created December 22, 2020 10:02
Show Gist options
  • Save ahoy196/d8e59b12cf42e624c870b35930d366b0 to your computer and use it in GitHub Desktop.
Save ahoy196/d8e59b12cf42e624c870b35930d366b0 to your computer and use it in GitHub Desktop.
Energy, Information, Time, Memory, Endianness
class Ram
def initialize(v)
@val = v
end
def set(v)
@val = v
end
def get
return @val
end
end
class RamSequence
def initialize
@val = []
end
def insert(r)
@val.append(r)
end
def get
return @val
end
end
a = Ram.new(1)
b = Ram.new(2)
print a.get, b.get
print "\n"
#Endian One
Rs = RamSequence.new()
Rs.insert(b)
Rs.insert(a)
#Endian Two
Sr = RamSequence.new()
Sr.insert(a)
Sr.insert(b)
Rs.get.map { |t| print t.get }
Sr.get.map { |t| print t.get }
# Ram refers to Random Access Memory
# Considering a scheme where Endian 360 covers all possible cases where there is no specific direction of success
# Where incentive is for uniqueness over success to a balanced degree
# Capped Endianness
# E = i t ^ 2 = m c ^ 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment