Skip to content

Instantly share code, notes, and snippets.

@namibj
namibj / Guide to build graphql_derive.md
Created September 1, 2020 20:33
graphql_derive, or why committing Cargo.lock for libraries is a good idea.

The graphql_derive.rs example of declarative-dataflow has been broken for a long time, but I was curious and wanted to try it out. After failed bisection attempts, I decided to just look at commit dates and to manually convince cargo to use the code as it was when the example was written.

Below are instructions for building the example. I hope to get an IPFS CID ready soon, which would contain everything needed to build the example, but crates.io and GitHub should suffice for the time being.

mkdir TimelyDataflow
git clone -b graphql_derive_overrides https://github.com/namibj/differential-dataflow TimelyDataflow/differential-dataflow
git clone -b graphql_derive_overrides https://github.com/namibj/timely-dataflow TimelyDataflow/timely-dataflow
mkdir comnik
name num downloads cumulative_downloads
rustc-ap-graphviz 611.0.0 8 33031
broadcaster 1.0.0 30038 30038
subtle 1.0.0 197850 197850
assert_cmd 0.12.2 1308 29550
assert_cmd 0.10.2 3285 28242
rand 0.7.0 35215 1732684
wayland-scanner 0.24.1 1042 34316
fluent-syntax 0.9.3 4428 9849
dbus 0.6.5 11552 11552
@namibj
namibj / keybase.md
Created March 9, 2020 18:49
keybase.md

Keybase proof

I hereby claim:

  • I am namibj on github.
  • I am namibj (https://keybase.io/namibj) on keybase.
  • I have a public key ASDJ3ltEeJ0iZIp_21vcdFuFaTO2L2kZKlJ54TVBXEhtPAo

To claim this, I am signing this object:

@namibj
namibj / raw_log.cat
Created May 4, 2019 13:48
rr-debugger/rr#2343 6d56b15492d25bf58858431efe892c111309ae44 ctest --verbose
UpdateCTestConfiguration from :/home/namibj/src/obj/DartConfiguration.tcl
UpdateCTestConfiguration from :/home/namibj/src/obj/DartConfiguration.tcl
Test project /home/namibj/src/obj
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 1
@namibj
namibj / gist:4db5a2932a37c617805791121663658c
Created February 24, 2018 00:46
Concurrent Haskell GC Pseudocode
cleanupOldBlock [B
traverse Roots [x
if x in B [
copy x -> nexx
memWriteOrderingFence
forward x > newx
]
]
sync invalidate cached pointers
traverse Roots [x

#Algorithmische Mathematik ##1. Einführung Algorithmus = endliche Rechenforschrift, die spezifiziert:

  • Was wird als Eingabe akzeptiert?
  • Welche Rechenschritte werden in welcher Reihenfolge ausgeführt, ggf. in Abhängigkeit von Eingabewerten und Zwischenerebnissen
  • Wann stoppt der Algorithmus und was wird dann ausgegeben?

(Formale definitionen, z.B. -Turingmaschine -Progrtammiersprache (z.B. C+++))

// Originally from: https://www.quora.com/What-is-the-toughest-coding-question-that-you-faced-in-an-interview
//
// You have 4 strings.
// You can rearrange each string in anyway you want and then you are going to construct a trie from these 4 strings.
// What is the minimum possible number of nodes in this trie?
namespace Test
{
using System;
using System.Collections.Generic;
using System.Linq;