GithubHelp home page GithubHelp logo

Comments (5)

philipcmonk avatar philipcmonk commented on June 1, 2024

Comment by cgyarvin
Wednesday Oct 02, 2013 at 17:17 GMT


That's a little daring for a novice Hooner! Actually, it is doing unnecessary homo operations. But this is heavy territory and the fix is not quite right. Also it doesn't really matter, as weld is jet-propelled. Alas, I am going to reject a PR for the first time. But not without an A for effort...

from urbit.

philipcmonk avatar philipcmonk commented on June 1, 2024

Comment by ericfode
Wednesday Oct 02, 2013 at 23:27 GMT


If you would not mind I would love to know what was wrong with it so I can improve my understanding of hoon.

from urbit.

philipcmonk avatar philipcmonk commented on June 1, 2024

Comment by cgyarvin
Wednesday Oct 02, 2013 at 23:36 GMT


It now reads:

  • => .(a (homo a), b (homo b))

It should probably read:

  • => .(a (homo a)a, b (homo b)b)

Ie, just cast it instead of actually doing it. But it's a somewhat
delicate area, doing inference at this level (even Haskell can't really do
it) and I am not terribly inclined to fix right now.

I don't think your code would compile - instead of resetting a and b, which
are there, we try to modify c and d which don't exist.

You can test your own hoon.hoon with

:reset

Be sure to :reload %batz to also get your libraries renewed.

On Wed, Oct 2, 2013 at 4:27 PM, Eric Fode [email protected] wrote:

If you would not mind I would love to know what was wrong with it so I can
improve my understanding of hoon.


Reply to this email directly or view it on GitHubhttps://github.com//pull/45#issuecomment-25585882
.

from urbit.

philipcmonk avatar philipcmonk commented on June 1, 2024

Comment by ericfode
Thursday Oct 03, 2013 at 05:36 GMT


=+ does not add them to scope?

from urbit.

philipcmonk avatar philipcmonk commented on June 1, 2024

Comment by cgyarvin
Thursday Oct 03, 2013 at 05:59 GMT


There is no scope - it's not Lisp here. =+ is just nock operator 8,
basically. =+ x replaces your subject s with [x s]. Thus, =+ foo=bar
gives you [foo=bar s]. We search the head first when looking for %foo, and
find your bar.

. is the subject itself. .(x y, z q) is the subject with the limbs x and z
modified to have the values y and q. Thus, on top of the subject you are
pushing another copy of the subject, modifying limbs in that copy that
don't actually exist. So, it may look pretty but it actually ain't...

On Wed, Oct 2, 2013 at 10:36 PM, Eric Fode [email protected] wrote:

=+ does not add them to scope?


Reply to this email directly or view it on GitHubhttps://github.com//pull/45#issuecomment-25599105
.

from urbit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.