Better HN
topnewbestaskshowjobs
Log inSign up

platform

246 karma · joined Apr 14, 2012 (14y ago) · 135 submissions

Submissions

comment 7y ago · link · parent

ah, this is great news. Thank you.

I have been monitoring this since October last year. Since now freeBSD has it, other BSDs should soon pick that up.

I noticed that freeBSD is bit like a 'mothership' as far as package ports go, to the other BSDs.

comment 7y ago · link · parent

90% of commercial programming, is really invoking somebody else's APIs.

In my experience, most problems and frustration comes from working the APIs (or somebody else's interpretation of the business need) -- not programming language.

comment 7y ago · link · parent

https://openbsd.amsterdam/setup.html

this was posted here. I was intrigued but have not tried it (because my software relies on java 11, which is not on OpenBSD)

comment 7y ago · link · parent

Depends on the software requirements you have, and perhaps on the network throughput you need.

For example java 11 is not, yet, a native option in any of the BSDs (OpenBSD, FreeBSD, NetBSD, DF Bsd).

comment 7y ago · link · parent

I wonder if Facebook's opensourcing of BPF [1] 4 months ago had negative affects on F5's competitive advantaages.

BPF allows to run user code in kernel modules, so things like packet rewriting and traffic shaping are possible. [2]

[1]https://news.ycombinator.com/item?id=18337429

[2]https://facebookmicrosites.github.io/bpf/docs/bpf-docs#tools...

comment 7y ago · link · parent

Yes, that's exactly how the author of the article is explaining it (including the picture).

I was just commenting that it was good that, the author took time to explain this.

And those kinds of nuances/counter examples are not always available in explanatory dynamic visualization tools (such as the ones referenced in the comments here [1] ).

To be clear, I am not arguing against dynamic visualizations.

These are very nice, very very helpful, and very time consuming to build and present on a website.

I am just suggesting that showing negative examples is a complimentary, and powerful explanation technique.

[1] http://setosa.io/ev/eigenvectors-and-eigenvalues/

comment 7y ago · link · parent

really good explanation. I like it even better than 3blue1brown or visualisations that I had seen.

It is better because it really covers every step of the construction process.

And offers explanation of why certain thing are not the right construction blocks. The author gives a visual example, for example, of why basic vectors 1,0 -1,0 are bad. The article shows they cannot span the whole space.

Those kinds of explanations of 'bad constructions' are difficult to show in visualizations, that show 'good' constructions only.

But, yet, in my view, these negative examples, are really helpful to explain the material that otherwise, requires 'intuition'.

Not everybody has same intuition, so showing negative examples/impossible constructions, and why those do not work -- is a good way tuning one's intuition.

---

On a separate note, I am wondering if such good step by step + counter examples, knowledge presentation -- is a result of author studying at MIT, or a natural trait (or both) ?

comment 7y ago · link · parent

The problem author describes, is very similar to the problem of response caching. And DSL that may be similar to Varnish DSL

https://varnish-cache.org/docs/trunk/users-guide/vcl.html

Varnish VCL, accomplishes the job, but far from elegant, of course.

It would be nice, indeed, to be able to start from some template of a rules language.

Where one can customize the 'language syntax' of declaring entities, and what to do with them. And,then, to implement a domain-specific backend (either as code generated, or as interpreted at run-time).

I could not find a framework like that when looking for it, however.

( At the time, I was looking for something allows me to quickly build frontend, and backend runtime in language that can be embedded into java, C++ and javascript).

I started with metalua (this was years ago), and some success but was too difficult at the time to take it further.

Then I tried xText and xtend (so that I could get automatically an IDE.. but again was too difficult).

> > "... The project I am currently working on involves receiving and processing gRPC messages from some A-brand network devices. The messages contain ordered sets of key-value pairs. The meaning and naming conventions for the keys and values varies greatly and is inconsistent across different message types. The problem was how to describe various processing rules for the messages...."

comment 7y ago · link · parent

I am from Gomel. I was there when that happened.

About 70% of the fallout landed were we were (the winds were blowing north that time, so Ukraine's side was bit more spared).

Most of the time, I do not want to talk about it, though.

Feels like we were cheated out of normal life. Feels like we were animals to do experiments on.

I hate that time. Even now, place does not feel right.

I do not think health statistics coming out from here, are right either...

I also do not like videogames about Chernobyl for some reason. But I understand why the story line is attractive. So I am ok with that at a 'logical' level.

Once I become 'a person of means', I want to help people to get out of there, or, at least, live with proper controls of what we eat, drink, breath, etc.

comment 7y ago · link · parent

Yes, very much so. Having a C++, GO, Java, RUST, Python and F# IDEs running on Risc-V.

Allowing to debug, experiment, without relying on centralized hosting providers -- would be a huge boon to Risc-V.

Early adaptors will be developers, than their family/friends circle. Then there will be Risc-V-First movement (mirroring mobile-first movement), and there it will start...

> So RISC-V CPU designers should aim for the developer market then? First win the hearts and minds of developers, then everything else will come.

comment 7y ago · link · parent

If new features are implemented as 'composable' algorithms, meaning that they:

a) can be used, optionally

b) can be composed with each other into new data processing (eg filtering/aggregation) models

