246 karma · joined Apr 14, 2012 (14y ago) · 135 submissions
comment 7y ago · link · parent
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
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
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.
comment 7y ago · link · parent
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
( 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
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
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).