Content-aware image resizing in JavaScript
JavaScript implementation of so-called Seam Carving algorithm for the content-aware image resizing and objects removal. Dynamic programming approach is applied to optimize the resizing time.
Topics /
The most popular blog posts about software engineering on Hacker News. 1,517 posts.
JavaScript implementation of so-called Seam Carving algorithm for the content-aware image resizing and objects removal. Dynamic programming approach is applied to optimize the resizing time.
Go is not an easy programming language. It is simple in many ways: the syntax is simple, most of the semantics are simple. But a language is more than just syntax; it’s about doing useful stuff . And doing useful stuff is not always easy in Go.
I became a big fan of Minecraft when I first started playing it in early-2011. I have stopped in recent years since I find it dangerously addictive, though I sometimes keep up with the new changes. Today I want to look back at a development mistake that was made in Beta 1.8, one that took a decade to recover from.
Introduction
I am often asked what I mean when I say that developers spend most of their time figuring the system out. Let’s unpack the statement.
In the late 1990s, the Windows Shell and Internet Explorer teams introduced a bunch of brilliant and intricate designs that allowed extension of the shell and the browser to handle scenarios beyond…
The tool is great, but it uses perf to record and analyze profile data, and perf on Debian has a performance problem : when not linked against libbfd , it shells out to addr2line for every address it needs to look up. Thousands and thousands and thousands of incredibly short-lived processes.
So! Rust futures! Easy peasy lemon squeezy. Until it’s not. So let’s do the easy thing, and then instead of waiting for the hard thing to sneak up on us, we’ll go for it intentionally. That’s all-a...
Posted by Mariusz Felisiak on Dec. 7, 2021
We successfully deployed ThreadSanitizer in the Firefox project to eliminate data races in our remaining C/C++ components.
If you need a publish/subscribe or job server at any point in your project, try using Postgres. It'll give you lots of data integrity and performance guarantees, and it doesn't require you or your team learning any new technology.
Last year, I submitted a PR to the Clojure web request routing library, Compojure . Even though I was doing Clojure full time at work, there was still a lot for me to learn and always will be.
KOITOTO hadir dengan mengutamakan kemudahan akses serta dukungan bagi pengguna yang membutuhkan informasi seputar layanan dan navigasi situs.
Summary: Wuffs’ PNG image decoder is memory-safe but can also clock between 1.22x and 2.75x faster than libpng , the widely used open source C implementation. It’s also faster than the libspng , lodepng and stb_image C libraries as well as the most popular Go and Rust PNG libraries. High performance is achieved by…
Hello, long time no see :) We obviously have a lot to talk about when it comes to the game changes we recently did, or plan to do, but we don't want to share any of it yet. Yet, there is currently a topic very relevant to us and we can share it without revealing any specific changes to the game. Today's post will be…
We take a look at whats new in Postgres 14, with idle and active connection scaling, memory monitoring, query IDs and more
The official home of the Erlang Programming Language
A basic introduction to Western music theory using the Python programming language to derive scales, chords, and modes in every key.
Building a modern front end in Django without reaching for a full-blown JavaScript framework. Choosing the right tools for the job, and bringing them into your project.
After I wrote most of this blog post the night of October, 5th 2021 I wasn't sure I would post it. After the events of the last 36 hours, I felt I needed to capture my experience on my website where it can only be edited by me. After reading this, I hope you will have a clear set of datapoints from my point of view…
I’ve been lurking the fish shell for a couple of years now (and the nushell but it is another story for another time). Not so long ago, I decided to try it, and it’s simply… amazing. If I had to state one feature that makes me like to use it, it’ll be the autocompletion, hands down. It’s the first time I just take a…
I love a good bug, especially ones that are initially hard to explain but then ...
This article summarizes some lower level aspect of how GPU executes. Although GPU programming is not that complicated when compared to CPU, it also doesn’t match to what hardware is doing exactly. The reason is that we can’t just program GPU without some API, which is an abstraction over its inner workings. Since few…
Performance comparison of counting and sorting word frequencies in various languages (Python, Go, C++, C, AWK, Forth, and Rust)
Web compatibility data for Deno is now available on MDN.
As previously announced, starting on August 13, 2021, at 09:00 PST, we will no longer accept account passwords when authenticating Git operations on GitHub.com. Instead, token-based authentication (for example, personal…
Writing your own TCP/IP stack may seem like a daunting task. Indeed, TCP has accumulated many specifications over its lifetime of more than thirty years. The core specification, however, is seemingly compact[^tcp-roadmap] - the important parts being TCP header parsing, the state machine, congestion control and…