<
endformationage>
I wonder if typing cmd, key, and value as (String | None) would help. That way an empty string is not made when not needed?
<
FunkyBob>
I had consider the same
<
FunkyBob>
makes some other bits "cleaner" too, maybe
* endformationage
is not very familiar with performance tuning.
<
endformationage>
Then I guess call string() in the appends? Not sure what an append of None would do without it.
<
endformationage>
Then maybe use the try expressions to assign directly to the vars, and no need to pre-assign None to them?
<
endformationage>
var key: (String | None) = try String.from_array(...) end
<
FunkyBob>
the String | None means I have to put in lots of checks later
<
FunkyBob>
var cmd : String = String.from_array(recover val src.slice(0, 1) end)
<
FunkyBob>
but that works :)
<
endformationage>
just casts 'as String' no?
<
FunkyBob>
changes pushed
<
endformationage>
Seen you're interested in this stuff, I think It'd be cool to see a Pony package wrapping LMDB.
amclain has quit [Quit: Leaving]
<
FunkyBob>
wlel, LMDB seems a good fit... but going from where I am now to writing a credible Pony wrapper? .... big step :)
<
endformationage>
LOL, yeah no kidding. Good practice fo runderstanding Pony's C FFI :)
<
FunkyBob>
seems quite straight forward, at the basics
chemist69 has quit [Ping timeout: 276 seconds]
chemist69 has joined #ponylang
malthe_ has quit [Ping timeout: 268 seconds]
malthe has joined #ponylang
smoon has joined #ponylang
smoon has quit [Quit: smoon]
gmcabrita has quit [Quit: Connection closed for inactivity]
adamkittelson_ has joined #ponylang
k0nsl has quit [Quit: “If we don't believe in freedom of expression for people we despise, we don't believe in it at all — Noam Chomsky”]
Bombe has joined #ponylang
k0nsl has joined #ponylang
k0nsl has joined #ponylang
k0nsl has quit [Changing host]
Arjan_ has joined #ponylang
Arjan has quit [*.net *.split]
srenatus[m]1 has quit [*.net *.split]
QshelTier has quit [*.net *.split]
jmiven has quit [*.net *.split]
adamkittelson has quit [*.net *.split]
bweez_ has quit [*.net *.split]
Candle has quit [*.net *.split]
Arjan_ is now known as Arjan
adamkittelson_ is now known as adamkittelson
bweez_ has joined #ponylang
Candle has joined #ponylang
jmiven has joined #ponylang
srenatus[m]1 has joined #ponylang
smoon has joined #ponylang
chemist69 has quit [Ping timeout: 240 seconds]
jemc has joined #ponylang
smoon has quit [Quit: smoon]
k0nsl has quit [Quit: “If we don't believe in freedom of expression for people we despise, we don't believe in it at all — Noam Chomsky”]
chemist69 has joined #ponylang
k0nsl has joined #ponylang
k0nsl has joined #ponylang
k0nsl has quit [Changing host]
jemc has quit [Ping timeout: 240 seconds]
smoon has joined #ponylang
jemc has joined #ponylang
smoon has quit [Quit: smoon]
vaninwagen_ has joined #ponylang
vaninwagen_ has quit [Ping timeout: 240 seconds]
jemc has quit [Ping timeout: 240 seconds]
vaninwagen_ has joined #ponylang
plietar has quit [Remote host closed the connection]
plietar has joined #ponylang
plietar has quit [Ping timeout: 240 seconds]
plietar has joined #ponylang
papey_lap has joined #ponylang
endformationage has quit [Quit: WeeChat 1.7]
vaninwagen_ has quit [Ping timeout: 240 seconds]
chemist69 has quit [Ping timeout: 258 seconds]
papey_lap has quit [Ping timeout: 245 seconds]
chemist69 has joined #ponylang
papey_lap has joined #ponylang
aedigix- has quit [Ping timeout: 255 seconds]
emilbayes has quit []
emilbayes has joined #ponylang
gmcabrita has joined #ponylang
vaninwagen_ has joined #ponylang
aedigix has joined #ponylang
chemist69 has quit [Ping timeout: 246 seconds]
chemist69 has joined #ponylang
plietar has quit [Remote host closed the connection]
plietar has joined #ponylang
plietar has quit [Ping timeout: 268 seconds]
plietar has joined #ponylang
aedigix has quit [Remote host closed the connection]
k0nsl has quit [Quit: “If we don't believe in freedom of expression for people we despise, we don't believe in it at all — Noam Chomsky”]
k0nsl has joined #ponylang
k0nsl has quit [Changing host]
k0nsl has joined #ponylang
k0nsl has quit [Client Quit]
k0nsl has joined #ponylang
k0nsl has joined #ponylang
k0nsl has quit [Changing host]
k0nsl has quit [Quit: “If we don't believe in freedom of expression for people we despise, we don't believe in it at all — Noam Chomsky”]
k0nsl has joined #ponylang
k0nsl has joined #ponylang
k0nsl has quit [Changing host]
aedigix has joined #ponylang
_andre has joined #ponylang
aedigix has quit [Quit: disconnecting]
aedigix has joined #ponylang
aedigix has quit [Remote host closed the connection]
aedigix has joined #ponylang
aedigix has quit [Remote host closed the connection]
aedigix has joined #ponylang
aedigix has quit [Remote host closed the connection]
aedigix has joined #ponylang
aedigix has quit [Ping timeout: 240 seconds]
aedigix has joined #ponylang
chemist69 has quit [Ping timeout: 246 seconds]
chemist69 has joined #ponylang
k0nsl has quit [Quit: “If we don't believe in freedom of expression for people we despise, we don't believe in it at all — Noam Chomsky”]
k0nsl has joined #ponylang
k0nsl has joined #ponylang
k0nsl has quit [Changing host]
plietar has quit [Remote host closed the connection]
plietar has joined #ponylang
plietar_ has joined #ponylang
plietar has quit [Ping timeout: 264 seconds]
jemc has joined #ponylang
plietar_ has quit [Quit: Leaving...]
vaninwagen_ has quit [Ping timeout: 268 seconds]
aav has joined #ponylang
amclain has joined #ponylang
papey_lap has quit [Quit: WeeChat 1.7.1]
emilbayes has quit [Remote host closed the connection]
emilbayes has joined #ponylang
endformationage has joined #ponylang
k0nsl has quit [Quit: “If we don't believe in freedom of expression for people we despise, we don't believe in it at all — Noam Chomsky”]
k0nsl has joined #ponylang
k0nsl has joined #ponylang
k0nsl has quit [Changing host]
k0nsl has quit [Quit: “If we don't believe in freedom of expression for people we despise, we don't believe in it at all — Noam Chomsky”]
k0nsl has joined #ponylang
k0nsl has joined #ponylang
k0nsl has quit [Changing host]
Matthias247 has joined #ponylang
_andre has quit [Quit: leaving]
k0nsl has quit [Quit: “If we don't believe in freedom of expression for people we despise, we don't believe in it at all — Noam Chomsky”]
k0nsl has joined #ponylang
k0nsl has joined #ponylang
k0nsl has quit [Changing host]
K4rolis has quit [Ping timeout: 240 seconds]
jemc has quit [Ping timeout: 260 seconds]
Matthias247 has quit [Read error: Connection reset by peer]
chemist69 has quit [Ping timeout: 240 seconds]
jemc has joined #ponylang
k0nsl has quit [Quit: “If we don't believe in freedom of expression for people we despise, we don't believe in it at all — Noam Chomsky”]
k0nsl has joined #ponylang
k0nsl has joined #ponylang
k0nsl has quit [Changing host]
amclain has quit [Quit: Leaving]
chemist69 has joined #ponylang
amclain has joined #ponylang