HNHacker News
TopNewBestAskShowJobs

maga_2020

60 karma · joined December 15, 2017

submissionscomments
maga_2020··on Kotlin is now Google’s preferred language for Android app development
I feel good and bad about this.

I invested several years at coming up to speed with Java 8+ (using templates, rx, streams, the new time APIs). It was not hard, but difficult to unlearn some C++ idioms around templates, consts, reference model and object lifecycle management.

Clearly this driven by Oracle's continuous poisoning of Java ecosystem (eg https://headcrashing.wordpress.com/2019/05/03/negotiations-f... )

And I think Kotlin is a solid step forward from the Java without the baggage of pre JDK 1.7 idioms.

But for a small (often single dev) shops trying to compete in Android marketspace, it is quite hard to maintain this rate of change (plus incorporating all the new (and better ways) of doing android with androidx )

maga_2020··on CLIPS: A Tool for Building Expert Systems
Only link to your paper that I was able to find is https://dblp.org/rec/journals/isci/Waite99

but there are no PDFs that I could download without payin 37.95 $USD at ( https://www.sciencedirect.com/science/article/pii/S002002559... )

I used K-means clustering in various domains (access control, fraud control, network data plane quality controls), so wanted to check your work.

One problematic area for K-means, at least from my point of view, is that it is not really possible to easily trace what features/variables are mostly responsible for the anomaly.

maga_2020··on Flutter desktop shells
Another alternative, I think is D-language bindings to QT (or betterC which is a subset of D allowes to use D with C runtime library, while retaining D-s class system, templates and memory safety).

[1] https://github.com/MGWL/QtE5

D's team is doing an incredible job of matching C++ compiler specific ABIs, name mangling/etc -- just so D users can use C++ libraries (including templates) directly from D without loosing the features of the language.

[2] https://dlang.org/spec/cpp_interface.html

Here is also an older video of Walter Bright (2015) talking about the challenges that D is tackling

[3] https://www.youtube.com/watch?v=IkwaV6k6BmM

maga_2020··on Org-Mode Is One of the Most Reasonable Markup Languages to Use for Text (2018)
what do you think about Org2Blog [1] (it supports math notation as well as integrated publishing from orgmode to wordpress) ?

I would like to minimize my learning curves, so wanted to get a performant blogging service installed on a 2.50$ Vultr instance, and keep using Emacs for blogging with something that includes math typesetting.

org2blog seems to be fit closest to what I am looking for (but I would prefer something other than wordpress if I have a choice).

[1] https://github.com/org2blog/org2blog

maga_2020··on Endlessh: An SSH Tarpit
very interesting, and useful (including newbies like me who do not appreciate the complexities and dangers of having internet-accessible IP address).

I wonder if security-oriented OSs like openBSD could offer something like this out of the box. So that an admin can just say enable_tarpits='yes', and it would automatically enable tarpits like this for all the currently installed packages (with some default ports).

maga_2020··on Evergreen: a React UI Framework built by Segment
Wouldn't React-native-web ( https://github.com/necolas/react-native-web ) qualify into this list ?

It offers APIs compatible with React-native (which is obviously a huge time saver for cross platform UI dev).

Its disadvantage is that it does not offer (by intent and philosophy) any components outside of React native.

maga_2020··on Inferno v6 released
Very nice. They seem to be tracking React's API changes.

The original Inferno developer, I think, moved to work at Facebook. So the new maintainer seems to be keeping the effort well and healthy.

It is nice to see same well thought out React API implemented with different tradeoffs to accommodate widening use-cases.

maga_2020··on React Fire: Modernizing React DOM
I do not have experience with clojurescript or Om. However, I very frequently switch between React-Native-Web, React-Native & Android SDKs.

In my view, React team actually -- discovered a paradigm that's really good and workable.

In comparasing Android SDK UI work -- feels like it was 'invented' rather than discovered.

Too much difficult to follow indirections and wrong abstraction.

When I program direct Android, I find myself introducing React concepts. Most of my Presenters and Views now have CMyState class and its one instance.

I have setState_XYZ, and clear_State associated with that state. I cary in that state backend pagination hints, etc (as an example).

And I use RxJava (in Android) to emulate eventing model of Clicks/Mounts/Dismounts (eg when android screen rotates).

All in all, again, it does seem that React developers (not sure who the credit should go to, Peter Hunt, many others ?) -- discovered an a abstraction that was always there, but was not easily crystalized through other frameworks.

And now it is. I would be happy if others would just emulate it and make it working across UI programming platforms. It supersedes in my mind anything else that I had seen in last 25 years, in this space.

maga_2020··on State of Multicore OCaml [pdf]
@isakkeyten I would look at a 'crossing' between a functional programming language, and a multi-platform OS GUI toolkit.

Because significant portion of your learning/cognitive effort you will be spending on understanding the UI paradigms offered by a given GUI toolkit.

So take a look at the languages, in language bindings available for

1) Qt UI toolkit http://wiki.qt.io/Language_Bindings

