profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/colah/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Christopher Olah colah San Francisco colah.github.io I want to understand things clearly and explain them well. @openai formerly @brain-research.

colah/Conv-Nets-Series 197

A series of blog posts on convolutional neural networks and their generalizations.

colah/HaskSymb 66

An Experiment in Haskell Symbolic Algebra

colah/NLP-RNNs-Representations-Post 37

A blog post using word embeddings and RNNs to explain representations.

colah/colah-essays 32

A place for me to keep essays/papers I'm working on...

colah/Motivated-Topology 27

A topology textbook with a hubristic title

colah/ByronTrialNotes 20

Notes from the trial of Byron Sonne

colah/data 14

package manager for datasets

colah/implicitcad.org 9

Website for ImplicitCAD

colah/ldnsx 9

A python ldns API for human beings

push eventcolah/colah.github.io

Chris Olah

commit sha 89603b73f7f84dc8f344ee6128f5422ed895a05c

color links + typo fix

view details

push time in 19 days

push eventcolah/colah.github.io

Chris Olah

commit sha 41e2efc6382cc3bfc0a78d3cfcfdb908f49e4317

caveat bio analogies

view details

push time in 19 days

push eventcolah/colah.github.io

Chris Olah

commit sha 2827905bc73d9bbdc50b418103f31a8bce08bf7e

publish bio analogies

view details

push time in 21 days

push eventcolah/colah.github.io

Chris Olah

commit sha 5dc4df75e97dabf0e34af39ed7a4eee6bea69ae6

finish bio analogies article

view details

push time in 21 days

push eventcolah/colah.github.io

Chris Olah

commit sha 96a0611f51b940ee2169bb5062553d2e86c75449

typo fixes

view details

push time in a month

push eventcolah/colah.github.io

Chris Olah

commit sha 44f08f70ed9c067589cda0cae490b667de52b5a6

update Habbema

view details

push time in a month

push eventcolah/colah.github.io

Chris Olah

commit sha bdcbbc70ff14bb59d18217282c6ef3028b6b44dd

Habbema draft

view details

push time in a month

PR closed sveltejs/svelte

[docs] Clarify reactivity and functions docs

For a long time, I've had some vague uncertainty about when exactly reactivity will interact with functions I declare in the way I expect, if the function uses a reactive variable. Once I thought things through, it seemed pretty straightforward, and I thought it might be worth clarifying in the tutorial.

See the new tutorial chapter for explicit examples of the kind of thing I was finding unintuitive.

+84 -0

10 comments

3 changed files

colah

pr closed time in 2 months

pull request commentsveltejs/svelte

[docs] Clarify reactivity and functions

Thanks for the feedback all. What I'm hearing is:

  • This explanation should be rewritten with a more concrete example and be simplified.
  • Even if it used a concrete example, it might not make sense to include.

I think the thing that makes the most sense is for me to close the PR, and if someone else feels this is an issue they can write something up:

  • If I tried to make this concrete, the examples that would be natural to me are pretty obscure to a general web dev audience. Someone else can probably do this better.
  • It seems like the converging to consensus would take a fair amount of iteration. My guess is we all have higher priorities.

Thanks so much for all the work you do on Svelte and good luck!

colah

comment created time in 2 months

pull request commentsveltejs/svelte

[docs] Clarify reactivity and functions

@hchiam @benbender - I saw you +1ed this, do either of you want to comment and offer an alternative view? By default, I plan to withdraw the PR.

colah

comment created time in 2 months

pull request commentsveltejs/svelte

[docs] Clarify reactivity and functions

Again, my experience is that as soon as people starting writing functions, they're going to get very confused. But others probably know the audience of the sevlte documentation better than me and I'm happy to defer.

colah

comment created time in 2 months

pull request commentsveltejs/svelte

[docs] Clarify reactivity and functions

Hi Paulo,

Thanks for the feedback!

I work on a small team using svelte for data vis in machine learning. It's often very natural for us to write functions that implicitly refer to "global" reactive variables. Passing each one in explicitly as an argument adds a lot of code smell and complexity.

The single most common stumbling block I've seen in myself and collaborators using svelte has been getting confused about this issue. This leads to people being paranoid and passing every single parameter to the function explicitly as an argument, leading to harder to read code.

