115 karma · joined Aug 15, 2007 (19y ago) · 60 submissions
comment 7y ago · link · parent
At a guess, the author chose the syntax because it's familiar and easy to parse. Go's syntax is... eccentric where it differs from typical C-style languages.
comment 7y ago · link · parent
What you're asking for would have required an entirely different budget and likely would run counter to the point of the model. It's not a simulation.
comment 7y ago · link · parent
I think it's an interesting idea, but it doesn't bode well when they seemingly choose the wrong target for comparison and hand-wave away the difference as insignificant.
comment 7y ago · link · parent
The manual also states that it's for "a version of Lisp being prepared for the IBM 709", implying the manual was written while the interpreter was still being developed, and all references I've found state that the IBM 709 version was the first practical implementation.
More on the very early history of Lisp here: http://jmc.stanford.edu/articles/lisp/lisp.pdf
comment 7y ago · link · parent
Of course the current government never had any plans to conduct any preliminary steps. The two major parties (the Conservatives and the Progress Party) are all for it, but the minor supporting parties (the Liberals and Christian Democrats) are not, and so far they've gotten their will.
comment 7y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
Oral GABA doesn't cross the BBB in appreciable concentrations, but I assume they mean increase GABA neurotransmission, which can be done with any number of ligands that do cross into the brain. Probably not benzos, since long-term usage increases the risk of Alzheimer's (and cognitive impairment is an effect even in healthy individuals). But perhaps something like baclofen (chloro-phenyl-GABA) which was tested in a rat model here: https://www.ncbi.nlm.nih.gov/pubmed/29133125
comment 8y ago · link · parent
* https://github.com/bluenote10/nim-stringinterpolation/blob/m... This one does string interpolation and a printf-like syntax with compile time type checking. It does call out to C but only after it's already parsed and validated and transformed the format string.
* https://github.com/kaushalmodi/strfmt/blob/master/strfmt.nim This one implements a more complex string formatting syntax with lots of convenience functions. It's more complex but provides a lot more functionality than the previous one without relying on FFI.
I'm not a Nim programmer but I imagine those two demonstrate how Nim metaprogramming works even if neither exactly duplicates the behavior of printf.
comment 8y ago · link · parent
comment 8y ago · link · parent
I'm really reluctant to get into any further discussion though because it seems like you're arguing against things I never said, and bringing up irrelevant, but extremely invasive and side-effect prone procedures like hemispherectomy as if that proves that data about antidepressants is bunk, which is just a complete non sequitur. It would be like bringing up bloodletting or lobotomy as if that proves that the data about modern vaccines NOT causing autism is bunk. Just a complete logical disconnect.
comment 8y ago · link · parent
Depression treatment doesn't depend on "chemical imbalance" as an explanation either. Research on whether antidepressants work proceeds alongside research on why they work, if they do--usually studies on the efficacy of drugs are completely independent of mechanism. They study clinical outcomes, not neurochemical or larger structural brain issues.
So even if we had no idea why antidepressants (potentially) work, we could still know that they do work based on clinical outcomes. And it's not exactly true that we have no clue at all. The past 20 or so years the monoamine hypothesis hasn't been the main avenue of research into the neurobiology of depression. These days, it's at best considered one possible factor, not the defining and only factor. There's a lot of research into the structural changes that follow depression and recovery. For instance it's now known that serotonin helps regulate the expression of BDNF, which in turn regulates the growth and repair of brain cells and synapses. So it may well be that serotonin triggers large-scale "repairs" in the brain in areas related to emotional processing, such as the amygdala. Here you can see that the focus isn't so much on individual levels of "chemicals" in the brain as on the structure of the brain and how different natural and exogenous factors affect that.
comment 8y ago · link · parent
If we look at the scientific research, certain studies have claimed that aspects of creativity could be enhanced with cannabis (often based on self-reports rather than objective measurements), but those results are inconclusive at best. Cognitive impairments due to both acute and chronic cannabis use are much more well-documented. Here is a review of executive function deficits due to cannabis use:
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3037578/
Here is a study that found low-potency cannabis had no effect on creativity, while high-potency cannabis impaired divergent thinking: https://link.springer.com/article/10.1007/s00213-014-3749-1
If you want to argue that cannabis should be legal, I have no issue with that. But the way to go isn't to say "it's a cognitive enhancer", which it is not to the best of our scientific understanding.
comment 8y ago · link · parent
Also, building something with the benefit of 150 years of technological progress gives you quite a leg up on the past even if you use techniques that would have technically been available back then.
comment 8y ago · link · parent
Sometimes it is, sometimes it isn't. Most languages allow you to choose whether you want a hash to throw a key error on non-existing keys or return a signal value. My favorite is the uber-flexible approach and nice syntax in Crystal:
hash[foo] is sugar for hash.fetch(foo)
hash[foo]? is sugar for hash.fetch(foo, nil)
hash.fetch(foo) will return the default value of the hash table on nonexistent keys if one was assigned, otherwise raise keyerror
hash.fetch(foo, nil) will return nil on nonexistent keyscomment 8y ago · link · parent
comment 8y ago · link · parent
It implements a naive, simplified Python VM in Python. Of course, that is only a very high-level overview. By necessity it handwaves a ton by just relying on the underlying Python (like GC). For a more in-depth look, you can check out PyPy's dev docs (http://doc.pypy.org/en/latest/). PyPy is an alternative to CPython, so it does many things very differently (some in a way that have never been done in prog lang implementation before), but the docs do make comparisons to CPython.
comment 8y ago · link · parent
Personally, I say more power to this high schooler. It's just a research project, and it'll be interesting to see where it goes. Nobody is suggesting you replace Linux/OSX/Windows with this thing anytime soon.