# pattern matching

Pattern matching is a computational technique for locating occurrences of a specified pattern within a larger body of data.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Teach Your DBMS to LIKE Strings: Fast and General Pattern Matching for Wildcard Joins and Filters

DevFeed: [Teach Your DBMS to LIKE Strings: Fast and General Pattern Matching for Wildcard Joins and Filters](<https://devfeed.tech/articles/teach-your-dbms-to-like-strings-fast-and-general-pattern-matching-for-wildcard-joins-and-filters-115954.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2608.23307>)

Author: Lam-Duy Nguyen, Pascal Ginter, Duc-Tam Nguyen, Thomas Neumann, Viktor Leis

Published: 2026-11-04T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Databases](<https://devfeed.tech/sources/arxiv-databases.md>)

Topics: [like](<https://devfeed.tech/topics/like.md>), [pattern matching](<https://devfeed.tech/topics/pattern-matching.md>), [rdbms](<https://devfeed.tech/topics/rdbms.md>)

Tags: [aho-corasick](<https://devfeed.tech/tags/aho-corasick.md>), [algorithm](<https://devfeed.tech/tags/algorithm.md>), [analytics](<https://devfeed.tech/tags/analytics.md>), [applications](<https://devfeed.tech/tags/applications.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [code-generation](<https://devfeed.tech/tags/code-generation.md>), [complexity](<https://devfeed.tech/tags/complexity.md>), [cs-db](<https://devfeed.tech/tags/cs-db.md>), [database](<https://devfeed.tech/tags/database.md>), [database-management](<https://devfeed.tech/tags/database-management.md>), [duckdb](<https://devfeed.tech/tags/duckdb.md>), [engines](<https://devfeed.tech/tags/engines.md>), [evaluation](<https://devfeed.tech/tags/evaluation.md>), [fast](<https://devfeed.tech/tags/fast.md>), [general](<https://devfeed.tech/tags/general.md>), [like](<https://devfeed.tech/tags/like.md>), [matching](<https://devfeed.tech/tags/matching.md>), [pattern](<https://devfeed.tech/tags/pattern.md>), [pattern-matching](<https://devfeed.tech/tags/pattern-matching.md>), [strings](<https://devfeed.tech/tags/strings.md>), [wildcard](<https://devfeed.tech/tags/wildcard.md>)

### AI overview

The abstract proposes separate optimizations for SQL LIKE joins and filters. For joins, an Aho-Corasick based algorithm reduces the time complexity of the nested-loop approach; for filters, generated specialized code avoids interpreting the pattern for each tuple. In experiments, the join method achieved speedups of up to 30.6x over DuckDB and 114.75x over Umbra, while the filter method reached 13.3x in a filter-focused stress benchmark. These are reported peak results; the excerpt does not provide broader workload details.

### Source excerpt

arXiv:2608.23307v2 Announce Type: replace Abstract: Nowadays, modern applications do more than just store text -- they need to derive meaningful insights from it. To do that, they usually rely on wildcard queries with LIKE predicate to extract patterns. However, modern database management systems (DBMSs) handle these wildcard operations poorly, resorting to nested loops for joins and expensive interpreted evaluation for filters. To address the former, we propose a new join algorithm based on the Aho-Corasick algorithm, which significantly reduces the time complexity. For wildcard filtering, we leverage the code-generation infrastructure to improve performance: we generate specialized code for the LIKE predicate, eliminating the overhead of interpreting the pattern per tuple. Our experimental results show that the new wildcard join algorithm significantly outperforms both baseline DuckDB and Umbra, achieving speedups of up to 30.6x and 114.75x, respectively. The new wildcard filter approach likewise outperforms both baselines, achieving a speedup of 13.3x in a filter-focused stress benchmark. We believe these two techniques will play key roles for high-performance text analytics in modern query engines.

## TREMOR: Template Matching for Large Seismic Data Collections

DevFeed: [TREMOR: Template Matching for Large Seismic Data Collections](<https://devfeed.tech/articles/tremor-template-matching-for-large-seismic-data-collections-113634.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.02534>)

Author: Manos Chatzakis, Rodrigo Flores-Allende, Mikael Freire, Yoann Cano, L\\'eonard Seydoux, Themis Palpanas

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Databases](<https://devfeed.tech/sources/arxiv-databases.md>)

Topics: [Distributed Systems & Parallel Computing](<https://devfeed.tech/topics/distributed-systems-parallel-computing.md>), [pattern matching](<https://devfeed.tech/topics/pattern-matching.md>), [big-data](<https://devfeed.tech/topics/big-data.md>)

Tags: [cs-db](<https://devfeed.tech/tags/cs-db.md>), [data](<https://devfeed.tech/tags/data.md>), [distributed](<https://devfeed.tech/tags/distributed.md>), [efficiently](<https://devfeed.tech/tags/efficiently.md>), [evaluation](<https://devfeed.tech/tags/evaluation.md>), [events](<https://devfeed.tech/tags/events.md>), [fft](<https://devfeed.tech/tags/fft.md>), [framework](<https://devfeed.tech/tags/framework.md>), [large](<https://devfeed.tech/tags/large.md>), [matching](<https://devfeed.tech/tags/matching.md>), [processing](<https://devfeed.tech/tags/processing.md>), [real-world](<https://devfeed.tech/tags/real-world.md>), [returning](<https://devfeed.tech/tags/returning.md>), [search](<https://devfeed.tech/tags/search.md>), [series](<https://devfeed.tech/tags/series.md>), [size](<https://devfeed.tech/tags/size.md>), [template](<https://devfeed.tech/tags/template.md>), [time](<https://devfeed.tech/tags/time.md>), [use-cases](<https://devfeed.tech/tags/use-cases.md>), [velocity](<https://devfeed.tech/tags/velocity.md>), [world](<https://devfeed.tech/tags/world.md>)

### AI overview

TREMOR is a distributed framework for matching template seismic events against large waveform collections that exceed a single machine's memory capacity. In two real-world use cases, the paper reports that it was up to 6.7x faster than the best competing method on each workload and up to 18x faster than the fastest distributed version of MASS, while returning the same exact results.

### Source excerpt

arXiv:2610.02534v2 Announce Type: replace Abstract: Seismic station networks continuously record the ground velocity at several locations on Earth in the form of waveform data series, which seismologists analyze to detect various kinds of geophysical events, including earthquakes. Then, template events are defined to search the seismic data collection for matching events. This is template matching, a fundamental task in seismology for various seismic analyses. However, template matching requires extensive processing time, especially for large seismic collections that exceed the memory capacity of a single machine. This poses a significant challenge in seismology, in particular with the increasing size of seismological datasets. In this paper, we introduce TREMOR, a distributed data series processing framework for template matching that efficiently handles large waveform collections. We apply TREMOR to two representative real-world seismic use cases. Through an extensive experimental evaluation, we demonstrate its efficiency, with TREMOR being up to 6.7x faster than the best competing method on each workload, and up to 18x faster than the fastest distributed version of MASS, an FFT-based method popular in seismology, while returning the same exact results.

## 100 Exercises to Learn Rust, Updated

DevFeed: [100 Exercises to Learn Rust, Updated](<https://devfeed.tech/articles/100-exercises-to-learn-rust-updated-58813.md>)

Original publisher: [Read original article](<https://blog.jetbrains.com/rust/2026/09/23/100-exercises-to-learn-rust/>)

Author: Daria Kolodzey

Published: 2026-09-23T12:25:01Z

Content type: tutorial

Language: en

Sources: [JetBrains](<https://devfeed.tech/sources/the-jetbrains-blog.md>)

Topics: [Rust](<https://devfeed.tech/topics/rust.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [rustrover](<https://devfeed.tech/topics/rustrover.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Error Handling](<https://devfeed.tech/topics/error-handling.md>), [ide](<https://devfeed.tech/topics/ide.md>), [REST API](<https://devfeed.tech/topics/rest-api.md>), [Collections](<https://devfeed.tech/topics/collections.md>), [pattern matching](<https://devfeed.tech/topics/pattern-matching.md>)

Tags: [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [course](<https://devfeed.tech/tags/course.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [error-handling](<https://devfeed.tech/tags/error-handling.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [jetbrains-academy](<https://devfeed.tech/tags/jetbrains-academy.md>), [learn](<https://devfeed.tech/tags/learn.md>), [learn-rust](<https://devfeed.tech/tags/learn-rust.md>), [learning-courses](<https://devfeed.tech/tags/learning-courses.md>), [lifetimes](<https://devfeed.tech/tags/lifetimes.md>), [pattern-matching](<https://devfeed.tech/tags/pattern-matching.md>), [plugin](<https://devfeed.tech/tags/plugin.md>), [programming](<https://devfeed.tech/tags/programming.md>), [programming-language](<https://devfeed.tech/tags/programming-language.md>), [rest-api](<https://devfeed.tech/tags/rest-api.md>), [rust](<https://devfeed.tech/tags/rust.md>), [rust-course](<https://devfeed.tech/tags/rust-course.md>), [rustrover](<https://devfeed.tech/tags/rustrover.md>)

### AI overview

JetBrains has updated its free JetBrains Academy course, 100 Exercises to Learn Rust. The exercise-based course uses a ticket management system to teach Rust concepts including ownership, borrowing, traits, pattern matching, error handling, collections, lifetimes, threads, channels, and futures. It runs inside RustRover with tests attached to each exercise.

### Source excerpt

100 Exercises to Learn Rust is our adaptation of Mainmatter's course of the same name, written by Luca Palmieri, Principal Engineering Consultant at Mainmatter, and it has just received its biggest update since we released it a year ago. Palmieri has been writing Rust since 2018, first at TrueLayer and then at AWS, and he [...]

## Automating Twilio Auth Token Detection and Rotation with TruffleHog, Tines, and Slack

DevFeed: [Automating Twilio Auth Token Detection and Rotation with TruffleHog, Tines, and Slack](<https://devfeed.tech/articles/automating-twilio-auth-token-detection-and-rotation-with-trufflehog-tines-and-slack-58821.md>)

Original publisher: [Read original article](<https://www.twilio.com/en-us/blog/developers/tutorials/building-blocks/automate-auth-token-detection-rotation-trufflehog-tines-slack>)

Author: Matt Coser

Published: 2026-09-21T00:00:00Z

Content type: tutorial

Language: en

Sources: [Twilio](<https://devfeed.tech/sources/twilio-blog.md>)

Topics: [Secret Scanning](<https://devfeed.tech/topics/secret-scanning.md>), [API keys](<https://devfeed.tech/topics/api-keys.md>), [Security](<https://devfeed.tech/topics/security.md>), [Incident response](<https://devfeed.tech/topics/incident-response.md>), [sensitive data](<https://devfeed.tech/topics/sensitive-data.md>), [Authentication](<https://devfeed.tech/topics/authentication.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [pattern matching](<https://devfeed.tech/topics/pattern-matching.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [api-keys](<https://devfeed.tech/tags/api-keys.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [cli](<https://devfeed.tech/tags/cli.md>), [developer-insights](<https://devfeed.tech/tags/developer-insights.md>), [github](<https://devfeed.tech/tags/github.md>), [pattern-matching](<https://devfeed.tech/tags/pattern-matching.md>), [rotation](<https://devfeed.tech/tags/rotation.md>), [secret-scanning](<https://devfeed.tech/tags/secret-scanning.md>), [secrets](<https://devfeed.tech/tags/secrets.md>), [slack](<https://devfeed.tech/tags/slack.md>), [twilio](<https://devfeed.tech/tags/twilio.md>)

### AI overview

A tutorial on using TruffleHog, Tines, and Slack to detect exposed Twilio authentication credentials, alert a team, and rotate compromised tokens. It covers secret scanning, pattern matching, live credential verification, and automated incident-response workflows.

### Source excerpt

Automate Twilio auth token detection and rotation with TruffleHog, Tines, and Slack to quickly secure exposed credentials.

## Waiting for PostgreSQL 19 - SQL Property Graph Queries (SQL/PGQ)

DevFeed: [Waiting for PostgreSQL 19 - SQL Property Graph Queries (SQL/PGQ)](<https://devfeed.tech/articles/waiting-for-postgresql-19-sql-property-graph-queries-sql-pgq-33693.md>)

Original publisher: [Read original article](<https://www.depesz.com/2026/07/31/waiting-for-postgresql-19-sql-property-graph-queries-sql-pgq/>)

Author: depesz

Published: 2026-07-31T16:57:44Z

Content type: opinion

Language: en

Sources: [select \* from depesz;](<https://devfeed.tech/sources/select-from-depesz.md>)

Topics: [PostgreSQL](<https://devfeed.tech/topics/postgresql.md>), [SQL](<https://devfeed.tech/topics/sql.md>), [Graphs](<https://devfeed.tech/topics/graphs.md>), [function](<https://devfeed.tech/topics/function.md>), [pattern matching](<https://devfeed.tech/topics/pattern-matching.md>)

Tags: [function](<https://devfeed.tech/tags/function.md>), [graph](<https://devfeed.tech/tags/graph.md>), [graphs](<https://devfeed.tech/tags/graphs.md>), [pattern-matching](<https://devfeed.tech/tags/pattern-matching.md>), [pg19](<https://devfeed.tech/tags/pg19.md>), [pgq](<https://devfeed.tech/tags/pgq.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [property](<https://devfeed.tech/tags/property.md>), [sql](<https://devfeed.tech/tags/sql.md>), [uncategorized](<https://devfeed.tech/tags/uncategorized.md>), [waiting](<https://devfeed.tech/tags/waiting.md>)

### AI overview

The article discusses PostgreSQL's SQL/PGQ implementation for property graph queries, including GRAPH_TABLE, graph pattern matching, and related DDL commands. It notes that the change was later rolled back and expresses the author's uncertainty about the practical benefits and usability of the syntax.

### Source excerpt

Important update This change has been rolled back. Discussion can be found here. On 16th of March 2026, Peter Eisentraut committed patch: SQL Property Graph Queries (SQL/PGQ) Implementation of SQL property graph queries, according to SQL/PGQ standard (ISO/IEC 9075-16:2023). This adds: - GRAPH_TABLE table function for graph pattern matching - DDL commands ... Continue reading "Waiting for PostgreSQL 19 - SQL Property Graph Queries (SQL/PGQ)"

## Guardrails with OPA Policies in Quarkus LangChain4j

DevFeed: [Guardrails with OPA Policies in Quarkus LangChain4j](<https://devfeed.tech/articles/guardrails-with-opa-policies-in-quarkus-langchain4j-43892.md>)

Original publisher: [Read original article](<https://quarkus.io/blog/quarkus-langchain4j-opa-guardrails/>)

Author: Fabio Burzigotti

Published: 2026-07-10T00:00:00Z

Content type: tutorial

Language: en

Sources: [Quarkus - Supersonic Subatomic Java](<https://devfeed.tech/sources/quarkus-supersonic-subatomic-java.md>)

Topics: [langchain4j](<https://devfeed.tech/topics/langchain4j.md>), [Open Policy Agent](<https://devfeed.tech/topics/open-policy-agent.md>), [Quarkus](<https://devfeed.tech/topics/quarkus.md>), [prompt injection](<https://devfeed.tech/topics/prompt-injection.md>), [pattern matching](<https://devfeed.tech/topics/pattern-matching.md>), [Security](<https://devfeed.tech/topics/security.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [rego](<https://devfeed.tech/topics/rego.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [decoupling](<https://devfeed.tech/topics/decoupling.md>), [WebAssembly](<https://devfeed.tech/topics/web-assembly.md>)

Tags: [input](<https://devfeed.tech/tags/input.md>), [langchain4j](<https://devfeed.tech/tags/langchain4j.md>), [opa](<https://devfeed.tech/tags/opa.md>), [pattern-matching](<https://devfeed.tech/tags/pattern-matching.md>), [policies](<https://devfeed.tech/tags/policies.md>), [prompt-injection](<https://devfeed.tech/tags/prompt-injection.md>), [quarkus](<https://devfeed.tech/tags/quarkus.md>), [rego](<https://devfeed.tech/tags/rego.md>), [security](<https://devfeed.tech/tags/security.md>)

### AI overview

This tutorial shows how to combine deterministic pattern matching with Open Policy Agent policies in Quarkus LangChain4j to implement input guardrails for detecting prompt injection attacks. It explains how externalized Rego policies can decouple security rules from application logic and how OPA WebAssembly evaluation can run in-process, with an LLM fallback for inconclusive cases.

### Source excerpt

Introduction As LLMs become integral to enterprise applications, securing the prompts they receive is critical. Quarkus LangChain4j is a Quarkus extension that allows users to integrate AI into applications, and the Quarkus LangChain4j Workshop is a good way to learn about and practice the fundamentals. Regarding security, Step 9 describes input guardrails, showcasing an example of how a separate LLM can be used to detect prompt injection attacks. However, this approach has costs, both in terms of tokens and performance. Deterministic pattern matching can catch obvious attacks faster, and delegating to the LLM becomes the last option, thus reducing the aforementioned effects. At the same time, Open Policy Agent can be used to define declarative policies that can be externalized. This post shows how to combine both approaches in Quarkus LangChain4j. Open Policy Agent (OPA) Pattern matching against a regex is straightforward, but the usual limitations apply: rules are subject to change rules are usually defined by someone who is not strictly an application developer rules should be defined independently of the application lifecycle. This is where Open Policy Agent comes to help. It provides a framework that streamlines policy management across application deployment technologies, resources and roles. In our specific use case, deterministic guardrails can be defined as OPA policies, decoupling them from the application logic, e.g.: package promptinjection import rego.v1 default pattern_score := 0.0 pattern_score := score if { input.text text_lower := lower(input.text) exact_patterns := [ {"pattern": "ignore previous", "weight": 1.0}, {"pattern": "disregard previous", "weight": 1.0}, {"pattern": "forget your instructions", "weight": 1.0}, {"pattern": "override your instructions", "weight": 1.0}, {"pattern": "ignore all prior", "weight": 1.0}, {"pattern": "new instructions", "weight": 0.95}, {"pattern": "reveal the secret", "weight": 0.95}, {"pattern": "system prompt", "

## What is AI SAST?

DevFeed: [What is AI SAST?](<https://devfeed.tech/articles/what-is-ai-sast-51683.md>)

Original publisher: [Read original article](<https://www.aikido.dev/blog/what-is-ai-sast>)

Author: Dania Durnas

Published: 2026-06-06T17:30:00Z

Content type: article

Language: en

Sources: [Aikido Security's Blog](<https://devfeed.tech/sources/aikido-security-s-blog.md>)

Topics: [Application Security](<https://devfeed.tech/topics/application-security.md>), [Static code analysis](<https://devfeed.tech/topics/static-code-analysis.md>), [Vulnerabilities](<https://devfeed.tech/topics/vulnerabilities.md>), [code analysis](<https://devfeed.tech/topics/code-analysis.md>), [Security](<https://devfeed.tech/topics/security.md>), [Code](<https://devfeed.tech/topics/code.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [business logic](<https://devfeed.tech/topics/business-logic.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [pattern matching](<https://devfeed.tech/topics/pattern-matching.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Code review](<https://devfeed.tech/topics/code-review.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [application-security](<https://devfeed.tech/tags/application-security.md>), [code-analysis](<https://devfeed.tech/tags/code-analysis.md>), [code-review](<https://devfeed.tech/tags/code-review.md>), [false-positive](<https://devfeed.tech/tags/false-positive.md>), [llms](<https://devfeed.tech/tags/llms.md>), [pattern-matching](<https://devfeed.tech/tags/pattern-matching.md>), [sast](<https://devfeed.tech/tags/sast.md>), [security-vulnerabilities](<https://devfeed.tech/tags/security-vulnerabilities.md>), [source-code](<https://devfeed.tech/tags/source-code.md>)

### AI overview

AI SAST applies AI reasoning to static application security testing. The article distinguishes AI-native SAST, which reasons directly over code to identify vulnerabilities, from AI-augmented SAST, which adds AI features to a traditional rules-based scanner.

### Source excerpt

AI SAST is emerging as a new SAST category, but the meaning is unclear. We clarify the difference between AI-native SAST and AI-assisted SAST, as well as how AI SAST sits in the stack between traditional SAST and AI pentesting. Category: DevSec Tools & Comparisons

## The Philosophy of Machine Learning, or: What Comes After Hegel?

DevFeed: [The Philosophy of Machine Learning, or: What Comes After Hegel?](<https://devfeed.tech/articles/the-philosophy-of-machine-learning-or-what-comes-after-hegel-40130.md>)

Original publisher: [Read original article](<https://korbonits.com/blog/2026-04-09-the-philosophy-of-machine-learning-or-what-comes-after-hegel/>)

Published: 2026-04-09T00:00:00Z

Content type: opinion

Language: en

Sources: [Alex Korbonits](<https://devfeed.tech/sources/alex-korbonits.md>)

Topics: [Automated reasoning](<https://devfeed.tech/topics/automated-reasoning.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Math and Logic](<https://devfeed.tech/topics/math-and-logic.md>), [pattern matching](<https://devfeed.tech/topics/pattern-matching.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [automated-reasoning](<https://devfeed.tech/tags/automated-reasoning.md>), [conditional-probability](<https://devfeed.tech/tags/conditional-probability.md>), [llms](<https://devfeed.tech/tags/llms.md>), [logic](<https://devfeed.tech/tags/logic.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [pattern-matching](<https://devfeed.tech/tags/pattern-matching.md>), [reasoning](<https://devfeed.tech/tags/reasoning.md>)

### AI overview

This opinion essay compares large language models with Kant's distinction between a priori structures and a posteriori experience. It argues that LLMs learn patterns from human text but lack reliable logical scaffolding, and presents automated reasoning systems such as SMT solvers and theorem provers as a possible complement.

### Source excerpt

A notebook entry that maps AI paradigms onto the history of Western philosophy -- from scholasticism to Hegel -- and asks what comes next when the current moment exhausts itself.

## Making foreach on an IEnumerable allocation-free using reflection and dynamic methods

DevFeed: [Making foreach on an IEnumerable allocation-free using reflection and dynamic methods](<https://devfeed.tech/articles/making-foreach-on-an-ienumerable-allocation-free-using-reflection-and-dynamic-methods-51481.md>)

Original publisher: [Read original article](<https://andrewlock.net/making-foreach-on-an-ienumerable-allocation-free-using-reflection-and-dynamic-methods/>)

Author: Andrew Lock

Published: 2026-01-20T10:00:00Z

Content type: tutorial

Language: en

Sources: [Andrew Lock | .NET Escapades](<https://devfeed.tech/sources/andrew-lock-net-escapades.md>)

Topics: [C#](<https://devfeed.tech/topics/csharp.md>), [.NET](<https://devfeed.tech/topics/net.md>), [Benchmark](<https://devfeed.tech/topics/benchmark.md>), [pattern matching](<https://devfeed.tech/topics/pattern-matching.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>)

Tags: [benchmark](<https://devfeed.tech/tags/benchmark.md>), [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [datadog](<https://devfeed.tech/tags/datadog.md>), [net](<https://devfeed.tech/tags/net.md>), [net-9](<https://devfeed.tech/tags/net-9.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [pattern-matching](<https://devfeed.tech/tags/pattern-matching.md>), [performance](<https://devfeed.tech/tags/performance.md>), [performance-net-core-datadog](<https://devfeed.tech/tags/performance-net-core-datadog.md>)

### AI overview

This post explains why foreach over an IEnumerable can allocate in C#, then demonstrates how reflection and DynamicMethod can eliminate that allocation. It examines compiler lowering, pattern-based enumeration, and benchmark results across .NET Framework and .NET 9.

### Source excerpt

In this post I describe why foreach sometimes allocates, and show how you can use DynamicMethod and Reflection.Emit to go allocation-free

## PHP in 2026

DevFeed: [PHP in 2026](<https://devfeed.tech/articles/php-in-2026-44194.md>)

Original publisher: [Read original article](<https://stitcher.io/blog/php-2026>)

Author: Brent

Published: 2026-01-12T00:00:00Z

Content type: article

Language: en

Sources: [Stitcher](<https://devfeed.tech/sources/stitcher-io.md>)

Topics: [PHP](<https://devfeed.tech/topics/php.md>), [pattern matching](<https://devfeed.tech/topics/pattern-matching.md>), [Closure](<https://devfeed.tech/topics/closure.md>), [Go Language](<https://devfeed.tech/topics/go-language.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [blog](<https://devfeed.tech/tags/blog.md>), [php](<https://devfeed.tech/tags/php.md>), [php-8-6](<https://devfeed.tech/tags/php-8-6.md>)

### AI overview

An overview of PHP developments expected in 2026, covering PHP 8.5 features, partial function application planned for PHP 8.6, a pattern matching RFC under discussion, and FrankenPHP's collaboration with the PHP Foundation.

### Source excerpt

Read the full post on https://stitcher.io/blog/php-2026

## Nice and Naughty Cases of Pattern Matching

DevFeed: [Nice and Naughty Cases of Pattern Matching](<https://devfeed.tech/articles/nice-and-naughty-cases-of-pattern-matching-23025.md>)

Original publisher: [Read original article](<https://www.javaadvent.com/2025/12/nice-and-naughty-cases-of-pattern-matching.html>)

Author: Cay Horstmann

Published: 2025-12-08T02:02:26Z

Content type: article

Language: en

Sources: [Java Advent Calendar](<https://devfeed.tech/sources/java-advent-calendar.md>)

Topics: [pattern matching](<https://devfeed.tech/topics/pattern-matching.md>), [exhaustive matching](<https://devfeed.tech/topics/exhaustive-matching.md>), [sealed interface](<https://devfeed.tech/topics/sealed-interface.md>)

Tags: [2025](<https://devfeed.tech/tags/2025.md>), [data](<https://devfeed.tech/tags/data.md>), [enum](<https://devfeed.tech/tags/enum.md>), [exhaustive](<https://devfeed.tech/tags/exhaustive.md>), [expression](<https://devfeed.tech/tags/expression.md>), [hierarchy](<https://devfeed.tech/tags/hierarchy.md>), [interface](<https://devfeed.tech/tags/interface.md>), [java](<https://devfeed.tech/tags/java.md>), [json](<https://devfeed.tech/tags/json.md>), [pattern-matching](<https://devfeed.tech/tags/pattern-matching.md>), [records](<https://devfeed.tech/tags/records.md>), [sealed](<https://devfeed.tech/tags/sealed.md>), [switch](<https://devfeed.tech/tags/switch.md>)

### AI overview

Java pattern matching is most useful when the data is modeled as a sealed hierarchy of interfaces and records; the excerpt says this style is worthwhile when it fits the problem domain. A JSON example represents leaves as records or finite enums and other types as sealed interfaces, then uses a switch expression with record and constant patterns. The switch is exhaustive, as switch expressions must cover every possible selector value. The excerpt introduces antipatterns and legacy switch corner cases but does not provide their details.

### Source excerpt

Since Java 14, the Java switch and instanceof statements have been enhanced, in multiple phases, to support pattern matching and a "data-oriented" programming style. In this article, I explore when this programming style is beneficial, and why. I look at the sweet spot of perfect pattern usage, absolute antipatterns where it should not be used, [...] The post Nice and Naughty Cases of Pattern Matching appeared first on JVM Advent.

## Bun v1.3.4

DevFeed: [Bun v1.3.4](<https://devfeed.tech/articles/bun-v1-3-4-49456.md>)

Original publisher: [Read original article](<https://bun.com/blog/bun-v1.3.4>)

Author: Jarred Sumner

Published: 2025-12-06T10:11:00Z

Content type: release

Language: en

Sources: [Bun](<https://devfeed.tech/sources/bun-com.md>)

Topics: [Bun](<https://devfeed.tech/topics/bun.md>), [Web APIs](<https://devfeed.tech/topics/web-apis.md>), [connection pool](<https://devfeed.tech/topics/connection-pool.md>), [pattern matching](<https://devfeed.tech/topics/pattern-matching.md>), [test](<https://devfeed.tech/topics/test.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>), [fetch](<https://devfeed.tech/topics/fetch.md>), [proxy](<https://devfeed.tech/topics/proxy.md>), [SQLite](<https://devfeed.tech/topics/sqlite.md>)

Tags: [blog](<https://devfeed.tech/tags/blog.md>), [bun](<https://devfeed.tech/tags/bun.md>), [compatibility](<https://devfeed.tech/tags/compatibility.md>), [connection-pooling](<https://devfeed.tech/tags/connection-pooling.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [fetch](<https://devfeed.tech/tags/fetch.md>), [proxy](<https://devfeed.tech/tags/proxy.md>), [sqlite](<https://devfeed.tech/tags/sqlite.md>), [test](<https://devfeed.tech/tags/test.md>), [v1](<https://devfeed.tech/tags/v1.md>), [web-apis](<https://devfeed.tech/tags/web-apis.md>)

### AI overview

Bun v1.3.4 is a release covering URLPattern support with declarative URL matching, fake timers in bun:test, custom proxy headers, connection-pooling fixes, standalone executable configuration changes, and additional compatibility and platform bug fixes.

### Source excerpt

Fixes 194 issues (addressing 412 👍). URLPattern API, Fake Timers for bun:test, Custom Proxy Headers in fetch(),console.log %j format, http.Agent connection pooling fix, Standalone executable config loading changes, SQLite 3.51.1, and numerous bugfixes for bun:test, Node.js compatibility, Windows, Web APIs, bun install, and more

## Linux / UNIX View Only Configuration File Directives ( Uncommented Lines of a Config File )

DevFeed: [Linux / UNIX View Only Configuration File Directives ( Uncommented Lines of a Config File )](<https://devfeed.tech/articles/linux-unix-view-only-configuration-file-directives-uncommented-lines-of-a-config-file-41947.md>)

Original publisher: [Read original article](<https://www.cyberciti.biz/faq/shell-display-uncommented-lines-only/>)

Author: Vivek Gite

Published: 2024-09-21T12:33:38Z

Content type: tutorial

Language: en

Sources: [nixCraft](<https://devfeed.tech/sources/nixcraft-linux-tips-hacks-tutorials-and-ideas-in-blog-format-rss-feed.md>)

Topics: [Linux](<https://devfeed.tech/topics/linux.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [Unix](<https://devfeed.tech/topics/unix.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [pattern matching](<https://devfeed.tech/topics/pattern-matching.md>), [POSIX](<https://devfeed.tech/topics/posix.md>), [processing](<https://devfeed.tech/topics/processing.md>), [screen](<https://devfeed.tech/topics/screen.md>), [nginx](<https://devfeed.tech/topics/nginx.md>)

Tags: [awk](<https://devfeed.tech/tags/awk.md>), [bash-shell](<https://devfeed.tech/tags/bash-shell.md>), [cli](<https://devfeed.tech/tags/cli.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [config](<https://devfeed.tech/tags/config.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [easy](<https://devfeed.tech/tags/easy.md>), [egrep-command](<https://devfeed.tech/tags/egrep-command.md>), [grep-command](<https://devfeed.tech/tags/grep-command.md>), [linux](<https://devfeed.tech/tags/linux.md>), [operating-systems](<https://devfeed.tech/tags/operating-systems.md>), [perl](<https://devfeed.tech/tags/perl.md>), [posix](<https://devfeed.tech/tags/posix.md>), [regex](<https://devfeed.tech/tags/regex.md>), [regular-expressions](<https://devfeed.tech/tags/regular-expressions.md>), [sed-command](<https://devfeed.tech/tags/sed-command.md>), [server](<https://devfeed.tech/tags/server.md>), [systems](<https://devfeed.tech/tags/systems.md>), [unix](<https://devfeed.tech/tags/unix.md>)

### AI overview

A tutorial on using grep, egrep, sed, awk, and Perl to display uncommented lines from Linux and Unix configuration files. It also covers removing blank lines, handling comments with whitespace, and viewing large files with pagers.

### Source excerpt

Most Linux and UNIX-like system configuration files are documented using comments, but sometimes I just need to see a line of configuration text in a config file. How can I view just the uncommented configuration file directives from squid.conf or httpd.conf file? How can I strip out comments and blank lines on a Linux or Unix-like system? Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit The post Linux / UNIX View Only Configuration File Directives ( Uncommented Lines of a Config File ) appeared first on nixCraft.

## Bean Machine Retrospective, part 9

DevFeed: [Bean Machine Retrospective, part 9](<https://devfeed.tech/articles/bean-machine-retrospective-part-9-38667.md>)

Original publisher: [Read original article](<https://ericlippert.com/2023/03/21/bean-machine-retrospective-part-9/>)

Author: ericlippert

Published: 2023-03-21T18:34:38Z

Content type: opinion

Language: en

Sources: [Eric Lippert](<https://devfeed.tech/sources/eric-lippert.md>)

Topics: [pattern matching](<https://devfeed.tech/topics/pattern-matching.md>), [Python](<https://devfeed.tech/topics/python.md>), [function](<https://devfeed.tech/topics/function.md>), [debugging](<https://devfeed.tech/topics/debugging.md>), [class](<https://devfeed.tech/topics/class.md>), [C#](<https://devfeed.tech/topics/csharp.md>), [F#](<https://devfeed.tech/topics/fsharp.md>), [Scala](<https://devfeed.tech/topics/scala.md>)

Tags: [debugging](<https://devfeed.tech/tags/debugging.md>), [function](<https://devfeed.tech/tags/function.md>), [object](<https://devfeed.tech/tags/object.md>), [pattern-matching](<https://devfeed.tech/tags/pattern-matching.md>), [python](<https://devfeed.tech/tags/python.md>), [uncategorized](<https://devfeed.tech/tags/uncategorized.md>)

### AI overview

This retrospective describes implementing concise pattern matching in Python, where patterns are represented as predicates and can return structured failure information for debugging. It also develops a type discipline and combinators for matching values, types, lists, and object attributes.

### Source excerpt

I wanted to implement concise "pattern matching" in Python, a language which unlike C#, F#, Scala, and so on, does not have any pattern matching built in. Logically a pattern is just a predicate: a function which takes a value ... Continue reading ->

## Exhaustive matching in TypeScript

DevFeed: [Exhaustive matching in TypeScript](<https://devfeed.tech/articles/exhaustive-matching-in-typescript-48191.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/exhaustive-matching-in-type-script>)

Published: 2020-08-09T00:00:00Z

Content type: article

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [TypeScript](<https://devfeed.tech/topics/typescript.md>), [exhaustive matching](<https://devfeed.tech/topics/exhaustive-matching.md>), [pattern matching](<https://devfeed.tech/topics/pattern-matching.md>), [Code](<https://devfeed.tech/topics/code.md>), [Front end](<https://devfeed.tech/topics/frontend.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>)

Tags: [compiler](<https://devfeed.tech/tags/compiler.md>), [exhaustive-matching](<https://devfeed.tech/tags/exhaustive-matching.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [pattern-matching](<https://devfeed.tech/tags/pattern-matching.md>), [typescript](<https://devfeed.tech/tags/typescript.md>)

### AI overview

This article explains exhaustive matching in TypeScript and how compiler checks can reveal unhandled states when developers add new branches or shapes. It contrasts exhaustive matching with default cases and discusses the risks of silently handling newly introduced states incorrectly.

### Source excerpt

Keep reading.

## PHP 8: match or switch?

DevFeed: [PHP 8: match or switch?](<https://devfeed.tech/articles/php-8-match-or-switch-44201.md>)

Original publisher: [Read original article](<https://stitcher.io/blog/php-8-match-or-switch>)

Author: Brent

Published: 2020-07-08T00:00:00Z

Content type: article

Language: en

Sources: [Stitcher](<https://devfeed.tech/sources/stitcher-io.md>)

Topics: [PHP](<https://devfeed.tech/topics/php.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [pattern matching](<https://devfeed.tech/topics/pattern-matching.md>), [type coercion](<https://devfeed.tech/topics/type-coercion.md>), [Exception](<https://devfeed.tech/topics/exception.md>)

Tags: [exceptions](<https://devfeed.tech/tags/exceptions.md>), [pattern-matching](<https://devfeed.tech/tags/pattern-matching.md>), [performance](<https://devfeed.tech/tags/performance.md>), [php](<https://devfeed.tech/tags/php.md>), [programming](<https://devfeed.tech/tags/programming.md>), [switch](<https://devfeed.tech/tags/switch.md>), [type-coercion](<https://devfeed.tech/tags/type-coercion.md>)

### AI overview

This article compares PHP 8's match expression with the switch statement. It explains match's expression-based syntax, strict type checks, returned values, error behavior for unmatched values, condition grouping, performance considerations, throw expressions, and the possibility of future pattern matching.

### Source excerpt

Read the full post on https://stitcher.io/blog/php-8-match-or-switch

## Building a new MySQL adapter for Ecto, Part II: Encoding/Decoding

DevFeed: [Building a new MySQL adapter for Ecto, Part II: Encoding/Decoding](<https://devfeed.tech/articles/building-a-new-mysql-adapter-for-ecto-part-ii-encoding-decoding-43988.md>)

Original publisher: [Read original article](<https://dashbit.co/blog/building-a-new-mysql-adapter-for-ecto-part-ii-encoding-decoding>)

Author: Wojtek Mach

Published: 2018-12-03T00:00:00Z

Content type: tutorial

Language: en

Sources: [Dashbit Blog](<https://devfeed.tech/sources/dashbit-blog.md>)

Topics: [MySQL](<https://devfeed.tech/topics/mysql.md>), [Decoding](<https://devfeed.tech/topics/decoding.md>), [Encoding](<https://devfeed.tech/topics/encoding.md>), [Elixir](<https://devfeed.tech/topics/elixir.md>), [protocols](<https://devfeed.tech/topics/protocols.md>), [function](<https://devfeed.tech/topics/function.md>), [pattern matching](<https://devfeed.tech/topics/pattern-matching.md>)

Tags: [decoding](<https://devfeed.tech/tags/decoding.md>), [ecto](<https://devfeed.tech/tags/ecto.md>), [elixir](<https://devfeed.tech/tags/elixir.md>), [encoding](<https://devfeed.tech/tags/encoding.md>), [function](<https://devfeed.tech/tags/function.md>), [mysql](<https://devfeed.tech/tags/mysql.md>), [myxql](<https://devfeed.tech/tags/myxql.md>), [pattern-matching](<https://devfeed.tech/tags/pattern-matching.md>), [protocols](<https://devfeed.tech/tags/protocols.md>)

### AI overview

This tutorial explains how to encode and decode MySQL basic types and higher-level packets in an Ecto adapter. It covers fixed-length and length-encoded integers, binary pattern matching, protocol design, and Elixir macros.

### Source excerpt

In this post we look into encoding/decoding MySQL basic types, bit flags, and higher-level packets.

## PostgreSQL Data Types: Text Processing

DevFeed: [PostgreSQL Data Types: Text Processing](<https://devfeed.tech/articles/postgresql-data-types-text-processing-34594.md>)

Original publisher: [Read original article](<https://tapoueh.org/blog/2018/04/postgresql-data-types-text-processing/>)

Author: Dimitri Fontaine PostgreSQL Major Contributor; Author

Published: 2018-04-11T21:15:42Z

Content type: tutorial

Language: en

Sources: [Dimitri Fontaine](<https://devfeed.tech/sources/dimitri-fontaine.md>)

Topics: [PostgreSQL](<https://devfeed.tech/topics/postgresql.md>), [Regular expression](<https://devfeed.tech/topics/regular-expression.md>), [pattern matching](<https://devfeed.tech/topics/pattern-matching.md>), [CSV](<https://devfeed.tech/topics/csv.md>)

Tags: [csv](<https://devfeed.tech/tags/csv.md>), [dataset](<https://devfeed.tech/tags/dataset.md>), [functions](<https://devfeed.tech/tags/functions.md>), [pattern-matching](<https://devfeed.tech/tags/pattern-matching.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [processing](<https://devfeed.tech/tags/processing.md>), [regexp](<https://devfeed.tech/tags/regexp.md>), [regular](<https://devfeed.tech/tags/regular.md>), [text](<https://devfeed.tech/tags/text.md>)

### AI overview

This tutorial introduces PostgreSQL text-processing functions and operators, including string functions, aggregates, regular expressions, and regexp_split_to_table(). It also discusses text and varchar data types and demonstrates processing comma-separated and hierarchical values in a CSV dataset.

### Source excerpt

Continuing our series of PostgreSQL Data Types today we're going to introduce some of the PostgreSQL text processing functions. There's a very rich set of PostgreSQL functions to process text -- you can find them all in the string functions and operators documentation chapter -- with functions such as overlay(), substring(), position() or trim(). Or aggregates such as string_agg(). There are also regular expression functions, including the very powerful regexp_split_to_table(). In this article we see practical example putting them in practice.

## Git LFS 2.4.0 released

DevFeed: [Git LFS 2.4.0 released](<https://devfeed.tech/articles/git-lfs-2-4-0-released-69315.md>)

Original publisher: [Read original article](<https://github.blog/news-insights/the-library/git-lfs-2-4-0-released/>)

Author: Taylor Blau

Published: 2018-03-03T00:46:08Z

Content type: release

Language: en

Sources: [GitHub Blog](<https://devfeed.tech/sources/github-engineering.md>)

Topics: [Git](<https://devfeed.tech/topics/git.md>), [versioning](<https://devfeed.tech/topics/versioning.md>), [pattern matching](<https://devfeed.tech/topics/pattern-matching.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [authentication](<https://devfeed.tech/tags/authentication.md>), [bug-fixes](<https://devfeed.tech/tags/bug-fixes.md>), [git](<https://devfeed.tech/tags/git.md>), [git-lfs](<https://devfeed.tech/tags/git-lfs.md>), [large](<https://devfeed.tech/tags/large.md>), [linux](<https://devfeed.tech/tags/linux.md>), [matching](<https://devfeed.tech/tags/matching.md>), [memory](<https://devfeed.tech/tags/memory.md>), [news-insights](<https://devfeed.tech/tags/news-insights.md>), [ntlm](<https://devfeed.tech/tags/ntlm.md>), [the-library](<https://devfeed.tech/tags/the-library.md>), [version](<https://devfeed.tech/tags/version.md>)

### AI overview

Git LFS 2.4.0 introduces a rewritten pattern matching engine with support for character ranges and classes, unified progress meters, clearer transfer rates, and API changes. The release also includes additional commands and flags, broader Linux support, NTLM SSPI authentication on Windows, and fixes for memory alignment issues on 32-bit architectures.

### Source excerpt

A new version of Git LFS, the open source Git extension for versioning large files, is now available. Git LFS v2.4.0 comes with a rewrite of the underlying pattern matching...

## Writing assertive code with Elixir

DevFeed: [Writing assertive code with Elixir](<https://devfeed.tech/articles/writing-assertive-code-with-elixir-44039.md>)

Original publisher: [Read original article](<https://dashbit.co/blog/writing-assertive-code-with-elixir>)

Author: José Valim

Published: 2014-09-24T00:00:00Z

Content type: article

Language: en

Sources: [Dashbit Blog](<https://devfeed.tech/sources/dashbit-blog.md>)

Topics: [Elixir](<https://devfeed.tech/topics/elixir.md>), [pattern matching](<https://devfeed.tech/topics/pattern-matching.md>), [Polymorphism](<https://devfeed.tech/topics/polymorphism.md>), [protocols](<https://devfeed.tech/topics/protocols.md>), [Code](<https://devfeed.tech/topics/code.md>), [data type](<https://devfeed.tech/topics/data-type.md>)

Tags: [assertive-code](<https://devfeed.tech/tags/assertive-code.md>), [code](<https://devfeed.tech/tags/code.md>), [data-type](<https://devfeed.tech/tags/data-type.md>), [developers](<https://devfeed.tech/tags/developers.md>), [elixir](<https://devfeed.tech/tags/elixir.md>), [functional](<https://devfeed.tech/tags/functional.md>), [pattern-matching](<https://devfeed.tech/tags/pattern-matching.md>), [polymorphism](<https://devfeed.tech/tags/polymorphism.md>), [protocols](<https://devfeed.tech/tags/protocols.md>)

### AI overview

A discussion of assertive Elixir programming that identifies anti-patterns and shows how pattern matching and explicit protocols can reduce accidental complexity and clarify how code handles unexpected inputs and data types.

### Source excerpt

Functional languages are typically great languages for writing assertive code and Elixir is no exception.

## Seven Languages in Seven Weeks: Erlang

DevFeed: [Seven Languages in Seven Weeks: Erlang](<https://devfeed.tech/articles/seven-languages-in-seven-weeks-erlang-37840.md>)

Original publisher: [Read original article](<https://carlosbecker.com/posts/seven-languages-in-seven-weeks-erlang/>)

Author: Carlos Alexandro Becker

Published: 2012-12-18T00:00:00Z

Content type: tutorial

Language: en

Sources: [Carlos Becker](<https://devfeed.tech/sources/carlos-becker.md>)

Topics: [Erlang](<https://devfeed.tech/topics/erlang.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [function](<https://devfeed.tech/topics/function.md>), [pattern matching](<https://devfeed.tech/topics/pattern-matching.md>), [Process](<https://devfeed.tech/topics/process.md>)

Tags: [concurrency](<https://devfeed.tech/tags/concurrency.md>), [erlang](<https://devfeed.tech/tags/erlang.md>), [function](<https://devfeed.tech/tags/function.md>), [pattern-matching](<https://devfeed.tech/tags/pattern-matching.md>), [process](<https://devfeed.tech/tags/process.md>), [recursion](<https://devfeed.tech/tags/recursion.md>)

### AI overview

A beginner documents working through Erlang exercises from "Seven Languages in Seven Weeks," covering recursion, pattern matching, list comprehensions, regular expressions, concurrency, process monitoring, and process restarts. The author notes that some solutions may contain errors while learning the language.

### Source excerpt

So, I just bought "Seven Languages in Seven Weeks". I've read the Ruby chapter, not a big deal at all, so I skipped it. I also skip Io, Prolog and Scala (for now), and then, fall in Erlang!

## One Thing I Learned From F# (Nulls Are Bad)

DevFeed: [One Thing I Learned From F# (Nulls Are Bad)](<https://devfeed.tech/articles/one-thing-i-learned-from-f-nulls-are-bad-33390.md>)

Original publisher: [Read original article](<https://timkellogg.me/blog/2012/02/29/one-thing-i-learned-from-f-nulls-are>)

Published: 2012-02-29T00:00:00Z

Content type: opinion

Language: en

Sources: [Tim Kellogg](<https://devfeed.tech/sources/tim-kellogg.md>)

Topics: [F#](<https://devfeed.tech/topics/fsharp.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [C#](<https://devfeed.tech/topics/csharp.md>), [Exception](<https://devfeed.tech/topics/exception.md>), [pattern matching](<https://devfeed.tech/topics/pattern-matching.md>), [Haskell](<https://devfeed.tech/topics/haskell.md>), [OCaml](<https://devfeed.tech/topics/ocaml.md>)

Tags: [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [exceptions](<https://devfeed.tech/tags/exceptions.md>), [f-sharp](<https://devfeed.tech/tags/f-sharp.md>), [functional](<https://devfeed.tech/tags/functional.md>), [pattern-matching](<https://devfeed.tech/tags/pattern-matching.md>), [programming](<https://devfeed.tech/tags/programming.md>)

### AI overview

The author reflects on learning F# while contributing to VsVim, highlighting pattern matching, discriminated unions, and F#'s option types. The article argues that using None and Some instead of null can make invalid states explicit and reduce null-related bugs.

### Source excerpt

Recently I started contributing to VsVim, a Visual Studio plugin that emulates Vim. When he was starting the project, Jared Parsons decided to write the bulk of it in F#. He did this mostly as a chance to learn a new language but also because it's a solid first class alternative to C#. For instance, F#'s features like pattern matching and discriminated unions are a natural fit for state machines like Vim.This is my first experience with a truly functional language. For those who aren't familiar with F#, it's essentially OCaml.NET (the F# book uses OCaml for it's markup syntax), but also draws roots from Haskell. It's a big mind shift from imperative and pure object oriented languages, but one I'd definitely recommend to any developer who wants to be better.Since I've been working on VsVim, I've been using F# in my spare time but C# in my regular day job. The longer I use F# the more I want C# to do what F# does. The biggest example is how F# handles nulls.In C# (and Ruby, Python, and any imperative language) most values can be null, and null is a natural state for a variable to be in. In fact (partly due to SQL), null is used whenever a value is empty or doesn't exist yet. In C# and Java, null is the default value for any member reference, you don't even need to explicitly initialize it. As a result, you often end up with a lot of null pointer exceptions due to sloppy programming. After all, it's kind of hard to remember to check for null every time you use a variable.In F#, nothing is null (that's not entirely true, but in it's natural state it's true enough). Typically you'll use options instead of null. For instance, if you have a function that fails to find or calculate something you might return null in imperative languages (and the actual value if successful). However, in F# you use an option type and return None on failure and Some value on success.Here, every time you call find(kittens) you get back an option type. This type isn't a string, so you can't just