Quantcast
Channel: x += x++
Browsing index pages (30 articles)

My blog moved to www.lucabol.com …

I should have gotten my own domain name way earlier, but anyhow, here it is … http://www.lucabol.com  

View Article


Stopping Garbage Collection in .NET Core 3.0 (part II)

Let’s see how it’s implemented. For why it is implemented, see Part I. The FxCop code analyzers get upset if I don’t declare this, which also impede me from using unsigned numeral types in interfaces....

View Article


Stopping Garbage Collection in .NET Core 3.0 (part I)

The main idea is to use [ETW events](https://docs.microsoft.com/en-us/windows/desktop/etw/about-event-tracing) to detect when a GC occurs and to call an user provided delegate at that point. You can...

View Article

A Stack data structure implementation using Span

This Stack data structure can be used over memory that resides on the stack, heap or unmanaged heap. If you know about Span this should immediately make sense to you. Continue reading →

View Article

Image may be NSFW.
Clik here to view.

Building a stock alert system with Google Script

When I thought about it, I realized that my ideal system would be a spreadsheet where to add tickers and alert levels. Under the covers, the system would need to check the current price of a ticker,...

View Article


Image may be NSFW.
Clik here to view.

Functional programming in C – Implementation

0.1 Cleanup 0.2 Lambdas 0.3 Unions 0.1 Cleanup Let’s start simple with the cleanup function. First we need the usual barrage of includes. G_BEGIN_DECLS allows the header to be linked in C++. #ifndef...

View Article

Image may be NSFW.
Clik here to view.

Functional programming in C

0.1 Discriminated unions in C 0.2 Nested functions and lambda variables 0.3 Automatic cleanup of local variables 0.4 Data structures 0.5 Wrapping up This post/program (as I’m writing it in literate...

View Article

Image may be NSFW.
Clik here to view.

Exceptions vs. Return Values to represent errors (in F#) – IV – Implementation

The Critical monad is defined as follows. First there is the type that propagates through the monad: type Result<'a, 'b> = | Success of 'a | Failure of 'b Then we define the usual computation...

View Article


Image may be NSFW.
Clik here to view.

Exceptions vs. Return Values to represent errors (in F#) – III–The Critical...

Code for this post is here. In the last post we looked at some Critical code and decided that, albeit correct, it is convoluted. The error management path obfuscates the underlying logic. Also we have...

View Article


Image may be NSFW.
Clik here to view.

Exceptions vs. Return Values to represent errors (in F#) – II– An example...

In the previous post, we talked about the difference between Critical and Normal code. In this post we are going to talk about the Critical code part. Ideally, we want: A way to indicate that a...

View Article

Image may be NSFW.
Clik here to view.

Exceptions vs. Return Values to represent errors (in F#) – I – Conceptual view

Recently I’ve been reading numerous articles on the age old question of exceptions vs. return values. There is a vast literature on the topic with very passionate opinions on one side or the other....

View Article

Image may be NSFW.
Clik here to view.

Retrieving SQL Server data with type providers and exposing it with ASP.NET...

For a good introduction on how to use Web APIs in F#, read here. The starting point for type providers is here. This post is about how I solved a practical problem using these technologies. First,...

View Article

Image may be NSFW.
Clik here to view.

Funky C for literate programming

Funky C for literate programming Luca Bolognese 31/12/2012 1 Main ideas 2 Lack of tuples 3 Folding over arrays 4 Deallocating stuff 5 Discriminated unions 6 Main data structure 7 Tokenizer 8 Parser 9...

View Article


Image may be NSFW.
Clik here to view.

Functional programming in C – Implementation

Functional programming in C – Implementation Luca Bolognese 19/12/2012 0.1 Cleanup 0.2 Lambdas 0.3 Unions 0.1 Cleanup Let’s start simple with the cleanup function. First we need the usual barrage of...

View Article

Image may be NSFW.
Clik here to view.

Functional programming in C

Functional programming in C – I Functional programming in C – I Luca Bolognese 19/12/2012 0.1 Discriminated unions in C 0.2 Nested functions and lambda variables 0.3 Automatic cleanup of local...

View Article


Image may be NSFW.
Clik here to view.

LLite : language friendly literate programming

LLite : language friendly literate programming LLite : language friendly literate programming Luca Bolognese 22/11/2012 1 Main ideas 1.1 Unhappiness with existing tools 1.2 A different interpretation...

View Article

Image may be NSFW.
Clik here to view.

Exceptions vs. Return Values to represent errors (in F#) – IV – Implementation

The Critical monad is defined as follows. First there is the type that propagates through the monad: type Result<'a, 'b> = | Success of 'a | Failure of 'b Then we define the usual computation...

View Article


Image may be NSFW.
Clik here to view.

Exceptions vs. Return Values to represent errors (in F#) – III–The Critical...

Code for this post is here. In the last post we looked at some Critical code and decided that, albeit correct, it is convoluted. The error management path obfuscates the underlying logic. Also we have...

View Article

Image may be NSFW.
Clik here to view.

Exceptions vs. Return Values to represent errors (in F#) – II– An example...

In the previous post, we talked about the difference between Critical and Normal code. In this post we are going to talk about the Critical code part. Ideally, we want: A way to indicate that a...

View Article

Image may be NSFW.
Clik here to view.

Exceptions vs. Return Values to represent errors (in F#) – I – Conceptual view

Recently I’ve been reading numerous articles on the age old question of exceptions vs. return values. There is a vast literature on the topic with very passionate opinions on one side or the other....

View Article
Browsing index pages (30 articles)


Latest Images