Csharp

DuckDB.NET 1.5.6.1: 128-bit Values Up to 6.6× Faster featured image

DuckDB.NET 1.5.6.1: 128-bit Values Up to 6.6× Faster

DuckDB.NET 1.5.6.1 reads HUGEINT columns 6.6 times faster and UUIDs 3.3 times faster with Int128 instead of BigInteger. Part 3: HUGEINT, UUID and DECIMAL.

avatar
Giorgi Dalakishvili
•
DuckDB.NET 2.0 Preview 1: What Changes When You Upgrade featured image

DuckDB.NET 2.0 Preview 1: What Changes When You Upgrade

DuckDB.NET 2.0.0-preview.1 is on NuGet. The breaking changes: HUGEINT reads as Int128, Prepare() really prepares, and lossy conversions now throw.

avatar
Giorgi Dalakishvili
•
DuckDB.NET 1.5.6.1: Appending Dates Up to 27× Faster featured image

DuckDB.NET 1.5.6.1: Appending Dates Up to 27× Faster

DuckDB.NET 1.5.6.1 appends DateTime values up to 27 times faster and cuts allocations from 2.8 GB to 93 KB. Part 2: dates, nullables, enums and strings.

avatar
Giorgi Dalakishvili
•
DuckDB.NET 1.5.6.1: Reading Data Up to 12× Faster featured image

DuckDB.NET 1.5.6.1: Reading Data Up to 12× Faster

DuckDB.NET 1.5.6.1 is up to 26 times faster on the same DuckDB 1.5.6 engine. Part 1: how sealing, fast paths and less boxing make reads up to 12 times faster.

avatar
Giorgi Dalakishvili
•

Faking num lock, caps lock and scroll lock leds

How to turn the Num Lock, Caps Lock and Scroll Lock LEDs on and off from C# without changing the key state, using DeviceIoControl.

avatar
Giorgi Dalakishvili
•

Building Expression Evaluator with Expression Trees in C# – Improving the Api

Part 4 of the series: binding variables by name with anonymous objects, and compiling an expression once to evaluate it with different values.

avatar
Giorgi Dalakishvili
•

Using Reactive Extensions for Streaming Data from Database

How to use Reactive Extensions (Rx) in .NET to run a slow database query in the background and load the results into a grid in chunks.

avatar
Giorgi Dalakishvili
•

Building Expression Evaluator with Expression Trees in C# – Part 3

Part 3 of the series: adding support for variables to the C# expression evaluator with Expression.Parameter and compiled lambdas.

avatar
Giorgi Dalakishvili
•

Building Expression Evaluator with Expression Trees in C# – Part 2

Part 2 of the series: rewriting the C# expression evaluator with the shunting-yard algorithm and adding support for parentheses.

avatar
Giorgi Dalakishvili
•

Building Expression Evaluator with Expression Trees in C# – Part 1

Part 1 of the series: a basic mathematical expression evaluator in C# built with expression trees, developed test by test.

avatar
Giorgi Dalakishvili
•

Building Expression Evaluator with Expression Trees in C# – Table of Contents

Table of contents for a four-part series on building a mathematical expression evaluator in C# with expression trees.

avatar
Giorgi Dalakishvili
•

AppDomain.AssemblyResolve Event Tips

Tips for handling the AppDomain.AssemblyResolve event in .NET: parsing assembly names, handling repeated calls and avoiding FileNotFoundException.

avatar
Giorgi Dalakishvili
•

How to Get Elevated Process Path in .Net

Process.MainModule.FileName throws for elevated processes. Here is how to get the process path in .NET with QueryFullProcessImageName instead.

avatar
Giorgi Dalakishvili
•

Bugs in System.Diagnostics.Process Class

Process.StartTime and Process.HasExited throw an access denied Win32Exception for elevated processes. Here is why it happens and how to work around it.

avatar
Giorgi Dalakishvili
•