Ask HN: Comment here about whatever you're passionate about at the moment
982 pointsIt has occurred to me that one of the crucial elements of the early internet was the feeling that there was somebody out there, _somewhere_ on the globe, that was actually responding to that particular thing you were putting out there. It was a special feeling, because it was a sense of connection. Just being online and being part of the few select communities that existed back then was a commitment, and I believe that's in part what made it feel special.
With all the world gaining access to the internet, I think we've gained a lot, but lost this sense of wonder: Since online interactions have now become commonplace to the point of para-social meaninglessness, any single post or message doesn't really feel all that _real_.
HN is still the closest thing I know to that primordial kind of internet, and so I'm putting this post out there. It might get buried instantly, or it might survive, and on the off chance that it does:
I encourage you to comment here about whatever you're passionate about at the moment, however niche it might be. It might let you find some likeminded people and maybe recapture a bit of the best aspects of the internet in those early days.
In any case, I sincerely wish you a great day, from one surprisingly-real-but-currently-text-based being to another :)
Comments (753) 322 threads
Earlier commentsI've quite enjoyed reading the other responses here - this hit at a great time for me, between the two 1AMs Eastern, when all is quiet and dark outside and I work by lamplight, feeling a bit of that electric connection to everyone here.
Basically, f-expressions unify macros and functions. This combined thing is called a "combiner". It works by being different from a macro/function in two main ways: 1) It has a "wrap level" that encodes how many times arguments to this combiner should be evaluated when it is called and 2) it has an extra parameter that receives the dynamic calling environment when the combiner is called. A normal function is simply a combiner with a wrap level of 1 and ignores the dynamic environment parameter. A macro is a combiner with a wrap level of 0 and first constructs new code out of the passed regular parameters before evaluating the entire thing using the dynamic environment that was passed in (using an eval function, like you would find in JS or Python).
The cool bit is that these are all first class, available at runtime, and subsume not only functions and macros but also all special forms in the language! "if" and "let" and "while" can all be normal combiners (albeit built-in ones), and you can define new ones as easily as writing a function would be.
This makes the language much simpler and uniform while gaining expressive power, and fixes a lot of rough edges. (For instance, you can't do the equivalent of "(map and '(true false true true))" in Scheme, because "and" is a macro and thus can't be passed to higher-order functions. It can work just fine in a language built around f-expressions, though!)
The major downside to f-expressions is that they tend to be unbearably slow, since they (normally) prevent pretty much all optimization and remain to re-run over and over at runtime (unlike macros which would be expanded once into new code, and permit optimization and compilation after that).
I've managed to create a partial evaluator + compiler for f-expressions in a pure functional language that can remove most of the overhead for f-expressions that fall in the function-like and macro-like categories, resulting in a reasonably fast language where only the more exotic f-expressions fall back to slower interpretation. Writing it up in an academic paper is proving to be almost as hard and time consuming as solving the problem in the first place, but it'll get there, eventually.
John Shutt's PhD thesis is what inspired me and convinced me of their beauty, as it has for others. It's big and can be dense, but I found it very compelling! https://web.wpi.edu/Pubs/ETD/Available/etd-090110-124904/unr...
I paired it with a 6kw hybrid inverter/charger that I can later add solar panels to and now have a system that should outperform a Tesla Powerwall in both longevity and capacity. My final cost is around $4k including the hybrid inverter and from what I can tell, the comparable Tesla offering costs around $13k.
I have it setup now to do peak power arbitrage so the batteries charge at night during off-peak ($0.20/kwh) and then the batteries run the whole house from 4pm - 9pm when the rate is $0.54/kwh. This saves around $100 a month on our electric bill so it should pay for itself in 3-4 years while also providing backup power in case of outages.
All comments shown.
Couldn't load more comments. Check your connection and try again.