Better HN
topnewbestaskshowjobs
Log inSign up

thedjinn

295 karma · joined Jan 19, 2011 (15y ago) · 83 submissions

Freelance software consultant with a particular interest in performance optimization, signal processing and dataflow programming.
Submissions

1.

MiniWASM – A minimalist Rust WebAssembly project template(github.com ↗)

2 points · by thedjinn · 5y ago · discuss

comment 6y ago · link · parent

How many images does your app typically need to avoid overfitting?

comment 6y ago · link · parent

Most people probably don't even refer to the macOS versions by number but by codename.

comment 6y ago · link · parent

I'm on a 2012 MBP with similar experiences. Every year I think about finally replacing it, but hold off on it because everything still works fine apart from some increased fan noise and reduced battery capacity (which doesn't concern me too much). If you treat your laptop with care it really does last a long time.

At some point I expect I will stop getting MacOS updates which will force me to upgrade to a newer model.

comment 7y ago · link · parent

That will make you a 10x developer today but a 0.01x developer when shit hits the fan.

comment 7y ago · link · parent

It's basically a Pi, a buck regulator, a tiny COB USB audio interface and an SSD1306-based 128x32 display. Removed all connectors and replaced them with soldered wires so it packs neatly into a tiny box.

The software is all custom and written in C, using Jack for low latency audio and my own driver for the display (Adafruit makes a Python driver but it eats half of your CPU and is not optimized for i2c bandwidth or high framerates).

comment 7y ago · link · parent

I built a guitar stomp box using a Raspberry Pi Zero to trigger samples with a foot switch. Runs on 9 volts and has a very bright OLED display so I can still see what it's doing when I'm playing in a dark venue.

comment 8y ago · link · parent

Looks decent. I would suggest adding more tunings for us metal players that play lower tunings (for example, I play 2 whole steps down)

comment 8y ago · link · parent

That's more keystrokes. ;)

comment 8y ago · link · parent

Not really a trick of Vim itself, but when using Vim from the terminal I find ctrl-z very useful to background Vim, type in a few shell commands for git or whatever and then use "fg" to hop back into Vim.

comment 8y ago · link · parent

That's great, now I need a middle name. Any good suggestions?

comment 9y ago · link · parent

Well, please enlighten us then!

comment 9y ago · link · parent

Looks fine to me. What's wrong about that syntax?

comment 9y ago · link · parent

Yes, that works. However, you would be facing the same problems. You can read out the pressure of a touch but the initial pressure is not the strongest since the finger is still in motion. Additionally, 3D touch is not supported on all devices.

Another interesting thing is that there are also private APIs for reading out the estimated finger size of a touch. This can give you even more information to determine the velocity from, as light touches are usually done with the fingertips.

comment 9y ago · link · parent

Exactly. The general idea is that you get a measurement of the applied force, so integrating that value gives you an approximate velocity.

comment 9y ago · link · parent

3D touch is not supported on all devices unfortunately.

comment 9y ago · link · parent

The accuracy is a trade-off between latency and precision. The touch event arrives as soon as you touch the screen, but the actual force of your touch still needs a few milliseconds to actually put the device into motion. Waiting a little bit while collecting measurements gives you quite an accurate indication of the force used, but the increased latency makes it harder to play.

Sliders and knobs will be added in a future version. I wanted to put an MVP on the app store first before adding additional features.

18.

Show HN: MidiPad 2 – A customizable Midi Pad Controller(midipadapp.com ↗)

47 points · by thedjinn · 9y ago · 18 comments

comment 9y ago · link · parent

I have been using React Native for a year now on a large project and came to the same conclusion. I find using Redux can quickly lead to over-engineered software.

As goes with every extra dependency: don't use it until you actually need it.

comment 9y ago · link · parent

Most music is mixed not to have any useful spectral information below that frequency anyway. And if you want beat then a better thing you can do is look at the half-wave rectified difference between the sums of two FFT frames (with optional lowpass). This results in an onset graph that is the basis for a lot of real-time beat detection algorithms.

comment 9y ago · link · parent

Pretty boring if it's just FFT based. I'd love to see music visualizations make use of more sophisticated musical feature detection, like polyphonic note recognition or tempo/rhythm analysis.

comment 9y ago · link · parent

I wonder if it's possible to use some kind of translator, like Apple did with Rosetta to run PowerPC code on x86. This is of course not interesting for the Surface but it might be a nice solution for a desktop transition to ARM.

comment 9y ago · link · parent

Don't forget there's also Xcode's built-in view debugger. Very useful tool!

comment 9y ago · link · parent

A while ago I read about the DMZ between North/South Korea being a place where endangered species thrive again.

comment 9y ago · link · parent

No, such a claim would be complete nonsense.

We are using a local database as a mirror for offline use, which is a key requirement. Profiling (a forgotten art nowadays) shows that most time spent during queries is in this bridge and not in the actual queries.

comment 9y ago · link · parent

Our app is used by people working in remote areas without mobile/wifi reception. Therefore we maintain a local copy of the user's state.

comment 9y ago · link · parent

We are using SQLite. The performance bottleneck is not the database itself but conversion between the Java and JavaScript environments.

comment 9y ago · link · parent

I have been working on a large React Native project for several months now. It's great for quick prototyping but once we started doing heavy database stuff it got really slow, especially on Android. Of course we could have ported that part to native code, but that kind of defeats the purpose, doesn't it?

comment 9y ago · link · parent

From the guy that wrote PuTTY

comment 9y ago · link · parent

This was a bug in the build process and has been fixed now. Thanks for reporting!
123