Obviously, the examples here are very artificial. A more natural example would be a color map function which needs to depend on global state. A more realistic example might be soemthing like:

<script>
function color_map(value) {
 ... code that relies on reactive variables...
}
</script>

<div style="color: {color_map(1)}></div>

vs

<script>
function color_map(value, ...extra args corresponding to reactive variables) {
 ...
}
</script>

<div style="color: {color_map(1,  ...extra args corresponding to reactive variables)}></div>

Of course, my experience may not generalize and we've clarified the issue for ourselves. If this isn't helpful, I'm of course happy for the PR to be rejected.

colah

comment created time in 2 months

Pull request review commentsveltejs/svelte

[docs] Clarify reactivity and functions

+---+title: Reactivity and Functions+---++Svelte reactivity can be slightly unintuitive once you start declaring your own functions.++For example, you might have some code where a reactive variable is becoming a bit complex:++```js+let x = 0;+let k = 1;++$: y = (x*x+k) * (x*x+k) - k;+```++And want to abstract perhaps it's natural to think of there as being a function `f(x)` with `k` as a global variable:

Thanks! And thanks for catching that, I threw this together pretty quickly this morning and should have proof read it more carefully. :)

colah

comment created time in 2 months

PullRequestReviewEvent

push eventcolah/svelte

Christopher Olah

commit sha 59aa674569136bbdb5ce8381d1ec71803e27cc23

Update site/content/tutorial/02-reactivity/05-reactivity-and-functions/text.md Co-authored-by: Howard Chiam <hchiam@users.noreply.github.com>

view details

push time in 2 months

pull request commentsveltejs/svelte

[docs] Clarify reactivity and functions

Looks like there's a flaky test that timed out. I think it's unlikely my changes would cause that.

colah

comment created time in 2 months

PR opened sveltejs/svelte

[docs] Clarify reactivity and functions

For a long time, I've had some vague uncertainty about when exactly reactivity will interact with functions I declare in the way I expect, if the function uses a reactive variable. Once I thought things through, it seemed pretty straightforward, and I thought it might be worth clarifying in the tutorial.

See the new tutorial chapter for explicit examples of the kind of thing I was finding unintuitive.

+84 -0

0 comment

3 changed files

pr created time in 2 months

push eventcolah/svelte

Christopher Olah

commit sha ab4868050f733c60b93e9aa8c297ea802c6de3df

Clarify reactivity and functions

view details

push time in 2 months

fork colah/svelte

Cybernetically enhanced web apps

https://svelte.dev

fork in 2 months

issue closedtensorflow/lucid

save show(VIS) to .jpeg

I did get this working awhile ago, where I was able to write show(VIS) directly to an image file(.jpeg) . but I lost my source code. I rerember trying with PIL and CV2 but dont rerember which one is the one that did end up working.

for example by default the examples simply display the output once finished, but does not save it to a file. #------- vis = render.render_vis(model, objective, param_f=param_f, thresholds=[512], verbose=False, print_objectives=[content_obj, style_obj])[-1]

show(vis) #------

I want to modify the above to also save vis to physical img. But the array format is tricky

closed time in 3 months

400lbhacker

issue commenttensorflow/lucid

save show(VIS) to .jpeg

You want to use lucid.misc.io.save

400lbhacker

comment created time in 3 months

push eventcolah/colah.github.io

Chris Olah

commit sha 7aab33fe5b4f9bdf131c5961c856f4de875e4715

fiddle with about

view details

push time in 3 months

push eventcolah/colah.github.io

Chris Olah

commit sha e4b1361bde50085fbf6332e99322fa7feb2207b0

update aobut

view details

push time in 3 months

push eventcolah/colah.github.io

Chris Olah

commit sha f8bc09e513c645de0bea8ead8526676af1bf4473

about refactor

view details

push time in 3 months

push eventcolah/colah.github.io

Chris Olah

commit sha 001aa7c36e0eca4df4ec923ecaa05364c9eec111

update about

view details

push time in 3 months

push eventcolah/colah.github.io

Chris Olah

commit sha 23930ab1fdd7819588e5c6bd78acdec2542e88e2

small edits

view details

push time in 3 months