Open in app

Sign In

Write

Sign In

Kadir Malak
Kadir Malak

74 Followers

Home

About

Nov 28, 2021

Interactive OpenGL development with Clojure and LWJGL

In this article, we’ll create an interactive graphics development environment, which will have direct access to low level APIs, and at the same time, benefit from Clojure’s excellent REPL driven development and ecosystem. Clojure: Clojure is a dynamic, general-purpose programming language, combining the approachability and interactive development of a scripting…

Clojure

2 min read

Interactive OpenGL development with Clojure and LWJGL
Interactive OpenGL development with Clojure and LWJGL
Clojure

2 min read


Apr 4, 2020

An Attempt to Pipe / Chain Functions in Python

One of the things I frequently do while writing code (especially in Jupyter notebooks) is pipe-lining several functions, without needing intermediate values. I don’t want to use the same identifier, as I want the code to be called many times without the side effects. # not OK: # df may…

Python

3 min read

An Attempt to Pipe / Chain Functions in Python
An Attempt to Pipe / Chain Functions in Python
Python

3 min read


Dec 28, 2019

Currying in Scala: A Useful Example

Currying is the process of taking a function that accepts N arguments and turning it into a function that accepts N-K (N minus K) arguments, missing K arguments are fixed in the resulting function. It’s named after Haskell Curry. Basic example: Scala has a separate syntax to ease currying…

Functional Programming

2 min read

Currying in Scala: A Useful Example
Currying in Scala: A Useful Example
Functional Programming

2 min read


Oct 18, 2019

On Naming Variables…

I used to think that variable names must be as long as possible to be expressive as much as possible. I’m beginning to realize that this thought has a flaw in it: more length does not always mean more meaning. And also I used to stick to a naming convention…

Programming

2 min read

On Naming Variables…
On Naming Variables…
Programming

2 min read


Dec 9, 2018

Implementing “for” as a list comprehension in Python (using graph and generator)

Recently I needed something like Clojure’s “for” in Python while trying to implement grid search for hyper parameter optimization. I couldn’t find something similar and I wanted to implement myself. Basically I wanted something like below, but of course with varying number of loops: If we build a graph using those lists, the desired output is all the possible ways down to the bottom. Here is a simple graph (or tree) node implementation:

Programming

1 min read

Implementing “for” as a list comprehension in Python (using graph and generator)
Implementing “for” as a list comprehension in Python (using graph and generator)
Programming

1 min read


Apr 26, 2018

Compile Arbitrary Scala Code at Runtime Using Reflection (with variable injection)

Suppose that you’re writing a configuration file, and you need some kind of computation in it. If you were to use a scripting language, it would be fairly straightforward: just use a source file as configuration file and import. …

Scala

2 min read

Compile Arbitrary Scala Code at Runtime Using Reflection (with variable injection)
Compile Arbitrary Scala Code at Runtime Using Reflection (with variable injection)
Scala

2 min read


Mar 4, 2018

Interactive Processing Development with Clojure REPL in IntelliJ IDEA

As I’m currently learning Clojure, trying to convert Processing examples into Clojure code, I thought that it would be nice to leverage Clojure’s REPL (Read-Eval-Print-Loop) to interact with the running app. Dynamically changing the runtime behavior — especially in such interactive programs — is a big plus. By the way… …

Clojure

5 min read

Interactive Processing Development with Clojure REPL in IntelliJ IDEA
Interactive Processing Development with Clojure REPL in IntelliJ IDEA
Clojure

5 min read

Kadir Malak

Kadir Malak

74 Followers
Following
  • Emma Boudreau

    Emma Boudreau

  • Berk Orbay

    Berk Orbay

  • Deniz Karabacak

    Deniz Karabacak

  • Orhan Sönmez

    Orhan Sönmez

  • Deniz Adalar

    Deniz Adalar

See all (15)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams