JJUG CCC 2025 Spring における講演の資料です。 メタプログラミングの解説資料になっています。 https://jjug-ccc-2025-spring.sessionize.com/session/844779 # URL YouTube: https://www…
タグ検索の該当結果が少ないため、タイトル検索結果を表示しています。
Typeclass metaprogramming is a powerful technique available to Haskell programmers to automatically generate term-level code from static type information. It has been used to great effect in several popular Haskell libraries (such as the servant ecosystem), and it is the core mechanism used to implement generic programming via GHC generics. Despite this, remarkably little material exists that expl
I knew Zig supported some sort of reflection on types. But I had been confused about how to use it. What's the difference between @typeInfo and @TypeOf? I ignored this aspect of Zig until a problem came up at work where reflection made sense. The situation was parsing and storing parsed fields in a struct. Each field name that is parsed should match up to a struct field. This is a fairly common pr
More information on the syntax and semantics of decorators (optional section) # (This section is optional. If you skip it, you can still understand the remaining content.) The syntax of decorator expressions # A decorator expression starts with a chain of one or more identifiers, separated by dots. Each identifier except the first one can be private (prefix #). Square brackets [] are not allowed
18.1 Overview 18.2 Programming versus metaprogramming 18.2.1 Kinds of metaprogramming 18.3 Proxies explained 18.3.1 An example 18.3.2 Function-specific traps 18.3.3 Intercepting method calls 18.3.4 Revocable Proxies 18.3.5 Proxies as prototypes 18.3.6 Forwarding intercepted operations 18.3.7 Pitfall: not all objects can be wrapped transparently by Proxies 18.4 Use cases for Proxies 18.4.1 Tracing
While I've written a lot about Zig, I've avoided talking about Zig's meta programming capabilities which, in Zig, generally falls under the "comptime" umbrella. The idea behind "comptime" is to allow Zig code to be run at compile time in order to generate code. It's often said that an advantage of Zig's comptime is that it's just Zig code, as opposed to a separate, often limited, language as seen
Dev BlogsC++ Team BlogBuild Throughput Series: More Efficient Template Metaprogramming In the previous blog post I shared how template specialization and template instantiation are processed in the MSVC compiler. We will now look at some examples from real-world code bases to show some ways to reduce the number of them. Example 1 This example is extracted from our own MSVC compiler code base. The
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く