Stanisław Barzowski

Results 158 comments of Stanisław Barzowski

I think both `std.trunc` and `std.div` would be good additions to the standard library. Note that we would want full documentation entries with examples and explanation of the difference between...

Fixes https://github.com/google/jsonnet/issues/722. It makes sense to add a regression test and check that we don't have the same problem in other places. Perhaps we can have a helper function to...

I tried getting to the bottom of this again, but I'm still very confused. One idea that I haven't checked yet is that the locale is just not there, but...

Are you aware of `|||` text blocks? See the tutorial: https://jsonnet.org/learning/tutorial.html.

Ah, so you want the newlines replaced with spaces. I see how it can be quite useful sometimes.

You're correct. In this case we should fix the documentation, because it makes more sense this way ([rationale](https://stackoverflow.com/questions/27913577/why-does-foldr-invert-foldls-parameters)) and people depend on this behavior already. I put some context below...

I think @sparkprime proposed this when I started contributing to go-jsonnet, if not earlier... Related: https://github.com/google/go-jsonnet/issues/205 Related: https://github.com/google/go-jsonnet/issues/207

Thanks for reporting the problem. Please take a look at the example I posted on Stack Overflow: https://stackoverflow.com/questions/49949418/how-to-correctly-call-jsonnet-with-imports-from-python/49954607#49954607 Could you post the code that didn't work? It will be easier...

> I still don't think I really understand what import_callback and what arguments it's passed. `import_callback` (aka importer) is a way to provide files to jsonnet from any source. It...

Not 100% sure. Generally there should be no problem using Jsonnet with musl (we try not to depend on any glibc-specific stuff). Try running `ldd ./jsonnet` to see if the...