HNHacker News
TopNewBestAskShowJobs

valera_rozuvan

410 karma · joined November 22, 2013

[ my public key: https://keybase.io/valera_rozuvan; my proof: https://keybase.io/valera_rozuvan/sigs/8vhgR5TrioK8jlEs_NBZVHMn-bUOoMnf7TSOesYq5rg ]
submissionscomments
valera_rozuvan··on Deleting data distributed throughout a microservice architecture
One should really consider DevSecOps when dealing with a large infrastructure involving dozens or hundreds of micro services. Security as Code by design should be implemented as soon as possible. In my current gig - the following 3 points are key:

- 24x7 Proactive Security Monitoring

- Shared Threat Intelligence

- Compliance Operations

I would really advise anyone interested in this subject to check out DevSecOps manifesto [1].

Also - if you are running a k8s cluster for all your micro-services, there are several guides online as to best practices (see [2] for example).

----------

[1] https://www.devsecops.org/

[2] https://dev.to/petermbenjamin/kubernetes-security-best-pract...

valera_rozuvan··on Emacs' Org-Mode and Syncthing = Perfect (2017)
Who can tell me which Android app should be used? Syncthing [1] or Syncthing-Fork [2]?

----------

[1] https://play.google.com/store/apps/details?id=com.nutomic.sy...

[2] https://play.google.com/store/apps/details?id=com.github.cat...

valera_rozuvan··on The naked truth about writing a programming language (2014)
One should consider creating a VM first - it simplifies life a bit, and makes the language more portable in the future. The implementation task is split in two - compiler and VM. First, compiler targets the VM. Second, the VM targets the CPU. This way porting to different architectures is just a matter of adding to the VM to interface with the new arch. A compiler and VM definitely are 2 separate projects with their own set of issues.

Also we should consider the possibility of going the eDSL (embedded domain-specific language) route. Working at a very high level, re-using existing constructs of the host language. If one is interested, looking into SICP [1] will show an example of such a project. Using Scheme to build an interpreter. This can easily be done in several days. Best to try to reduce doing work that has been done many times before.

----------

[1] https://mitpress.mit.edu/sites/default/files/sicp/index.html

valera_rozuvan··on Modern and Cross Platform Stack for WebRTC
For anyone curious, there is a great article [1].

WebRTC enables peer to peer communication.

BUT...

WebRTC still needs servers:

For clients to exchange metadata to coordinate communication: this is called signaling. To cope with network address translators (NATs) and firewalls.

-------------

[1] https://www.html5rocks.com/en/tutorials/webrtc/infrastructur...

valera_rozuvan··on Modern and Cross Platform Stack for WebRTC
Some signaling strategies for WebRTC:

- WebSockets

- XHR and other Comet options

- SIP over WebSockets

- XMPP/Jingle

- WebRTC's Data Channel

Obviously, one would want the data channel (last option). There's some work done in this area. However, it's still not full featured.

valera_rozuvan··on What I wish I knew about React
If you look at it from one side, React doesn't have technical problems or the way it's built. If you look at it from another side - React opens up a wide range of possibilities - you can simply drown in them. Adequate things you have done all your life - suddenly feel not so adequate anymore :) For example, it would be fine to use plain old CSS, but with React it just feels wrong. If you look at the number of libraries that try to evolve CSS, there are many. But there is just no winner in sight. Pretty much the same situation is happening in state handling. The number of possibilities! It's amazing. Eventually, though, something gains momentum, like Redux did. This has consequences for React ecosystem, but also everywhere else in JS world. It slowly migrates to Angular, and other frameworks - as the cool kid on the block.

Elegant, simple concepts of React - they are outweighed by the environment they live in. React allows for rapid prototyping, provokes ideas which sometimes break traditional ways. Anyways, I will leave these thoughts with saying that personally I don't have issues with it. I adapt React to what I want - it doesn't adapt my thinking ;)

valera_rozuvan··on Let’s Invent B(+)-Trees
While implementing, I found that there is a large number of disk hops (and hence greater time required to read), and accessing data is slow. Only a chunk of data fits in a disk block (remember, there is a predefined size limit for blocks).