c) did not reduce, significantly complicate, or create many 'exception rules', to otherwise a coherent model

Then those are good additions, in my view.

Also, I personally found, useful about Redis is its protocol. It is a very useful and poweful paradigm when different systems by different authors/companies implement same protocol. It reduces cognitive overload on users (programmers) and helps to continue building their domain expertise, rather than constantly re-learing APIs of tools or libraries.

So work on RESP3, in my view, is very welcomed.

comment 7y ago · link · parent

Drones with infra-red are already used for using infra-red identification (not bombing the animal, that would be horrible).

But perhaps more tech could help too.

I think the problem too, is incentives. Everglades is a dangerous place...

But sponsored hunts pay little

" Hunters earn $8.10 per hour for up to eight hours daily, $50 bonus for each python measuring up to four feet (plus an extra $25 for each additional foot), and $200 for each eliminated python nest with eggs. "

https://woodburyoutfitters.com/the-trailblazer/using-drones-...

Finding nests is very hard... Basically one needs to add a tracker to the animal to see where they go.

In general invasive species that kill native species is a problem all over the world...

There should be a well thought out and, most importantly replicatable, corruption-free process how to deal with it (as well as other man-made natural catastrophes).

comment 7y ago · link · parent

WRT >there's little to be gained by storing state that is truly temporal/localized in a persistent/global store (which is necessary for enabling a truly pure mapping of state to UI),

Perhaps, I mis-understood, but when I do .setState({data}, fnToCallAfter)

as a user of React, I do not really know where the state is stored, in other words, I do not store in global/persistent store.

---

I do use React.Context quite a bit to store my LoginState, my special purpose in memory store (using Immutable.js) that acts as cache for some often used/expensive to get backend data. When my LoginData, or CacheData get updated, react automagically calls 'render' (and static friends) on all the mounted components that have signed up to observers to the Context's changes.

This is very similar to newly release AndroidX jetpack Lifecycle-aware ViewModel, that calls the observer methods, only on activites/fragments whose lifecycle is 'active' (this reduces complexity of managing android activities during the 'rotation/config' changes.

---

I am just not clear where you run into a situation where you had to use the component-level state management in react, that required you to see the innerworkings (or implement) your mechanism to store component's state.

comment 7y ago · link · parent

state of the tree is a composite of states of the components.

components know about their state only.

the UI runtime is the one that understands 'state of the tree'

comment 7y ago · link · parent

I like it. Here is my own rendition of Dan's approach (interleaved with experience from about 12 K lines of React native/ react native web)

A ) Dependency Tree (eg dom or virtual dom) is the interface user interacts with.

B ) Each interactable element in the tree can have its own state.

C ) Each interactable element gets data or update data from/to its own state.

It can also get data from 'properties' that a parent passed on (but the interactable cannot update those properties itself, instead it must call its parent's function to do that)

D ) After the above A, B, C are setup -- the code interacts with the state, not with UI elements

E) The UI runtime is a collection of mechanism that supports A, B, C.

This includes :

1) Primitives allowing Interactable to be attached and interact with the dependency tree, ability to receive data from parents

2) Well defined (from both APIs, callbacks, and Data) primitives -- that enable state management within the Interactable, and across their dependency tree

This also includes mechanism deciding efficiently, which state changes affect which Interactable)

3) Developer friendly run time helpers to debug and manage the above

----

