Better HN
topnewbestaskshowjobs
Log inSign up

rvprasad

26 karma · joined Oct 23, 2017 (9y ago) · 32 submissions

Submissions

comment 1w ago · link · parent

To clarify, by "type mismatch", I meant checking if an int value occurs in a byte array (and, hence, in the wrapping sequence). Of course, appropriate type coercion would prevent such a mismatch.

The disagreement between `.indexOf` and `.contains` is interesting. Nice catch!! `.contains` returns true for both 2 and `(byte 2)` while `.indexOf` returns -1 for the 2 but 1 for the `(byte 2)`.

I believe `.indexOf` is invoked on a ArraySeq_byte object.

comment 1w ago · link · parent

One of the bug is erroneous; see the first issue at the top of this thread. So, either the model for byte-array was erroneous or the translation of the counterexample into code was wrong.

comment 1w ago · link · parent

As different tools (e.g., SPIN, Z3) have been used as "checking engines" to realize verification solutions, I think trying to use Lean as a checking engine is understandable; more so, if Lean provides additional benefits (e.g., richer library, higher level of abstractions, performant checking) over other tools that help reduce modeling tedium, improve model fidelity, or speed up checking.

That said, I think the issue of model fidelity and spec/property correctness will still exist in a reduced form. Also, simpler solutions/tools may be better suited for certain classes of properties.

As for how this exercise worked, my guess is that the agent models both the SUT and the environment, encodes the property based on property templates, and checks the model for bugs (w/ counterexample) or correctness proof using a set of tactics; see https://github.com/hirosassa/lean-verify/blob/main/skills/le.... I hope the author or others can provide a better explanation.

comment 1w ago · link · parent

I believe most significant/critical software (written in Clojure) would not pass a float/double as a key in the context of string object. At the same time, instead of evaluating the impact of such a change, the core team may just lean on Hyrum's law and decide to not change the behavior. It is also possible that the core team may just ignore this list.

So, while I prefer changing get's behavior to match our intuition in the context of string objects, I think it could go either way, which is not saying much :)

comment 1w ago · link · parent

While the effort is interesting, I found two issues in the list.

First, (.indexOf (seq (byte-array [1 2 3])) 2) fails because byte arrays store bytes and the argument 2 to `.indexOf` is a Long value. Simple type checking (via eyeballing) could have flagged the incorrect usage. I think such exercises can be more helpful if we can reduce the noise.

Second, (get "abc" 1.9) fails because `get` coerces the given key to integer in the context of string objects, which makes sense; specifically in the context of weakly typed language. That said, I believe that detailed documentation of the behavior of `get` can help clients just as well as returning `nil` or not-found value. However, we are still left with questions such as "who and where do we draw the line about the dynamism of the language?" and "what is the agreed upon semantics that we are checking against?"

comment 1w ago · link · parent

The post aptly captures the "limitations" of formal verification and how they apply to the recent proof of RH. I hope everyone chiming into the LEAN proof of RH discussion consider these limitations.

7.

Limitations of formal verification and the LEAN proof of RH(tagide.com ↗)

3 points · by rvprasad · 1w ago · 2 comments

comment 10mo ago · link · parent

While delegating fund collection and disbursement to one organization reduces overhead for each project, the centralized nature of the setup can be asking for trouble.

Instead, why not accept the reality that 1) projects may charge for their offerings and 2) users may have to pay for such offerings? As a user, if a project's offering is useful to me, then I should be willing to pay for it. As a creator, if I want to get paid for my offering, then I should be willing to ask for it. An upside of such a change could be that we start being more focused and prudent about what we use and create.

Without such delegation, projects will have to do the heavy lifting in terms of collection of funds; features such as sponsorship in GH or setting up e-payments via Stripe or Paypay may help reduce this brunt.

9.

Thoughts about Programming Environments (Reflections from Advent of Code 2023)(rvprasad.medium.com ↗)

2 points · by rvprasad · 2y ago · discuss

10.

Testing changes that fix flaky tests(rvprasad.medium.com ↗)

1 points · by rvprasad · 2y ago · discuss

11.

Hey LLM Please help me understand to this system(rvprasad.medium.com ↗)

1 points · by rvprasad · 3y ago · discuss

12.

Test Flakiness: Improper Use of Timeouts (Blog Post)(rvprasad.medium.com ↗)

1 points · by rvprasad · 3y ago · discuss

comment 5y ago · link · parent

While they are not solely focused on distributed systems, these five books -- https://rvprasad.medium.com/books-about-designing-systems-of... -- cover different aspects of designing systems of scale, which are most often distributed systems.

comment 6y ago · link · parent

I doubt paywall is true for all articles. I think paywall applies only to articles that the author elects to get curated by Medium team and gives up monetization opportunity. https://help.medium.com/hc/en-us/articles/360006543813-Frien...

15.

A large collection of malware datasets spanning Android and web/internet(unb.ca ↗)

1 points · by rvprasad · 6y ago · discuss

16.

Extending and analyzing storyboards can help secure mobile apps

1 points · by rvprasad · 6y ago · discuss

17.

The App Store Debate: A Story of Ecosystems(medium.learningbyshipping.com ↗)

2 points · by rvprasad · 6y ago · discuss

18.

Breezy guide to using Python's built-in support for logging

1 points · by rvprasad · 6y ago · discuss

19.

Books to learn about designing systems of scale(medium.com ↗)

3 points · by rvprasad · 6y ago · discuss

20.

Terminology for Logging(medium.com ↗)

1 points · by rvprasad · 6y ago · discuss

21.

Extending and analyzing storyboards to prevent vulnerabilities in Android apps

1 points · by rvprasad · 6y ago · discuss

22.

Observations about performance and reliability of 14 web service technologies(medium.com ↗)

3 points · by rvprasad · 7y ago · discuss

23.

Performance of System V Style Shared Memory Support in Python 3.8(medium.com ↗)

10 points · by rvprasad · 7y ago · discuss

24.

Logging = Observability – Monitoring(medium.com ↗)

1 points · by rvprasad · 8y ago · discuss

25.

Evaluating Effectiveness of Free Android App Security Analysis Tools(arxiv.org ↗)

1 points · by rvprasad · 8y ago · discuss

26.

Using a SAT solver to identify breadth-first traversal order of a directed graph(medium.com ↗)

1 points · by rvprasad · 8y ago · discuss

27.

Using a SAT solver to solve a simple version of Sudoku(medium.com ↗)

2 points · by rvprasad · 8y ago · discuss

12