Better HN
topnewbestaskshowjobs
Log inSign up

daneelsan

178 karma · joined Aug 27, 2020 (6y ago) · 37 submissions

Submissions

comment 4y ago · link · parent

In Mathematica/Wolfram Languege, the part 0 of an expression is reserved for the head of the expression: f[x, y, z][[0]] == f. Or g[f][x, y][[0, 1]] == f.

comment 4y ago · link · parent

Scott's thots part 2

comment 4y ago · link · parent

And just now console.log() :) https://github.com/daneelsan/zig-wasm-logger

comment 4y ago · link · parent

I am also trying to learn wasm via the zig route:

* A minimal example showing how HTML5's canvas, wasm memory and zig can interact: https://github.com/daneelsan/minimal-zig-wasm-canvas

* This mini game shows how Zig, WASM, Javascript and HTML5 canvas can interact: https://github.com/daneelsan/Dodgeballz

* WEFX is a simple graphics drawing package using Zig, WASM, and an HTML canvas: https://github.com/daneelsan/zig-wefx

comment 4y ago · link · parent

My goto right now is to listen to One Piece OST.

6.

The Making of a New Kind of Science(writings.stephenwolfram.com ↗)

2 points · by daneelsan · 4y ago · discuss

comment 4y ago · link · parent

There is a difference between online education because there is no other way as there is a pandemic (are the students and the institution ready to switch to online, are the courses even designed to be imparted online, etc.), and online education because it's a choice.

comment 4y ago · link · parent

OK bud

comment 4y ago · link · parent

Would it be profitable, though?

comment 4y ago · link · parent

I'm not sure why comments mention CA. His physics theory and the multicomputation stuff does not make use of CA's (at least no more than any other abstract machine).

comment 4y ago · link · parent

Didn't he invent a numbering schema for classifying CA? That should count as an achievement.

comment 4y ago · link · parent

> it's nothing more than noodling cellular automata in ways that have had no effect whatsoever on chemistry, physics, or biology.

I mean, you could at least read a bit about what his Multicomputation stuff is really studying. CA are not being noodled there.

13.

Quantum Computing in Wolfram Language(wolframcloud.com ↗)

1 points · by daneelsan · 4y ago · discuss

comment 4y ago · link · parent

Yes

comment 4y ago · link · parent

Simple rules do not necessarily mean simple behavior. Explore where observation leads in various different systems and rules.

comment 4y ago · link · parent

Interesting...

comment 4y ago · link · parent

I see what you mean, simpler indeed!

comment 4y ago · link · parent

It has GC, e.g. DataStructures (https://reference.wolfram.com/language/guide/DataStructures....) are GC'd. IIRC it uses refcounting for this.

comment 4y ago · link · parent

Tom is the current main developer of the new Wolfram Compiler. Search in YouTube "wolfram compiler" and you'll see almost all the talks are his.

20.

The Design and Implementation of the Wolfram Language Compiler (2020) [pdf](dakkak.dev ↗)

145 points · by daneelsan · 4y ago · 18 comments

comment 4y ago · link · parent

Yeah, I do want some kind of defer.

comment 4y ago · link · parent

Some say they don't like it because it it's implicit control flow, i.e. I don't like that my code is being put into the end of the function without it being in the end of the function. I mean OK, but that's what for loops so right? The i++ is put at the end of the "while" loop, together with the exit condition. I think the more important problems are: 1) why be function scoped and not block scoped? 2)why should it be so tied up with lambdas?

1) I don't se why they chose function over scoped so please enlighten me 2) the proposal said there were debates whether defer free(ptr) refers to the ptr where the defer first appears, or to the current ptr that appears when the defer block is being executed. As someone mentioned, gotos already work in the latter way. Same goes with i++ in a for loop, I could do whatever I wanted with the i inside the for, and the i++ or the exit condition would use the latest value of i, not the value at the start of the block.

comment 4y ago · link · parent

Huh that's a good point.

comment 4y ago · link · parent

Why ado you think namespaces make it a no brainer? I would argue the only thing I would want from C++ it's operator overloading, and I'm not even conviced about that.

25.

Charting a Course for “Complexity”: Metamodeling, Ruliology and More(writings.stephenwolfram.com ↗)

26 points · by daneelsan · 5y ago · 7 comments

comment 5y ago · link · parent

That sounds really interesting!

comment 5y ago · link · parent

That seems like the thing I'm looking for! Thanks for the info

comment 5y ago · link · parent

I guess that can be solved by creating an Expression type

comment 5y ago · link · parent

Yes. At some point i encountered this trie with payloads (which would act as t he field values).
12