Moe Hamann

218 posts

Moe Hamann banner
Moe Hamann

Moe Hamann

@moritzhamann

Engineering Manager at Bloomberg LP. Opinions are my own.

가입일 Şubat 2015
128 팔로잉37 팔로워
Moe Hamann
Moe Hamann@moritzhamann·
ok lol. I was enjoying a bit of recreational Odin programming and thought to myself: would be cool if it had some automatic memory management for places where you don't care for performance. 50 lines later we've integrated hboehm.info/gc/gcinterface… as a custom allocator 😅
English
0
0
0
27
Moe Hamann
Moe Hamann@moritzhamann·
@TheGingerBill Is there a way in Odin to make this work with cases which have the same type but mean something different? I.e. type aliasas or similar?
English
0
0
1
546
gingerBill
gingerBill@TheGingerBill·
There are also different families of tagged unions too: C (manual, a struct with all zero offsets) Pascal (field name based) ALGOL (type based) ML (merges enumerations with named types, usually tuples) What annoys me is when people go the ML-style is the only "true" one.
Jonathan Blow@Jonathan_Blow

Usually when kids say “sum type” they mean “automatic syntactic sugar that unwraps a union based on a tag,” but note that this has very little to do with the actual type or how it is represented! (And ML had this feature since the 1980s, and was not the first to do it.)

English
7
5
160
18.7K
Moe Hamann
Moe Hamann@moritzhamann·
@mitchellh The fix. Just updated to 1.1.1 and my Neovim stopped working for CTRL keys. I don't think I've ever changed my keyboard layout
English
11
0
1
109
Mitchell Hashimoto
Mitchell Hashimoto@mitchellh·
@moritzhamann The fix or the original issue? The original issue yes maybe. The fix… I haven’t heard.
English
1
0
0
201
Mitchell Hashimoto
Mitchell Hashimoto@mitchellh·
Ghostty 1.1.1 is out. Mostly focused on critical issues from 1.1.0, but a few highlights: SSD for X11, huge improvements for Metal rendering on Intel GPUs specifically, continued improvement for various keyboard layouts. ghostty.org/docs/install/r…
Mitchell Hashimoto tweet media
English
3
4
102
8.6K
Moe Hamann
Moe Hamann@moritzhamann·
@teej_dv Did you push this already? I'm trying implement my first derive ppx arm and would love to get some pointers
English
1
0
0
442
teej dv 🔭
teej dv 🔭@teej_dv·
So I've been working on an OCaml library that lets you generate CRUD operations type safely, and made a lot of good progress (with a new backend) today. If you start with a record with a primary key, and a few fields like this: You then get all of these functions generated for free! Notice that to insert, the labelled arguments are created for exactly the fields that are in the record. You can also update with newer versions of the record. Reading, deleting are also supported of course :)
teej dv 🔭 tweet mediateej dv 🔭 tweet media
English
10
12
182
22.3K
Moe Hamann
Moe Hamann@moritzhamann·
Ah, my child, OCaml is the divine language, the rest, they are but mere whispers in the wind of mediocrity.
English
0
0
1
104
Moe Hamann 리트윗함
Bartosz Sypytkowski
Bartosz Sypytkowski@Horusiath·
@0omari0 Since React was released, .NET has seen 4 different UI frameworks, 2 of which (Xamarin and WinUI) have been discontinued.
English
0
1
1
90
Moe Hamann
Moe Hamann@moritzhamann·
@ChShersh What would be better in that case? Array? The thing I'm wondering is if the implementation of the merge sort would still look that elegant though.
English
1
0
1
150
Abhishek🌱
Abhishek🌱@Abhishekcur·
>Linux is C >Git is C >Python interpreter (CPython) is C >Ruby interpreter (MRI) is C >PostgreSQL is C >SQLite is C >Redis is C >MySQL is C++ >MongoDB is C++ >Unreal Engine is C++ >Chrome is C++ >Firefox is C++ >Windows kernel is C >macOS kernel (XNU) is C >Photoshop is C++ >VMware is C++ >TensorFlow (Core) is C++ -still, you are not convinced to learn C and C++
English
624
1.2K
11.6K
752.8K
Moe Hamann 리트윗함
Neovim, e/plugins
Neovim, e/plugins@Neovim·
Nvim 0.11 supports LSP-driven text folding ("textDocument/foldingRange" in LSP spec). :set foldmethod=expr :set foldexpr=v:lua.vim.lsp.foldexpr() github.com/neovim/neovim/…
English
4
28
215
9.4K
stochasm
stochasm@stochasticchasm·
@moritzhamann I quite like this idea, probably has a ton of parsing and such
English
1
0
1
59
stochasm
stochasm@stochasticchasm·
Does anyone know a good codebase/repo I can check out to get a feel of how OCaml is used in real life
English
8
2
30
2.8K
aron
aron@Aron_Adler·
I need someone to write a PPX for OCaml that looks in your project for modules of pattern `Day{1..25}` and runs functions `part1 ()` and `part2 ()` for each of them, whilst not throwing errors for any days and parts that haven't been implemented yet
English
4
1
6
815
Moe Hamann 리트윗함
Eric Wastl
Eric Wastl@ericwastl·
This was my tenth(!) year building 25 days of puzzles for #AdventOfCode. You can solve them all for free and in whatever programming language you like. I hope they help people become better programmers. 🌟 The first puzzle comes out in two hours: adventofcode.com
English
36
209
1.8K
62.8K
Moe Hamann 리트윗함
aron
aron@Aron_Adler·
alright so once again pls cos this shit is confusing: if i want to make an ocaml project what do i need: - opam: why? downloading packages? - dune: compiler? do i install dune directly or via opam? - melange: alternative compiler? or do i need dune also still? - anything else?
English
11
4
29
4.2K
Moe Hamann
Moe Hamann@moritzhamann·
This being said, it's in the context of distributed system, which often have a focus on the design of service APIs and their interactions. The more monolithic a system becomes, the more focus is on the design between software components, where language feat can have an impact.
English
0
0
0
21
Moe Hamann
Moe Hamann@moritzhamann·
Spend the week discussing the design of a new platform at work. The choice of programming language didn't come up once. Compared with the problems on data consistency between 30+ teams as well as their ease of onboarding, the value between different languages is often negligible
English
1
0
0
31