How to get around this?

valera_rozuvan··on Rust 1.43
If you are like me, and stick to Rust lang for about a year or so, you will have a hard time going back to low level languages such as C. When you have your errors caught at compile time - it's simply beautiful! Forget about explicit memory freeing - and don't worry about memory management, it is really predictable. Code will always have the same precise meaning across all platforms. Hell yeah!
valera_rozuvan··on Ubuntu Deepin Desktop Environment
https://github.com/linuxdeepin/dde-file-manager/tree/develop...

Looking at the source code of one of the critical pieces of that distro, we can see that it has about 5 active devs (in the past 2 years). To me it looks like a strong project. Will be interesting to see where it is in 5 years. They need more presence on the various Linux news/discussion sites.

valera_rozuvan··on Libui: a portable GUI library for C
I am surprised that ocornut/imgui [1] is not mentioned anywhere here. I used it for an admin interface in a past project. The author makes it a point to do work on the library based on donations (such as from Patreon, or PayPal). I suppose that's the main reason the project is alive and kicking today. OpenSource projects that are somehow financed - are in a much better situation than projects done on a spare time budget.

---

[1] https://github.com/ocornut/imgui

valera_rozuvan··on An Introduction to Hashing in the Era of Machine Learning
Submitted a PR for your SMHasher repo: https://github.com/rurban/smhasher/pull/41 .
valera_rozuvan··on Angular 2 docs for ES6/7
For those of you who are saying that TypeScript is a superset of ES6. Stop! ES6 does not have decorators. See https://github.com/tc39/proposal-decorators .

Almost all Angular2 projects, that claim to be using ES6, are in fact using ES6 + Babel Legacy Decorator plugin https://github.com/loganfsmyth/babel-plugin-transform-decora... . The legacy plugin adds syntactic sugar on top of ES6. This is no better than TypeScript in the first place.

valera_rozuvan··on Angular 2 docs for ES6/7
I am a strong believer in Angular (1 & 2) and in JavaScript. I am using Ng1 & Ng2 on production. I even have a seed project for Ng2 that uses pure ES6 (no legacy Babel plugins). See https://github.com/valera-rozuvan/angular2-es6-seed .

I know how much it hurts when you can't find decent documentation for Ng2 with ES6.

valera_rozuvan··on Twenty years later I wrote a Tetris again
Check out https://github.com/mafintosh/tetris . This is a Node.js based Tetris clone, with only 46KB of dependencies.

Please provide an example of a Node.js project which downloads 500MB of deps.

valera_rozuvan··on Epsilon Programmer's Editor
I understand now. I see the wrong in my ways.
valera_rozuvan··on Ask HN: Is there a JavaScript library for arbitrary precision complex mathematics?
Awesome! Will be watching https://github.com/antoineMoPa for the appearance of your poc =) Will contribute to it too.
valera_rozuvan··on Ask HN: Is there a JavaScript library for arbitrary precision complex mathematics?
An interesting idea. Do you want to spear-head this project? I don't have much expertise in GLSL...
valera_rozuvan··on Ask HN: Is there a JavaScript library for arbitrary precision complex mathematics?
As it turns out, Math.js doesn't support arbitrary precision calculations with complex numbers. This is because it is using libraries complex-js [1] and bignumber.js [2], which in turn also don't support arbitrary precision calculations with complex numbers.

This situation will improve in the future. See the Math.js issue [3].

[1] https://github.com/patrickroberts/complex-js

[2] https://github.com/MikeMcl/bignumber.js/

[3] https://github.com/josdejong/mathjs/issues/694

valera_rozuvan··on Ask HN: Is there a JavaScript library for arbitrary precision complex mathematics?
The author of Fractint, Wes Loewer, created his own arbitrary precision math library [1]. I am aware of how such pieces of software work. I am also aware that to create such a thing from scratch - will take much effort. Especially testing it for correctness. Why reinvent the wheel?

That's why I asked the question in the first place. Best case scenario - someone has already implemented such functionality in JavaScript (with complex numbers). But I think that this is not the case. So I guess this leads to the case of porting from some other language.

