Posts With Tag: Code

Generating Primes that Fit in 32 Bits

And as fast as possible!

After reading this post on HackerNews, I also decided to see how efficient of a code I could write that would compute some result of all primes that fit in 32 bits. I actually thought of doing it for 64 bits at first, since that would have been really interesting, but I soon found out that there might be a bit too many primes at that size.

Lambda Calculus in TypeScript Types

Implementing lambda calculus ONLY in TypeScript types.

After watching this video from Truttle1 about things you can do in TypeScript’s type system, I’ve decided to do my own by implementing the basic Lambda Calculus interpreter.

Generative Art and Puzzle

An interesting puzzle for my D&D campaign.

Here’s an interesting puzzle I used in my D&D campaign’s final session. The puzzle and the code to generate it is attributed to @usuyus. If you know him, you know him; if you don’t… You should meet him!

Building a Trading System, First Steps

General considerations for creating a trading system and simple structure for a limit order book.

In an high-frequency trading environment, we need to have a trading system which provides interfaces for receiving data and interacting with the market for our trading models (the mathematical or algorithmic logic that analyses data and decides how to trade). One really important thing to first consider in our trading system is to separate it from our trading models. If our trading system is coupled with our trading models, it can become a nightmare situation to modify model behaviour or to add new, fundamentally different models as the time it will take to implement them will be too much.

KCL D&D App

A digital companion for the KCL D&D Society.

This application serves as an organisational tool to enhance the users’ experience, providing features for character management, party organisation, campaign tracking, and achievement systems.

The Simulation

A dynamic ecosystem that you can use to study predator-prey-plant interactions.

This project integrates multiple components to create a dynamic ecosystem that a researcher can use to study predator-prey-plant interactions, with the ability to add or remove any species or environmental factors easily by editing the JSON file.

Java and Education

Some thoughts on Java and how important good education and a good teacher is.

I had never properly learned how OOP worked or how the ideas behind it contributed to good code. I had never written humongous coding projects until recently (thanks to me being a competitive programmer). And in my head, I had this idea of Java is bad, and since Java == OOP, I was begrudging against this year’s module on Java—more preciely, programming practices and applications.

Obsidian as CMS

Using Obsidian as a CMS for this blog.

I’ve created a plugin for Obsidian that allows me to upload the current note I’m working on to the DB that this blog is served from. It also uploads all of the images in the note to an S3 object storage.

England is My Polluted City

JavaFX app to display historical air pollution data of the whole UK on an interactive map.

Users are able to explore the historic pollution levels between 2018 and 2023 on a colour coded map, as well as view detailed location and pollution data at specific data points.

An actual binary search on a linked list???

A data structure that can simulate a binary search on a linked list? Yes, please!

During my last data structures lecture, our professor was talking about priority queues, selection and insertion sorts. And he mentioned, as a non-examable material, how we might achieve a faster insertion when considering a sorted sequence-based priority queueue.

Creating a clone of yourself

...as a text messaging AI model using OpenAI's fine-tuning capabilities.

After OpenAI become mainstream enough, I started becoming fascinated by searching for the existence of an AI model that would mimic myself or another person’s text messages. It would basically work by scraping and refactoring messages from a platform (Discord or WhatsApp) and creating a fine-tuned model, which would be served as a bot on Discord (or on any other platform).”

ICHack: Pathfinder AI

Visualise consequences of one's actions to help them understand the possible outcomes.

This app allows you to visualise the outcomes of your actions using Claude AI. It creates a decision tree around the thing that you want to look into. You start by giving a prompt (could be any kind of action or thing you are considering doing), and the app sends you 3-4 questions related to your prompt.

Stargaze

This project is a fully fleshed-out chess engine that I'm trying to create.

I’m using bit boards to represent the board and the pieces. I’m following the alpha-beta algorithm with multiple optimisations, ranging from transposition tables and iterative deepening, with a heuristic move generator.

Todon3

Beautifully designed to-do list app for the "getting things done" method.

Todon3 is a to-do list app that is beautifully designed for the getting things done method. It has six folders for you to add things and for each task, you can add sub-tasks (which can also have other sub-tasks).

Catter the Blog

A minimal and responsive blog created with Next.js, MDX, TailwindCSS, and Shadcn's UI components.

I decided to open source my entire blog. I plan to write a blog post detailing why I came to this decision, but for now, you can read, fork, and contribute to my blog through the repository.

Nextimal

Minimal blog template made with Next.js, serving MDX content.

This is a very simple and lightweight Next.js project for a very simple blog. There isn’t much to say, but it supports all the things that you want from a markdown blog, like headings, lists, images, code blocks, and tables.

Online Turkish Slang Dictionary

A website to view and search Turkish slang words and phrases.

For my second project centering web development and UI design, I decided to create a dictionary for slang phrases and words in Turkish. I created a input for searching and designed components around it.

Purple Startpage

A starpage website made with Next.js for people that want to be quick on the web.

How to do UI design as a web developer takes some time to learn. While coding this website, I also decided to other web app projects, and this is one of the first. It’s a simple and an elegant way to surf the web.

Tubiome

The website for the Turkish Alumni for Olympiads Society.

I didn’t had much experience creating these kinds of websites but I was ambitious! Even though Tubiome itself didn’t go anywhere, the website was functional and beautiful, it had blogs and different pages for different branches of olympiads.

Using the While, Else Statement in Python

Using while/else statement in Python unironically in a code that Kutay wrote

In Python, there is something that even the creator of Python despises. The thing that I am referring to is the “while, else” statement. Some context is that I was in a computer science course and we had to create some text-based game, and I—unironically—used the forbidden technique, the while else statement. The section of code that uses while else is given below, and for the interested, the full code is at the bottom of the page.

Cookie Blog

A blog about AI and art written and maintained by two high-school students.

For my CAS project, with a friend, we’ve decided to create a blog and write posts around AI — this was way before the AI hype and way before ChatGPT.

JavaScript and Asynchronous Functions

Kutay explains an error he observed and discusses asynchronous functions in Javascript.

Hello everyone! In this second post of my blog, I am going to explain an error I stumbled upon last week, how I solved it, and asynchronous functions in Javascript.


§