Better HN
topnewbestaskshowjobs
Log inSign up

tov_objorkin

56 karma · joined Dec 1, 2014 (11y ago) · 30 submissions

Submissions

comment 7mo ago · link · parent

The product has a typical lifespan of 3–5 years, they just don't need LTS. RKISP(ImageSignalProcessor) is piece of code glued to the kernel, fast and cheap. The mainstream version provides proper integration with Linux multimedia subsystems.

comment 1y ago · link · parent

In my case, only part of the program is recompiled and re-evaluated. The rest is located in a "committed" frozen area. Users can try new changes and throw them freely. The editor performs an evaluation/rollback on every keystroke, ensuring no accumulated or unintended changes to the stated were made during editing. When the user is satisfied and hit run, a long-term snapshot is created and the source code snippet is moving to the frozen area. Thats critical because the edit also rollback the file positions and streams.

comment 1y ago · link · parent

Nice, the main problem is a broken state. I use immutability at the language level to prevent disaster code changes. So, the program during live coding is literally unkillable, and you can jump back to the saved checkpoints without restarts.

comment 1y ago · link · parent

The tool uses a Forth-like language with immutable data structures and persistent memory snapshots. It also uses Clojure style meta-data and compile-time meta-programming. I have no luck convincing people that a language without curly brackets is useful.

comment 1y ago · link · parent

Maybe this is some kind of art that doesn't need to be useful.

comment 1y ago · link · parent

I wish to have the skills to explain my work as well as Bret Victor does. Editing, reverting, and committing parts of a running program feel alien to users.

comment 1y ago · link · parent

I was greatly inspired by his work. After getting enough skills, I even built my own IDE with live coding and time traveling. Its practical use is questionable, and it seems like nobody is really interested in such tools.

Playground: https://anykey111.github.io

Images: https://github.com/anykey111/xehw

comment 1y ago · link · parent

Bold plus, making PLs is a lifestyle, not a business. Most PLs clones each other and absorb features. The only difference is QOL and tooling. Users expect to have a full set of batteries, an IDE/LSP, jobs, OOP style, and minimal effort to learn. Being popular contradicts with the idea of pushing the boundaries and shifting paradigms.

comment 1y ago · link · parent

Disagree, there is no types in Forth, only cells. User is acting as a compiler. Comparing to C, imagine that every keyword like for/while/break is implemented as a macros using setjmp/longjmp. And this is a strong part of the language, flexibility but without any guarantees.

comment 1y ago · link · parent

Factoring is good way to reduce the complexity but writing math is painfull experience. To be fair, the infix version of Forth exists as an extension library.

comment 1y ago · link · parent

Forth is pretty lowlevel, i don't think it can compete with the highlevel languages. Postfix notation and stack juggling is just boring.

comment 3y ago · link · parent

One very stupid reason is the Qt itself, graphics application can't live without the QScreen instance. If user unplug every screen from the system, in order to prevent crash qt create the fake screen and hang in the headless state.

comment 3y ago · link · parent

LLVM have MSIL translator back in 2007 [1], it was abandoned die to lack of interest.

1. https://discourse.llvm.org/t/msil-backend/8480

comment 3y ago · link · parent

I have backend for the Hisilicon SoC from 2016, its about 1500 lines of C code, few calls to 2D API and copypasta of the triangle rasterizer. Dunno about modern version requirements.

comment 4y ago · link · parent

Borrow checker is fine. But from the library writer perspective its pain and take enormous amount of time to make it sound. One does not simple checkout "nom" and test thing in few minutes.

comment 4y ago · link · parent

Oh, please, making reasonable good DSL might take a month or even years. Also wrestling with parser and borrow checker not an easy task for average user.

comment 6y ago · link · parent

We're social animals, this is hardcoded part of our brain. Managing solitude require training as anything else.

comment 6y ago · link · parent

You're technically right, i mean if user aim for durable code then using unwrap is not desired behavior most of the time. For example pointer deference in C is implicit operation. In Rust user must choose explicitly how to handle Option/Result. Even if using unwrap not so harmful as using unsafe and didn't violate rules this is our deliberate choose to break "end-user safety".

comment 6y ago · link · parent

unwrap() or expect() unconditionally smash program execution in case of error. Properly written program should handle such errors or use unwrap_or_* as fallback. The point is that unwrap/unsafe is breaking safety rules, user writing one know what hes doing or just don't bothering.

comment 7y ago · link · parent

About JS, i made wrong assumption that we entered v8 era and my number crunching code should work reasonable fast everywhere.

comment 7y ago · link · parent

About five years ago i have a dream, that i can abandon all this peasant C/C++ development and jump into mono/xamarin train. As a main product we have Linux ARM/MIPS karaoke machine with optional remote control via desktop/mobile apps. The idea was to use same code every where.

- Tooling for Linux was horrible, like really! - Alien mobile UI look and feel - One can not simple build mobile app for desktop. - New shiny search engine prototype doesn't fit into low tier Phone RAM. - Mono Hello world application on MIPS device with 128RAM uses about 28 mb of RAM. - 400 MHz cpu have really hard times with GC, nogo for soft-realtime. - No seamless integration with native code, using libs like ffmpeg is crazy hard. - F# was 2nd citizen in that time!

Now things changed, but still imho Linux is not a good choose for .net, also MS force you to use Azure/Cloud/etc infrastructure.

comment 7y ago · link · parent

Once i have a dream about RN application for iOS/Android without Xcode and AndroidStudio.

Started with Expo, great tool if you don't have native modules. But i have, very complex search library in Rust. After few attempts the code was converted to asmjs (RN doesn't support wasm). So i have JS-only codebase that works on Expo. Livecoding (a bit slow beause of large js codebase) and easy deploymnet on all platforms.

After release users starts complain about performance. RN fetch API doesn't support binaries, everything passed back and forth as base64. Some low-mid tier phones got stuck for few minutes. Also RN fetch doesn't support progress and a lot of other thing.

Decision was to start using native libraries. Ehh, goodby sweety Expo...

The lesson was learned, if you have complex application don't expect too much without heavy investment. JS is ugly and unpredictable as usualy. Overall experience is ok/mehh, but not great.

For the next project i give Qt5 a chance.

comment 7y ago · link · parent

Empire nailing Assange to the cross. Take your seats, enjoy the show...

comment 7y ago · link · parent

In the Herbert Dune, civilization collapsed because of smart machines. So after renaissance they are completely banned for the future use.

comment 8y ago · link · parent

FlatAssembler is amazing. I remember people making fractal images using only preprocessor [1], JVM bytecode compilers and a lot of other cool stuff. Also it is a powerful editor, you can abuse 'file', 'load', 'store' directives to make existing file modifications.

[1] https://board.flatassembler.net/topic.php?t=2265

comment 8y ago · link · parent

If you need fast small function use NIF, for large logic blocks better use C node its safe and isolated.

comment 8y ago · link · parent

Oh, ti c/c+ compiler is such a joke, not event c99 supported. I was thinking about rust to C compiler [1], but thats require c11 support.

1. https://github.com/thepowersgang/mrustc

comment 9y ago · link · parent

The horrible thing about QtCreator is plugins support. Most of them unstable and crashing IDE. Dependency on Qt SDK private sources killing all my attempts to maintain my own plugins.

comment 10y ago · link · parent

This one https://en.wikipedia.org/wiki/Ternary_computer incompatible with everything ahaha

comment 11y ago · link · parent

CHICKEN Scheme is not a purely functional its allow mutations and inline C code http://wiki.call-cc.org/man/4/Accessing%20external%20objects...