src-d / blog

source{d} blog
https://blog.sourced.tech/
GNU General Public License v3.0
27 stars 41 forks source link

Calling C functions from BigQuery #191

Closed campoy closed 6 years ago

campoy commented 6 years ago

Fixes #180

dpordomingo commented 6 years ago

I saw you created a lot of files under static/post/c-on-bigquery but they're not used nor linked in the post.

It would be great if we could have a shortcode to reuse and render its content (avoiding duplicated code), something like this:

Let's now write a `main.js` that loads the `wasm` file and uses its `sum` function.

{{% code "javascript" "c-on-bigquery/main.js" %}}

The code might seem complex, but if you ignore all the code before the call [...]

that would render:

sortcode-code

campoy commented 6 years ago

This is now ready for reviews! Depends on https://github.com/src-d/blog/pull/198 being merged

campoy commented 6 years ago

Planned to be released tomorrow at 8am PST and deployed to staging. https://blog-staging.srcd.run/post/calling-c-functions-from-bigquery/

campoy commented 6 years ago

This is now published, but I let it up just in case there's any other corrections anyone has

Please approve the changes when you have a minute 😄

vmarkovtsev commented 6 years ago

Merging this - it is already published as https://blog.sourced.tech/post/calling-c-functions-from-bigquery/ BTW it is a mystery to me how it was possible, @dpordomingo ?

dpordomingo commented 6 years ago

@vmarkovtsev The blog was published without a merge because ~@campoy~ someone ~broke~ forced the rules :stuck_out_tongue_winking_eye: If you tag something, it is automatically deployed, and that's what it was done by tag v.14.2

What it was agreed with @src-d/infrastructure team was to tag only over master to avoid loosing changes accidentally :see_no_evil:

campoy commented 6 years ago

No, no. That was totally me. Luckily I'm writing a document explaining the blog post release process! haha