RSSAmplifier

Blog

Narek Galstyan

Recent content on Narek Galstyan

narekg.meRSS feed ↗9 posts

Latest posts

SELECT 1 Touches 5,583 Lines of Postgres Source Code

I ran SELECT 1 in Postgres under gdb and traced the execution path through the source code. 
 But before that, a few words on why I wanted to know. 
 Background 
 A while back, I had run into an obscure bug in Postgres that I am sure has affected no one and will affect no one, due to the absurdity of its necessary conditions.
I had tried to fix it and failed at the time. Recently I…

My Failed Attempts at Fixing an Obscure Postgres Bug

Note: This is an unfinished bug hunt with no satisfying conclusion. I am documenting what I know so far to hopefully finish solving this later. 
 Background 
 When building bm25 indexing for LanternDB , I came across a very obscure Postgres bug (which I reported in the pgsql-bugs mailing list ).
The bug causes a valid PL/pgSQL function call to fail, likely because of some faulty cache…

Recompiling Rust libcore to enable gated features

I have recently been working on a WebAssembly project in which I wanted to take advantage of SIMD (single instruction multiple data) instructions in WebAssembly that are now supported in modern browsers. I was using Rust for programming and due to this project discovered some peculiarities of Rust standard library that I’d like to share. 
 In Rust, wasm32 SIMD intrinsics are documented…

Parallel mandelbrot set visualization with WebAssembly, Raynon and Rust


 Each color band represents the work of a particular thread 
 
 

 
 

I built an interactive Mandelbrot set visualizer in Rust that paralellizes computation with Rayon and compiles to WebAssembly to run in your browser. Explore the Demo Here (Works on a recent version of Chrome.) 
 Or follow one of the direct links into
particular areas of the mandelbrot…

(untitled)

5G was irst intentded to be the first sysstem built from sctatch to serve smart things. The main things needed were to break the monoliths of radio communication. some of it actually happeneed but alot of it still comprises of proprietary systems 
 5G enables fusion of multiple industries (telecommunication and cloud and AI). 
 Edge has no shape and are moving. (this can be a very useful…

(untitled)

What is the problem and why is it important? 
 As data gets more and more conentrated in the servers of giant private companies, even if the data is not secret, analysing the patterns in which this data is accessed can reveal private information about the end user. Netflix and Youtube are good examples of this: they deliver public content but can see which subset of the public content each…

(untitled)

What is the problem that is being solved? 
 There is active research and new proposals for new exotic ways of organizing hardware. NUMA is one of these still new and shiny ideas. However, with existing operating systems built with existing hardware in mind, it is really hard to drive adoption for this new hardware ideas. This means that even if a hardware innovation was unequivocally better…

(untitled)

What is the problem and why is it important? 
 As data gets more and more conentrated in the servers of giant private companies, even if the data is not secret, analysing the patterns in which this data is accessed can reveal private information about the end user. Netflix and Youtube are good examples of this: they deliver public content but can see which subset of the public content each…

(untitled)

What is the problem that is being solved? 
 Sometimes we want to share hardware. OSes and timesharing systems were built to solve this issue but generally have a large system area. So OSes are great for sharing hardware in a trusted environment among users that trusted each other. On the other hand, sometimes we want to guarantee 100% hardware isolation and want to run applications requiring…