Skip to content

Instantly share code, notes, and snippets.

View hajimes's full-sized avatar

Hajime Senuma hajimes

  • National Institute of Informatics
  • Japan
View GitHub Profile
@hajimes
hajimes / .bazelversion
Created January 9, 2024 06:00 — forked from vonschultz/.bazelversion
Bazel + mmh3 version 4.0.0 and version 4.0.1
6.3.2
@hajimes
hajimes / murmur128_sumle.go
Created April 4, 2023 13:09
(A part of) a MurmurHash3 murmur128 Go implementation whose result is compatible with C++ (original) and Python versions
// This gist is distributed under {public domain, CC0, <some OSI-approved license> Copyright (c) 2023 Hajime Senuma}.
// Choose what you want to use.
// See
// https://github.com/hajimes/mmh3/issues/46
// https://stackoverflow.com/questions/75921577/murmur3-hash-compatibility-between-go-and-python
package main
import "fmt"
@hajimes
hajimes / logsumexp-asm.js
Last active January 29, 2017 02:25
handwritten asm.js code for logsumexp
// MIT License. Copyright (c) 2016 Hajime Senuma.
/**
* asm.js module for logsumexp
*/
function asmModule(stdlib, foreign, heap) {
'use asm';
var exp = stdlib.Math.exp;
var log = stdlib.Math.log;