4 May 2023

48 links · Thursday

To Draw with Markov Chain Monte Carlo.

In this post we will explore Markov Chain Monte Carlo Methods (MCMC), and specifically Metropolis-Hastings. MCMC Methods allow us to sample from a distribution, if all we know is $\phi(x)=c\times f(x)$, where $f(x)$ is the density at point $x$ of the distribut…

Your Jest tests might be wrong

Is your Jest test suite failing you? You might not be using the testing framework’s full potential, especially when it comes to preventing state leakage between tests. The Jest settings clearMocks, resetMocks, restoreMocks, and resetModules are set to false by…

I Make Deepfakes: How to Keep Yourself Safe - Arkavian

Unless you live under a rock, you’ve heard about deepfakes. Deepfakes are videos that blend reality with fiction by training a generative neural network to replace a person’s face with someone else’s. These videos are making news, and not always in a good way.…

Re-implementing LangChain in 100 lines of code

LangChain has become a tremendously popular toolkit for building a wide range of LLM-powered applications, including chat, Q&A and document search. In this blogpost I re-implement some of the novel LangChain functionality as a learning exercise, looking at the…

Factorize your language models

A traditional language model is a probability distribution $p_ ext{LM}(t)$ predicting how likely text $t$ is to appear in a training corpus approximating all of language. A 2023 language model (GPT-4 [OpenAI 2023], Claude [Bai et al 2022], Alpaca [Taori et al …

Innovation vs Revolution

So if revolutions aren't owned, how can one flow with it? It's all about tools. Never has a revolution occurred with some product at the forefront, it has always been cheaply accessible resources that anyone can take advantage of.

Design system guide

If your project don't have a design system it is probably usual problem for you, when even a small changes like changes a color for action buttons takes off a lot of time, generate a lot of changes and make user interface look inconsistent. To solve the proble…

The pendulum swings! Microservices to Monoliths

The pendulum swings. We moved from monoliths to microservices a decade ago, and there has been a swing back to either consolidating microservices or moving t...

Prime Video Switched from Serverless to EC2 and ECS to Save Costs

Prime Video, Amazon’s video streaming service, has explained how it re-architected the audio/video quality inspection solution to reduce operational costs and address scalability problems. It moved the workload to EC2 and ECS compute services, and achieved a 9…

Myths about F#: F# is slow! No, F# can be really fast.

A recurring claim is that OOP languages, in general, are faster than FP languages - or specific to .Net, C# is faster than F#. So today, we take a look at the myth about F# being slow. Functional-programming patterns considered slow A couple of patterns used f…

Weekly Update 346

Upcoming Events in Perth; Privacy Awareness Week; The Padlock Icon is Dead; The Divorce Blog Post

ReSharper 2023.2 Roadmap | The .NET Tools Blog

The upcoming Early Access Program (EAP) for ReSharper version 2023.2 is fast approaching, and we want to share the development roadmap we’ve set for the next release. Before we get into it, this ro

Rider 2023.2 Roadmap | The .NET Tools Blog

As we prepare for the start of the Early Access Program (EAP) for Rider 2023.2, now seems like the perfect time to share our plans for this upcoming release. Keep in mind that these plans are subje

Public Art Museums

I thoroughly enjoy museums, more specifically Art museums and I was taking ...

.NET Rocks! Supporting Open Source with Joseph Finney

How do we support open-source projects? Carl and Richard talk to Joseph Finney about his ongoing efforts to build various projects in his spare time while still working a regular day job. Joe talks about the options to contribute to open-source, including subm…

I want to talk about WebGPU

WebGPU is the new WebGL. That means it is the new way to draw 3D in web browsers. It is, in my opinion, very good actually. It is so good I think it will also replace Canvas and become the new way to draw 2D in web browsers. In fact it is so good I think it wi…