Comments (5)
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.
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.
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.
Comment by ericfode
Thursday Oct 03, 2013 at 05:36 GMT
=+ does not add them to scope?
from urbit.
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)
- clay, ames: applying change to widely distributed desk is very slow HOT 7
- Upgrade from 413 not working, "clay: failed to upgrade kelvin (wick)" HOT 3
- Ship crashing on boot with "behn: timer failed, queue blocked" HOT 2
- Rounding modes for floating point values differ.
- Can not boot ship (ran locally) HOT 3
- Out of disk space VPS because of 0i0 logs HOT 2
- loom: patch partial write error HOT 1
- Thread returns on a different wire than it was called on HOT 1
- upgraded to v3 on raspi and now no longer able to boot because of "out of memory" error HOT 6
- Web interface refuses to connect HOT 6
- "Assertion '0' failed in pkg/noun/manage.c:1801" on boot HOT 11
- `-build-file` with a core seems stateful HOT 5
- Ships erroneously crash with "loom: patch write: fail: No space left on device" HOT 2
- #4 HOT 3
- #118577 HOT 1
- Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
- ship will not load after chop data removal HOT 4
- %fine-mismatch spam HOT 5
- ship crashed after enabling `&verb %bowl` HOT 1
- Dormant Ship - Unresponsive HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from urbit.