►
From YouTube: THE VAULT - Day 1 - Oscar Spencer, The Grain: The future of Building with Grain on NEAR
Description
Follow the latest from NEAR Protocol on:
Website: https://near.org/
Discord: https://near.chat/
Blog: https://near.org/blog/
Twitter: https://twitter.com/NEARProtocol
GitHub: https://github.com/near https://github.com/nearprotocol
#Blockchain #FutureIsNEAR #NEAR #nearprotocol
A
Good
morning,
everyone,
let
me
introduce
myself
first,
my
name
is
kevin
imani
and
I
will
be
your
host
for
this
morning
and
I
am
leading
the
guild
called
sankore
in
kenya.
Nairobi
and
I'm
super
excited
for
what's
going
to
happen
here
at
the
conference
in
lisbon.
This
is
the
very
first
near
conference
after
being
live
on
the
mainnet
for
a
year,
so
we
have
a
bunch
of
guilds
here,
a
bunch
of
the
near
core
team.
A
I
have
a
lot
of
guests
and
we're
going
to
have
amazing
speakers
coming
this
morning
and
so
without
further
ado.
Let
me
introduce
to
you
oscar
now.
Oscar
is
team.
Lead
of
the
grain
programming
language
and
they've
been
working
on
bringing
a
new
programming
language
to
the
near
and
bring
even
more
developers.
So,
please
round
of
applause
for
oscar.
B
B
So
what
is
grain
grain?
Is
a
programming
language
made
exclusively
for
webassembly,
so
the
near
blockchain
uses
webassembly
to
execute
all
the
smart
contracts.
So
webassembly
is
actually
the
perfect
technology
for
this
sort
of
stuff.
The
idea
behind
webassembly
is
it
executes
in
a
sandboxed
environment.
So
it's
in
a
sandbox
everything's
super
secure
everything
here
awesome.
It's
super
secure!
It's
like
I
said,
sandbox
secure
and
able
to
execute
in
a
nice
little
environment
without
having
to
interact
with
the
outside
world.
B
Outside
of
what
capabilities
you
want
to
give
to
the
webassembly
modules,
so
it
makes
it
perfect
for
blockchain
applications.
So,
since
we've
been
building
grain
for
webassembly,
it
makes
a
ton
of
sense
to
bring
a
language
like
this
to
near.
B
So
yeah,
like
I
said
before,
it
also
has
a
very
small
footprint.
So
in
terms
of
things
like
storage
on
the
blockchain,
it's
not
going
to
cost
you
a
ton
of
near
to
store
all
of
your
code
on
the
blockchain.
B
So
what
languages
do
we
have
right
now
running
on
near
so
the
first
one,
of
course,
is
rust,
which
is
a
language
that
is
fantastic.
If
you
have
mission
critical
applications,
if
you're
working,
of
course
with
deep,
deep
financial
smart
contracts,
it
makes
a
ton
of
sense
to
write
them
in
rust.
B
However,
russ
has
a
huge
learning
curve.
It's
very
intimidating
for
a
lot
of
developers
to
get
onboarded
using
rust,
which
is
not
great
when
you're
trying
to
bring
tons
and
tons
of
people
on,
then
you
have
a
language
like
assembly
script.
Assuming
script
is
a
fantastic
language.
It's
very
close
to
you
know
just
native
webassembly
code.
Only
problem
there
is
that
it's
still
very,
very
low
level.
It
doesn't
feel
natural
for
a
lot
of
developers
to
come
in
and
start
actually
building
real
things
using
assembly
script.
B
So
where
does
grain
come
in?
Grain
is
here
to
be
that
high
level
programming
language
we've
been
waiting
for
to
do
things
like
writing
smart
contracts,
so
talking
a
little
bit
about
what
we're
doing
with
the
language.
It's
a
strongly
typed
functional
oriented
programming
language.
So
the
idea
behind
that
is
like
in
rust.
You
have
that
really
strong
type
type
checker.
That's
making
sure
that
all
of
your
code
is
doing
exactly
what
you
wanted
to.
We've
got
the
same
thing
in
grade.
B
So,
in
addition
to
just
writing
functional
programming
code,
if
you're
used
to
writing
very
iterative
code,
if
you're
used
to
writing
javascript
things
like
that
you're
going
to
feel
right
at
home
and
of
course,
modern
day,
language
features
to
keep
developers
productive.
So
one
of
my
favorite
features
in
modern
day
programming
languages.
Pattern
matching!
B
If
you
take
a
look
at
this
code
example
down
here,
it's
like
super
simple.
When
we're
defining
data,
we
can
define
it
in
terms
of
hey.
What
does
this
data
actually
look
like
and
then,
when
we're
pattern
matching
we
say.
Oh
for
example,
here
if
we're
ordering
something,
we've
got
a
pizza,
it's
one
topping
with
pepperoni.
In
this
exact
case,
we
can
do
something
here.
B
B
So
our
goals.
We
want
to
be
a
super
high
level
language
for
web
assembly.
So
just
coding
in
like
ruby
our
language
like
python,
that's
what
the
experience
using
grain
should
be
like,
so
imagine
you
can
write
your
smart
contracts
in
a
language
like
ruby
or
python.
You
don't
have
to
write
it
in
rust.
You
don't
have
to
write
it
and
see.
B
All
of
a
sudden.
You
can
see
how
many
more
developers
can
get
onto
the
platform.
We
want
to
give
them
tools
to
move
fast.
We
want
to
make
sure
that
we've
got
awesome,
standard
libraries,
awesome
sdks
for
folks
to
get
on
board
and
moving
quick
and
after
all,
we
want
to
put
webassembly
in
the
hands
of
all
sorts
of
developers.
Not
just
you
know
those
seasoned
veterans
who
are
fantastic,
working
with
super
low
level
code.
We
want
to
bring
more
people
on.
So
not
just
writing.
Even
you
know
defy
stuff
and
stuff
like
that.
B
B
So
here's
a
super
duper
simple
example.
I
don't
want
to
get
too
technical
here,
but
this
is
a
super
duper
simple,
smart
contract
and
so
we've
been
doing
some
work
on
the
grain
near
sdk,
which
we'll
be
launching
sometime
soon,
but
in
this
example
here
we
just
have
a
counter.
So
this
is
some
code.
That's
going
to
run
on
the
blockchain.
B
You
want
to
load
a
counter
set
the
value
very
simple:
you
want
to
load
the
counter
decrement,
the
value
very
simple,
and
we
have
a
view
function.
This
function
just
returns.
The
current
value
of
the
counter,
even
if
you're
a
non-technical
person,
you
can
probably
look
at
this
and
tell
hey
that's
easy.
That's
not
too
hard!
That's
something
that
I
can
do.
It's
not
big
scary
code.
That.
A
B
B
It
means
a
whole
lot
because,
like
I
said
before,
if
you've
only
got
you
know
developers
who
are
just
very
deeply
technical
super
experienced
in
these
languages
like
rust,
developing
that's
a
really
small
set
of
people,
but
if
you
start
looking
at
the
community
of
folks
like
everyone
who
writes
javascript,
for
example,
if
you
can
bring
all
of
those
developers
onto
the
platform
we're
going
to
see
this
explosion
of
projects
down
here
and
I
think
that's
incredibly
exciting
bringing
so
many
more
people
into
our
ecosystem.
It's
amazing.
B
So
I
know
for
myself
when
I
first
got
into
near
the
gas
fees
were
so
low
that
I
could
mess
around
and
do
all
sorts
of
things
that
I
could
never
do
on
other
chains
and
that's
what
really
got
me
interested
and
so
when
we
can
make
it
so
people
can
start
building
really
really
simply
really
really
easily
and
then
they
can
come
in
and
it
doesn't
cost
them
very
much
we're
really
onto
something
here,
and
so
it's
a
lot
of
what
I'm
excited
about.
B
B
So,
of
course,
a
special
thank
you
to
the
near
foundation
who
makes
it
possible
for
us
to
continue
working
on
the
language
for
near
without
their
support.
We
wouldn't
be
here,
so
it
was
very
special.
Thank
you
to
nir
and
for
believing
in
us
in
everything
that
we're
doing
so.
How
can
you
get
involved
right
now,
like
I
said,
we're
still
currently
working
on
our
sdk
and
officially
bringing
grain
to
near,
we
do
have
a
discord.
Server,
definitely
hop
in
there
chat
with
us.
B
B
B
Of
course,
it's
great
to
get
involved.
We
have
a
lot
of
work
to
do
if
you're
not
like
super
into
building
compilers,
that's
okay.
We
have
plenty
of
other
work,
the
standard
library,
absolutely
a
huge
place
to
get
involved,
there's
tons
and
tons
of
code.
You
can
write
there.
The
best
thing
is:
it's
all
grain
code,
it's
nice
easy
to
write.
It's
not
scary,
like
anything
else,
tooling
documentation
keeping
the
website
up
to
date.
These
things
are
all
super
important,
a.
A
B
Way
for
folks
to
start
getting
involved.
Of
course,
open
issues
suggest
features
if
you're
like.
Oh
actually,
when
I
write
my
contracts,
if
I
had
this
one
feature
here,
it
would
just
make
my
life
so
much
easier.
Tell
us!
We
want
to
know
a
lot
of
the
work
that
we're
doing
is
driven
directly
by
what
folks
are
doing,
and
what
they're
asking
for
and,
of
course,
sponsor
us
we're
a
small
team.
B
We,
you
know
still
have
day
jobs
grain's,
not
the
only
thing
that
we
work
on,
so
the
community
supporting
us
and
taking
care
of
us
is
what
keeps
us
moving
along
so
feel
free
to
drop
us
some
near
grain,
dashlane
dot
near
and
that's
about
it.
Thank
you.
Our
website
is
graindashling.org
discord,
discord,
dot,
g,
slash,
green
dash
lang
on
twitter
is
grain
underscore
lang.
You
can
find
me
on
twitter
as
oscar
underscore
spin
and
that's
about
it.
Thank
you
very
much.