2) at the languages, in the language bindings available for wxWidgets UI toolkit

https://en.wikipedia.org/wiki/List_of_language_bindings_for_...

2) And same for FLTk http://www.fltk.org/wiki.php?LC+P139+TC+Q

Perhaps, also, you can also investigate if you can use F# (equivalent somewhat to ocaml), to develop Windows Apps with https://github.com/Microsoft/react-native-windows

Same for Nim https://github.com/andreaferretti/react.nim (there is probably a way to package it as Electron App ).

(depending on your desire for adventure/early/small community/small ecosystem interest)

maga_2020··on Notes on Discrete Mathematics (2017) [pdf]
this experience could depend on the field of work you are in.

Being fluent in statistics/linear algebra & discrete math/category theory -- makes you 'head and shoulders' above others, when it comes to assessing industry trends, and deciding if some are applicable to your work.

Having those skills, does not mean, of course, that they would compensate for the lack of creativity, hard work, risk taking, constant year-after-year-self study, or inter-personal & presentation skills.

Some examples:

Being able to understand word-vectors and related techniques, for chat boats, or compliance -- is very helpful.

Being able to reason about degrees of security of data published on 'immutable databases' or 'data streams' -- is useful, again in compliance (as in making records tamper-proof).

Being able to design protocol/interaction across systems with context-free grammars -- is helpful, in protected against certain types of attacks. I would say this is reasonably relevant for systems that are exposed on public internet.

Being able to read reasonably recent (or 20-30 year old) papers on Differential privacy/homomorphic encryption -- allows you to reason how effective your data protection strategy could be (again relevant for compliance).

Obviously, understanding financial service models, performance models of distributed queuing systems -- require understanding of the maths I mention above.

Being able to recognize where in your, even basic business workflow or database/state management -- there is an appropriate place to introduce finite-state-automate (to reduce number on 'unanticipated conditions') -- is also helpful.

Being able to recognize database mapping through the lens of category theory, improves how you could design your data models (because right at the time of designing your data layout you are also thinking about transformations between them -- which is basic need for non-trivial business system integration).

Opposite to the above post, I always feel that I need more math background that I have. And I would love to go back in time and significantly beef-up my education in that area.

maga_2020··on React Native at Airbnb
I agree with you, that for the same 'business logic', having it JavaScript vs native, unless you do lots of sorting/copying of data -- will not have battery impact difference.

However, React itself (not the javascript engine) brings in additional dimensions, that are somewhat unique to react.

For example, React's (and therefore ReactNative) TextInput control, essentially (in my understanding) encourages you to update a state variable, every single time type a letter into that control

(because the values displayed in the control are coming from the state, so the only way to display the character you typed, is via updating the state).

So that round trip of the character update, to updating the object with state variable, calling .setState, forcing the re-rendering, will consume more battery power. In my view

(I know textinput in particular has the 'uncontrolled model').

My point, that the constant 'create new object', update the state with it, and Re-render -- could be slower (and less battery efficient), than doing may be something similar (or more efficient) in Native Code.

maga_2020··on React Native at Airbnb
I strongly agree with the 'cognitive overhead' comment.

I think, a number of challenges that Redux and MobX are intended to address, can potentially be resolved in more elegant and easy manner with the new (16.3.1 and above) Context APIs. ReactNative 55.+ works with 16.3.x and 16.4.0 so these APIs are available to your react native apps now.

For example making available global stores to all the components that need them, being able to invoke 'render' on the interested components, when a particular store is being updated -- all of that is being supported. All that without passing the store as property through the hierarchy depth.

for the cases where your component relation is 'horizontal', rather than hierarchical. I recommend simply to use pubsub.js. It is a library that has 0 dependencies (rarity in JavaScript ecosystem :-) ). and has both Sync and Async publishing via channels. So that you can pause your publishing to the horizontally-connected components, if you need to, and then resume -- when the publishing is done.

maga_2020··on Introduction to OS Abstractions Using Plan 9 from Bell Labs (2007) [pdf]
I also feel that InfernoOS deserves better recognition and interest.

