Skip to content

Instantly share code, notes, and snippets.

View gist:e83f6bf10e2cf97176ab8e2fec8bc284
==4142== Memcheck, a memory error detector
==4142== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==4142== Using Valgrind-3.14.0-353a3587bb-20181007X and LibVEX; rerun with -h for copyright info
==4142== Command: build/i686-linux/debug/bin/iotjs test/napi/test_napi_static_sqlite.js
==4142== Parent PID: 1
==4142==
--4142--
--4142-- Valgrind options:
--4142-- --leak-check=full
--4142-- --show-leak-kinds=all
View gist:61bdbd21be877e3f05711ff6a660ff0f
jerry!ecma_proxy_object_get (\Users\lygstate\work\typescript\jerryscript\jerry-core\ecma\operations\ecma-proxy-object.c:1111)
jerry!ecma_op_object_get_with_receiver (\Users\lygstate\work\typescript\jerryscript\jerry-core\ecma\operations\ecma-objects.c:790)
jerry!ecma_op_object_get (\Users\lygstate\work\typescript\jerryscript\jerry-core\ecma\operations\ecma-objects.c:763)
jerry!vm_op_get_value (\Users\lygstate\work\typescript\jerryscript\jerry-core\vm\vm.c:114)
jerry!vm_loop (\Users\lygstate\work\typescript\jerryscript\jerry-core\vm\vm.c:2799)
jerry!vm_execute (\Users\lygstate\work\typescript\jerryscript\jerry-core\vm\vm.c:4939)
jerry!vm_run (\Users\lygstate\work\typescript\jerryscript\jerry-core\vm\vm.c:5046)
jerry!vm_run_global (\Users\lygstate\work\typescript\jerryscript\jerry-core\vm\vm.c:328)
jerry!jerry_run (\Users\lygstate\work\typescript\jerryscript\jerry-core\api\jerry.c:671)
jerry!main (\Users\lygstate\work\typescript\jerryscript\jerry-main\main-unix.c:156)
View gist:361f10a2ae3961a6f48e75a294ad1fb1
jerry!ecma_op_object_get_with_receiver (\Users\lygstate\work\typescript\jerryscript\jerry-core\ecma\operations\ecma-objects.c:784)
jerry!ecma_op_object_get (\Users\lygstate\work\typescript\jerryscript\jerry-core\ecma\operations\ecma-objects.c:763)
jerry!vm_op_get_value (\Users\lygstate\work\typescript\jerryscript\jerry-core\vm\vm.c:114)
jerry!vm_loop (\Users\lygstate\work\typescript\jerryscript\jerry-core\vm\vm.c:2799)
jerry!vm_execute (\Users\lygstate\work\typescript\jerryscript\jerry-core\vm\vm.c:4939)
jerry!vm_run (\Users\lygstate\work\typescript\jerryscript\jerry-core\vm\vm.c:5046)
jerry!vm_run_global (\Users\lygstate\work\typescript\jerryscript\jerry-core\vm\vm.c:328)
jerry!jerry_run (\Users\lygstate\work\typescript\jerryscript\jerry-core\api\jerry.c:671)
jerry!main (\Users\lygstate\work\typescript\jerryscript\jerry-main\main-unix.c:156)
libdyld.dylib!start (Unknown Source:0)
@lygstate
lygstate / c
Created Jan 23, 2021
jerry-core/ecma/operations/ecma-proxy-object.c
View c
/* Copyright JS Foundation and other contributors, http://js.foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS
@lygstate
lygstate / gist:b3a7de98eb923e72dea6a14ae16c1dc5
Created Dec 25, 2019
core.1577293036.ld.lld.44630.reldeb.txt
View gist:b3a7de98eb923e72dea6a14ae16c1dc5
#0 0x00005573b440d7d2 in computeKnownBits (V=0x5573efdf4a18, Known=..., Depth=5, Q=...)
at /home/builder/package/llvm-project/llvm/include/llvm/IR/Type.h:223
BitWidth = 128
ScalarTy = 0x5573f4235fb0
ExpectedWidth = <optimized out>
C = <optimized out>
#1 0x00005573b4417baf in computeKnownBitsMul (Op0=0x5573f11d78f8, Op1=0x5573efdf4a18, NSW=false,
Known=..., Known2=..., Depth=4, Q=...)
at /home/builder/package/llvm-project/llvm/lib/Analysis/ValueTracking.cpp:326
BitWidth = 128
@lygstate
lygstate / gist:daf6b45d37ee312c0141f717487e442b
Created Dec 25, 2019
core.1577296122.ld.lld.45007.debug.txt
View gist:daf6b45d37ee312c0141f717487e442b
#0 0x00007fb16e32a145 in malloc () from /lib/ld-musl-x86_64.so.1
No symbol table info available.
#1 0x0000000000000001 in ?? ()
No symbol table info available.
#2 0x00007fb16e0edebf in operator new(unsigned long) () from /usr/bin/../lib/libstdc++.so.6
No symbol table info available.
#3 0x0000560c2d0fb23e in getMemory (numWords=2)
at /home/builder/package/llvm-project/llvm/lib/Support/APInt.cpp:46
No locals.
#4 0x0000560c2d0fb387 in llvm::APInt::initSlowCase (this=0x7fb16bd42270, that=...)
@lygstate
lygstate / gist:8262ecbef452dc668e30d40c5795bb06
Last active Dec 25, 2019
Full log of ld.lld 9.0.1 coredump for chromium 78 on alpine
View gist:8262ecbef452dc668e30d40c5795bb06
Undefined set logging command: "getTypeId.log". Try "help set logging".
Currently logging to "gdb.txt".
Future logs will be written to getTypeId.log.
Logs will be appended to the log file.
Output will be logged and displayed.
Thread 9 (LWP 254):
#0 0x000055f062d9fb2f in AddNodeIDCustom (ID=..., N=0x55f087e2f408) at /home/builder/package/llvm-project/llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1564
C = 0x55f087e2f408
GA = <optimized out>
@lygstate
lygstate / glfwAngle.cpp
Last active Jul 14, 2016
glfw with gis
View glfwAngle.cpp
#include <GLFW/glfw3.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdio.h>
#define esLogMessage printf
typedef struct
{
// Handle to a program object
GLuint programObject;
View A better IndexedDB IMHO.md

--------- Work In progress ---------

##Context Multiple discussion threads spun out after this tweet mentioning my talk on Full-Text Search in IndexedDB using Inverted Indices at BerlinJS.

Only the beginning of my talk was about my discontent with the current IDB API and how it is a much needed technology. Unfortunately it's not terrific as a spec and has rather messy implementations across browsers. The API is way too low-level and needs a decent amount of abstraction for everyday web-developers to work with it.

Sharing my slides isn't going to be of much help, and neither is discussing about them in 140 chars.

View archive.py
#!/usr/bin/env python
import os
import zipfile
"""
Helper class that lets one add whole directory contents.
License
--------------------