Hacker News
new
past
comments
ask
show
jobs
points
by
talideon
7 hours ago
|
comments
by
IshKebab
6 hours ago
|
[-]
Right but "guaranteed to terminate" is not a useful property. You could write a program that terminates... after a billion years.
reply
by
dilyevsky
5 hours ago
|
parent
|
[-]
You can estimate cost of CEL program using static analysis before running it. "estimate" only because size of runtime data is generally unknown (but obv you could limit that).
reply
by
IshKebab
3 hours ago
|
parent
|
[-]
"You can" - in theory, or does this actually exist?
reply
by
AlecBG
1 hours ago
|
parent
|
next
[-]
With certain macros disabled like .map the runtime is O(code length)!
reply
by
dilyevsky
3 hours ago
|
parent
|
prev
|
[-]
https://pkg.go.dev/github.com/google/cel-go/cel#Env.Estimate...
reply