Cleary A) --> can be a dependency tree of Excel cells, or Matrices, or robot's extremities, for that matter.

Clearly B) (the state) is widely appreciated these day ViewModel (as it is called in Android's new JetPack LiveData components)

The state is also the thing that can be validated, even with TLA+ (which is what am thinking about, in a downtime).

And it is much much easier, in my view to map interaction business rules to state, rather than to UI.

---

I am looking forward to try this with my console UIs project.

---

I also have a strange feeling, that this model will work when I have to manage complex backend interdependencies,

where updates to distributed caches affect the algorithms running across a server farm.

---

comment 7y ago · link · parent

Not answering your question directly. But found, for my needs for desktop support for Wayland is important (because I use AMD graphics cards without a fan (as I cannot cope with noise well)).

And since manufacture driver support for AMD is not there (my cards are over 5 years old) -- I found that speed of Wayland is really good.

So I 'standardized', on Fedora and just upgraded from 27 to 29 in one shot, using their upgrade plugin with 0 problems (had to uninstall like 3 packages and put them back).

comment 7y ago · link · parent

JWT refresh tokens are equivalent to passwords. (they are active for days at a time).

I do not know of many web apps that store passwords in browser storage.

Unlike passwords, JWT refresh tokens are created programmatically (not entered by user interactively).

Perhaps,I am just missing a link, but I though browsers do not allow an application to programmatically store passwords securely

comment 7y ago · link · parent

nice.

I assume, still, it should not be used to store JTW refresh tokens, or anything where secure storage is required.

comment 7y ago · link · parent

WRT "… If your database tech does this_amazing_thing_that_nobody_else_does, you'd better be goddamn sure you understand the reason why nobody else does it …"

I think several databases actually do this.

For example, Alerting in MarkLogic

https://docs.marklogic.com/guide/search-dev/alerts#id_29203

Another example is

Percolations in Elastic Search

https://www.elastic.co/guide/en/elasticsearch/reference/curr...

---

My personal view is that those are useful features, however, often they indicate poor architecture where developers did not create proper APIs that put data into the database, and instead rely on database 'triggers' (or percolations/alerts) to notify the 'world' about changes.

Those kinds of notifications, should really be coming from either data consumer or data producer APIs, -- not from the database engines.

comment 7y ago · link · parent

I doubt that purpose build data structures optimizing L1/L2 cache, will be slower (or even similar to ) a database running on the same machine. Assuming, of course, that all that's needed can be fit into memory. Databases will do much better when you need to spill to disk.

There is a data structure called Judy arrays, invented by Doug Baskins. Judy array was used at some point in time in Erlang to back up its ets tables.

The paper (2003) comparing various data structures for that task is here

[1] http://erlang.org/workshop/2003/paper/p43-fritchie.pdf

"....

For unsorted tables with populations of 70,000 keys or more, performance improvement by using the judyeh table type instead of set is easily measurable and significant.

This improvement can be seen with keys in sequential order and random order during operations involving table insertion, lookup, and counter updates.

The deletion operation is not as fast as set, but deletion’s extra cost is smaller than the benefit of insertion, lookup, and update operations combined. Furthermore, the additional RAM required by judyeh tables is quite modest.

The judyeh table type requires only about 6% more than set tables, which is smaller than the additional 15% required for the same data in an ordered set table.

The only operation this research examines which is significantly worse for judyeh tables than set tables is table traversal using the ets:next/2 function.

…".

Would be interesting how Judy arrays are compared to radix

comment 7y ago · link · parent

Overtime, I have come up with the following formula. This is just from personal observations, but did not find it really wrong, yet.

obnoxiousness = ambition - competence

comment 7y ago · link · parent

One other that helps JSON/REST to remain defacto these days, is not just a web browser support. But also nice mobile clients like Retrofit.

Retrofit seamlessly converts JSON data by means of json de-serializer, into Java classes. So we get typefull semantic (but, albeit at run time only).

I have retrofit integrated with RxJava, and when I looked what it would take to 'plugin' gRPC, I found that I have to change not just my backend, but all the wiring for the mobile frontends. And, at the time it looked like too much work.

If Retrofit, would make it transparent JSON vs gRPC -- then it would be great for folks that already invested into Retrofit/JSON.

comment 7y ago · link · parent

interesting. last:: -- I assume, means 'most-recent'.

maintaining pre-calculated 'most recent' is very useful (as long as I can ask 'what was most recent, say, yesterday at 1pm').

Most of the 'hand-made' append-only data schema design suffer from not being able to return 'joined' most-recent datums, quickly.

Because a 'usual' implementation requires doing join with select max on business or system (or both) time stamp

My understanding that both DBs I mentioned previously do copy of write for temporal data, but I am not sure if they do any document level-diffs.

comment 7y ago · link · parent

could you describe major differences and overlaps between your solution and Datomics, MarkLogic temporal documents (https://docs.marklogic.com/guide/temporal/intro).

Some compare with any other database 'time travel' feature would be helpful as well.

Thank you

55.

[Dec-2018] omniORB: Free CORBA ORB Release(omniorb.sourceforge.net ↗)

3 points · by platform · 7y ago · discuss

comment 7y ago · link · parent

Opensource, seems to be now defining how the overall professional programming develops, and how overall computing technology develops.

It is a very powerful phenomena that, may be more akin to development of a writing system(s).

There is simply no way to stop it, or reduce it to a 'island' of some sort.

So active creators of OSS value, definitely need to keep in mind how wide and long term the influence of their decisions might be. As the societies will continue to use their constructs not just in software but in other areas as well, for a long time.

---

Just the other day, I was thinking how many programmers are there in the world (and i my definition -- these are people who had written software for 2+ years, and were paid for it).

Older estimates (eg https://news.ycombinator.com/item?id=3555251 )

are off.

I think the number is closer to 50-70 mln.

But I also caught myself thinking, that programming in some scripting language to perform some task that by itself is not creating a new program -- is really a modern type of literacy (such as reading, writing, math).

comment 7y ago · link · parent

I am not an expert by any means. But asking child at, say, age 13 to read portions of it and explain back to parents, what she/he picked up from there -- will work well.

Probably a type of 'self-awareness' of own's thinking process does not start before 11.

comment 7y ago · link · parent

When we deal with state full objects (classes instances/ database objects/ in memory caches) -- we have to segregate the operations on those objects as:

( 1 ) Operation can be applied multiple times -- result will not change (idempotant op) -- eg delete, select

( 2 ) Operation order is important (eg balance cannot increment before payment is processed )

( 3 ) operation order is not important, or ordering conflicts can be mitigated by the solution/underlying platform completely.

So what React team has realized, is that updating a state variable ( a change operation), often falls into ( 2 ).

As react getting more and more use, it tries to find more and more areas to optimize. Which is good.

In both time and ram-space dimensions...

For the React's run-time system, to perform global optimizations, it is really important to know what order the developer had implied in his/her design for case ( 2 ).

Very similar, to what an optmizing compiler, would like to know about a flow of calls/etc.

this is very difficult to do for a user level application in JS.

Without some help from the developer using the library, those optimizations cannot be done, or they will cause user's state to get corrupted.

Their solution is to keep the existing machinery as is, but allow a user to 'tell' the framework about the state variables a bit more than usual.

To me this this a fair tradeoff/ask.

So I will have to learn a bit more, and may be even restructure my code, to let React (and React Native) to do better global optimizations....

Why not ?!

Most programming languages syntax is poor as specifying the intended order of function invocation or value change rules, as 'compile-time' directive. (well, I at least, do not know of any language that let's me do that -- so I resort to forcing some order though function arguments and return type, so that a call to nxt function, must have a certain type provided by a return of a previous function...

I think explicit state management, is absolutely the correct problem to tackle. it is difficult and error prone.

It is not fair, in my view, to judge React added complexity in this area, as 'deterioration'.

Ideally these types of things should have been solved by the compilers .. but javascript (and browser) ecosystem is probably 10-15 years away from even thinking about this.

comment 8y ago · link · parent

agreed. it would be particulary nice if DragonFly can be provisioned,optionally, as an underlying OS for Postgres, and for general file servers.

I, for one, am, slowly studying/investigating if Hammer2 can be used to store and serve (with random access) billions of files (media), instead of using more purpose build' distributed file systems.

comment 8y ago · link · parent

Dr. Oalkley's book

https://barbaraoakley.com/books/a-mind-for-numbers/

Added a lot of clarity to my process of thinking. Highly recommend as well (I did not take the course, though, just found the book by accident).

12345