From Inferno OS page [1] :

>>>..As this is part of the underlying system, all applications gain these benefits automatically. 9P runs over various transport protocols including TCP/IP.

9P was originally developed for use with Plan 9 from Bell Labs. A simplified subset called Styx was used in Inferno for a few years, but now Inferno's protocol is exactly the same as 9P. Some manual pages and older papers still refer to Styx. <<<

I think major constraint (or advantage, depending how you look at it) -- is that you can only use GO-like programming language, Limbo, to develop for it. No other language runtime is supported.

[1] http://www.vitanuova.com/inferno/design.html

maga_2020··on Experiences with running PostgreSQL on Kubernetes
in the video referenced by @aberoham , a the end there is a question to the presenter (Josh Berkus), about the 2 types of replication their deployment tool is supporting.

this was on about 33rd minute of the presentation

He suggested , that if you need to use , synchronous replication, to use PostgreSQL 10 with synchronous quorum replication, so that it will not block transactions if one of the replicas fail.

maga_2020··on The Death of Microservice Madness in 2018
WRT #2. Data isolation argument.

it is not clear to me, why data isolation is your view, is exclusive to microservices.

I have build non trival RBAC+ABAC authorization platforms, using PDP and embedeabble PEP, and did not find that it was useful by micro services only. And I did not feel that it can only be called via 'micro service' pipeline.

In a way the Authorization is a separate service, yes, but it should be offering an embeddable PEP (policy enforcement point) that one can embed (link or call out-of-process if needed), from pretty much anywhere (monolith, or any runtime component).

Authorization decisions require very very low latency, as you are authorizing pretty much every data or function interaction.

In fact, for data interaction, authorization engines offer SQL-rewriting/filtering -- so that the actual 'enforcement' happens at the layer of database you are using, not even at the layer of the component that's accessing the data.

maga_2020··on The Death of Microservice Madness in 2018
I think these are appealing for 2 reasons:

1. There is a believe, that component isolation (taken to extreme by microservices) enables better productivity of the development department.

That is more features, more prototypes, more people can be moved in and out a given role. So that those 5 crusty programmers are not a bottleneck for the 'next great idea' that a Product manager or CIO reads up on.

2. There is a constant battle for the crown of "I am modern" (eg data science, micro services, big data ) That is going on in every development or technology organization. Where the closer you are in your 'vision' to google or Netflix, the more 'modern' you are.

The rest of the folks is 'legacy'. So you get budgets, you get to hire, you get to 'lead'. Micro-services is the enabler to help to win this battle (although, probably, for a short term).

---

I personally, do not believe that microservices bring anything new compared to previously used methods of run-time modularization :

  Plugins
  Web services
  RPC
  N-tier architectures

I do not think they replace the standards like CORBA, although I think they will end up eventually replicating it, with better thought out standards and tools.
maga_2020··on Choosing between programming in the kernel or in user space
The succinctly noted

"The tension in any of these systems is between performance and isolation. "

Also caught my attention. In my mind it is a bit analogues to discussion about 'microservices'.

Although micro services, are probably at the peak of the Hype Cycle. Where isolation is projected as 'productivity enabler', across teams.

Very difficult to challenge this, especially if you work for a company where revenue is declining/not growing because of lack of ideation/innovation/market conditions.

So, when company fails to ideate and grow revenue, the product management/CIO will be turning onto the productivity.

I suspect the next move for the company, where the above is discussed, -- is moving Development to a lower cost area.

Especially if the 'hiring problem HR is noting' is not just with requirements, but also salary ceilings.

maga_2020··on ‘Saluton’: the surprise return of Esperanto
Thank you for the quick overview. I also got interested in Lojban. I am trying to incorporate the learning of the language in to some of my routines.

For example, for software projects, where I can, I use Lojban named classes, functions, test strings (instead of 'lorem ... '), and even comments.

There are some youtube clips of songs in Lojban, I played them for my family and, unfortunately, response was negative (music was not that nice, and it sounds harsh as you noted).

I think Lojban might have an interesting future as requirements specification and STEM-papers language. Because it is purposefully unambiguous to interpret. May be like a modern day Latin, or something...

maga_2020··on Design of a silicon quantum computer chip
would somebody be able to compare this design with Microsoft's topological qubit design? which one has better unwanted interference/error correction potential, also are there any foundational operations that one design could do, but the other will not be able to ?
← PreviousPage 2 of 2