[1] http://www.nahee.com/spanky/www/fractint/arb-prec.html

valera_rozuvan··on Ask HN: Is there a JavaScript library for arbitrary precision complex mathematics?
@GregBuchholz Of course. I know many programs that allow deep zooms of fractals. However, I am after an implementation in the browser.
valera_rozuvan··on Ask HN: Is there a JavaScript library for arbitrary precision complex mathematics?
I am also considering Python-based "mpmath" [1], and C-based "Gnu Mpc" [2] as candidates for porting to JavaScript.

[1] http://mpmath.org/

[2] http://www.multiprecision.org/

valera_rozuvan··on Ask HN: Is there a JavaScript library for arbitrary precision complex mathematics?
=) A valid question! I am developing (yet another) fractal viewer for the browser. It's called FractalViewer, and is available from GitHub [1]. I am working on allowing it to zoom past the limit of about 10^(-13). The specific FractalViewer development issue is [2].

Why bother at all? I am very frustrated that there currently is no fractal viewer for the browser that can do a truly deep zoom. See a list I compiled on web-based fractal viewers [3].

Maybe someone can correct me, and point to a JavaScript based fractal viewer that can do really deep zooms...

[1] https://github.com/valera-rozuvan/FractalViewer

[2] https://github.com/valera-rozuvan/FractalViewer/issues/10

[3] https://github.com/valera-rozuvan/bookmarks-md/blob/master/f...

valera_rozuvan··on Ask HN: Is there a JavaScript library for arbitrary precision complex mathematics?
Thanks for your reply. But after trying this library - it doesn't offer precision beyond that which is in native JavaScript. Upon closer inspection [1] you can see that it uses standard Number.toPrecision() function. ECMA-262 only requires a precision of up to 21 significant digits [2]. This is no good for me.

[1] https://github.com/sloisel/numeric/blob/656fa1254be540f42871...

[2] https://developer.mozilla.org/en/docs/Web/JavaScript/Referen...

valera_rozuvan··on Show HN: FractalViewer: A JavaScript fractal explorer
It's because currently FractalViewer is not designed to work around floating point precision limits in JavaScript. So, after zooming a bit, you hit the "pixelated wall". I plan to address this issue in future release of FractalViewer. See https://github.com/valera-rozuvan/FractalViewer/issues/10 .

More information on JS floating point numbers, their limitations, and ways to work around those limits - can be found in this informative article http://blog.chewxy.com/2014/02/24/what-every-javascript-deve... .

valera_rozuvan··on Show HN: FractalViewer: A JavaScript fractal explorer
Right now FractalViewer is using a modified version of the Successive Refinement algorithm invented by Robert P. Munafo. See a description of the original algorithm http://mrob.com/pub/muency/successiverefinement.html .

Version 2 of FractalViewer will use Web Workers (multipple threads) to render the image, so it will resemble "the maps one" (rendering multiple smaller squares at once). See progress on this at https://github.com/valera-rozuvan/FractalViewer/issues/3 .

By the way - maybe I got your question wrong. What do you mean by "a render technique like the maps one"? Can you point me to a resource where it is described?

valera_rozuvan··on Show HN: FractalViewer: A JavaScript fractal explorer
Do you mean to render the same view (what you see), but at a higher resolution? So that, for example, you can print it out?
valera_rozuvan··on Show HN: FractalViewer: A JavaScript fractal explorer
Will be implemented in version 2.0 of FractalViewer. See progress at https://github.com/valera-rozuvan/FractalViewer/issues/1 .
valera_rozuvan··on Emacs Live (2013)
Here is a PR to fix this issue: https://github.com/overtone/emacs-live/pull/238 .
valera_rozuvan··on Steinway's 600,000th piano, the Fibonacci
Google cache: http://webcache.googleusercontent.com/search?q=cache:NRjch1b...
valera_rozuvan··on Chip
Looks to me like a constantly evolving maze. A shifting maze? Anyone watch the movie Cube (Cube is a 1997 Canadian science fiction psychological horror film, directed and co-written by Vincenzo Natali)?

This looks like a version of Cube, only in 2D.

← PreviousPage 2 of 3Next →