Filter
Exclude
Time range
-
Near
GPU #LLM inference on Apple Silicon: a single #Java 25 executable JAR, zero dependencies. Binds Metal-enabled libllama.dylib through the Foreign Function & Memory API. Runs Mistral and Gemma GGUF models locally. - Anthropic-compatible /v1/messages - OpenAI-compatible /v1/chat/completions - Embeddable via ServiceLoader<BinaryOperator<String>> - No Python, no Ollama, no container github.com/AdamBien/lightmet… via @AdamBien
2
19
859
Just released: lightmetal GPU LLM inference on Apple Silicon: a single Java 25 executable JAR, zero dependencies. Binds Metal-enabled libllama.dylib through the Foreign Function & Memory API. Runs Mistral and Gemma GGUF models locally. - Anthropic-compatible /v1/messages - OpenAI-compatible /v1/chat/completions - Embeddable via ServiceLoader<BinaryOperator<String>> - No Python, no Ollama, no container 👉 github.com/AdamBien/lightmet… #Java #LLM #AppleSilicon #bce #airhacks
2
3
30
2,515
Apr 10
It's AST has the same shape as ZIG's AST, full data oriented design style. ```zig pub const BinaryExpression = struct { /// Expression left: NodeIndex, /// Expression right: NodeIndex, operator: BinaryOperator, };``` Oxc could've went this way bug I decided not to because we need to build tooling on top of the AST, Rust APIs that require to work with this AST shape can be really hard to work with. e.g to get the name of identifier, from its source code: ```zig const name = ctx.tree.getString(id.name); ``` to get the span: ```zig ctx.tree.getSpan(node_index) ``` Not gonna trade perf at this point.

3
13
384
Replying to @kaytchjam @tsoding
"AddLike" should be called "Operator" - no need to use it only for adding. Then derive a "BinaryOperator"...
5
224
ArrowもBinaryOperatorとして扱ったほうがいいかも〜?
3
164
16 Jan 2025
Explain the use of the BinaryOperator<T> interface. When would you choose BinaryOperator over BiFunction?
1
8
845
13 Nov 2024
Explain the use of the BinaryOperator<T> interface. When would you choose BinaryOperator over BiFunction? Read “FIVE Java 8 Interview Questions for Experienced Java Developers“ by SumitM on Medium: sumitmm.medium.com/java-8-br…
12
1,199
27 Oct 2024
Explain the use of the BinaryOperator<T> interface. When would you choose BinaryOperator over BiFunction?
1
35
4,011
Can you swap two values of arbitrary object type in #Java using a single expression? Say, you have String a = "hello"; String b = "world"; I can imagine two approaches. Java 8: a = ((BinaryOperator<String>)(t, __) -> t).apply(b, b = a); Java 21: a = b instanceof String t && (b = a) == a ? t : null; Any better ideas?
14
2
18
5,105
19 Sep 2024
When would you choose BinaryOperator over BiFunction?
1
6
1,421
3. reduce: The reduce method is used to reduce the elements of a stream to a single value. The reduce method takes a BinaryOperator as a parameter. List number = Arrays.asList(2,3,4,5); int even = number. stream().filter(x->x%2==0). reduce(0,(ans,i)-> ans i); #Java8 #Java
2
42
16 Aug 2023
BinaryOperatorの戻り値はOptional
2
97
#JavaGold 関数型インタフェース ・UnaryOperator 引数と戻値がそれぞれ同じ型 Functionを拡張 ・BinaryOperator 引数2つと戻値がそれぞれ同じ型 BiFunctionを拡張 #エンジニアと繋がりたい
3
154
Replying to @alioksuzdev
Mantıklı, polymorphism kullanarak client kodundaki if-else yapısını elimine etmişsin. Ben de daha değişik bir yöntem kullandım, sırf deneek adına. Burada basit olsun diye IntBinaryOperator kullandım. BinaryOperator<T> şeklinde de tipten bağımsız yapılabilir.
4
22
Now Playing Binary Operator - Dial Your Operator #binaryoperator
1
La interface funcional Reduce requiere un BinaryOperator, requiere el tipo de dato del stream y dos argumentos, el primero (sub) es el resultado de las operaciones y el segundo (elem) es el valor actual a ejecutar la operación. #Java
1
1
3
30 Apr 2022
2
31 Mar 2022
java.util.stream.Stream の reduce が BiFunction じゃなくて BinaryOperator を取ることに「ん?」ってなる実績を解除した。 docs.oracle.com/en/java/java…

1
2
Day 36 of #100DaysOfCode: #Java topics covered: ➜ map() & reduce() methods from Stream interface ➜ apply() method from Function interface ➜ apply() method from BinaryOperator interface
1
9