2,799 karma · joined Sep 17, 2016 (10y ago) · 333 submissions
comment 5y ago · link · parent
Also, machines deal with data - which is encoded information about the world.
So when we say that a thing 'changes' in the world, what we're actually saying is that at time T, something happens to the world and from then on, the data we read back is different.
'Something happened' is new information which is added on top of the state of the world at time T-1.
Eg. the user e-mail does not 'change' to be come X, but rather, it used to be Y, then the user changed it to X on 1st of May.
So we can generalize that the world is a function `f` of some state combined with extra data of what happened at time T, giving us the state at T.
comment 5y ago · link · parent
Will you be able to understand how to play the guitar if I show you a passage from a song ? You can play it with any other instrument, so it still won't be motivating enough for you to put in the time and effort required to learn it.
If I were to take you to a Led Zeppelin concert to see Jimmy Page playing, that still might not be motivation enough for you to pick up the guitar, but you'll be able to better understand what it can do to people :).
Back to LISP - it's a tool. The difference between other tools, is that you can program it too. The power lies in its simplicity and your ability to build programs iteratively while running them.
comment 5y ago · link · parent
Immutability has a price and it's a price we're consciously paying. JVM also has a performance cost, but it's well worth paying due to the wins of running on a virtual machine.
For most boiler-plate tasks, especially where I/O is involved, Clojure is fast enough (eg. handling HTTP requests or talking to a database).
The true power of Clojure, in my opinion, is in how it allows you to think about problems; that machines produce side effects by interpreting a data structure, that the program is one transformation of the input data structure to the target data structure for the desired side effect. You don't think in terms of imaginary objects 'doing' things, you think about the input data structure and how the output data structure should look like, such that if fed to a library function, the desired side effect will occur (eg. the text will be printed or the robot arm will rise).
This mode of thinking about problems is closer to how machines actually work on a higher level and amusingly, 'close to the metal' C++, offers abstractions which take the writer into a fairy tale of class hierarchies, methods that 'do' things to other things, inserting, deleting, mutating everything all over the place. Because that's efficient and fast (and dangerous). But it's also focused a lot on telling the machine 'how' to run; while coincidentally making it do 'what' you want it to do. As a wizard who can put that orchestra with swords and knifes in motion without too much blood spilling on the floors, you can't but feel proud to have achieved it.
Data in -> data out. That's Clojure's way of thinking.
It's a lot simpler way of looking at the problem and maybe makes the `->` feel a bit insignificant and maybe not that important in most cases, as long as it produces the correct output.
The biggest performance hit will be choosing the wrong data structure for solving the problem in a functional way. If that's done correctly, Clojure does offer some tools for squeezing a bit more out of performance critical pieces of code (the articles covers some). Those should be a couple of functions in all your code base; for the boilerplate and domain logic or code involving non realtime I/O, it doesn't matter that much.
If performance is a big concern and you end up writing imperative code in Clojure, I think you'll be better off writing the bits in Java or choose a different language, which is better designed for that purpose.
comment 5y ago · link · parent
comment 5y ago · link · parent
If I understand it correctly, it allows you to achieve reactive data flow in a single page app without any boilerplate.
Meaning - you update the database on the server and all the relevant UI(s) will automatically receive the updated data and re-render only the parts of the UI that display that data.
This would require a ton of PHP and Javascript dealing with networking, websockets, routing, serializing data and so on.
Haven't tried it yet, but very curious to see if it works.
comment 5y ago · link · parent
Some distinctions about Data which are not mentioned (or which escaped my skimming) are:
Data is physical (not ephemeral, like information).
Every bit of data can be mapped to a point in 3D space where it is ‘stored’ on some piece of matter (tape, disk, flash memory).
In other words, data has location in space, it can be weighted.
Encoding information as data actually means altering matter (the storage medium - piece of paper, disk tape, CD, RAM) in a way in which we can later infer data by examining the state of the physical storage medium.
And
Data is in time
It has a T0. Every single bit of data that exists ‘appeared’ in space (on storage) at a precise moment in time.
Every bit flip in the stored data has a point in time, so we can derive a 'history' time axis for data.
Data has an implicit refcount - the number of physical storage mediums where it is encoded. Data is lost when the last medium is damaged.
Just planting some seeds in case someone finds these distinctions useful.
comment 6y ago · link · parent
A app store offers reliable hosting of the game binaries and provides a versioning and upgrade mechanism on a platform with billions of user accounts.
Keeps the user's OS and device drivers up to date, maintains the OS and develops the hardware that it runs on.
Maintains the developer tools, compilers, documentation, so that your binary can run on the device's OS.
These things are expensive. I don't know how much exactly it would cost a company like Roblox to develop and maintain all the necessary tools and services provided by the app stores in order to run on all those devices.
Probably a lot. In fact, if they could do it, they would be Apple or Google :).
Whether it's a lot more than it should be, I don't know, but it helps to keep in mind that the app store cut is for a lot more than just payment processing.
comment 6y ago · link · parent
The author acknowledges right in the article that he would fail this interview, but expects the readers to trust him on this one... oh you just follow these steps and the plane will keep flying.. I tried it myself and crashed, but maybe it will work for you..
If it's satire, then it's not obvious enough, if it's not, then it's just bad advice.
comment 6y ago · link · parent
Through their ad business model, Google (and others like it, you know them) are enabling commerce at a scale never seen before. Remove the Internet and the world's economy would collapse..
Quick and dirty search - world GDP has grown 420% since 1970, before computers became mainstream.
How much of that is due to computers, the Internet and advertising, I don't know, but I suspect these are major factors.
Through their reach, these companies could have a huge impact, but they do nothing about it except use renewable energy in their data centers.. too little impact imo.
comment 6y ago · link · parent
Please take it seriously. This is not sensationalism.
What the letter means is that if your country is not there yet, you might be DAYS away from widespread panic and total lock down.
I'm writing this from Barcelona, Spain. This last Sunday, 6 days ago, I went on a walk with my girlfriend, had a nice lunch, took beautiful pictures...
The virus was just some nagging news.. A couple of hundred people infected somewhere far away.
6 days later, we're at over 6000 infections, the country is in total lock down.
Same pattern as Italy (even faster), we're just a couple of days away before tens of thousands is reached. This is what exponential growth means.
comment 9y ago · link · parent
One theory that I subscribe to is that the drug increases the brain's neuroplasticity, allowing for new pathways to be created between sometimes unrelated parts of the brain.
Being conscious allows one to guide (but not control heh) this process, where the user can pick a subject to think about and immerse oneself into a audiovisual/emotional/cognitive hallucinatory experience that follows related to that subject. Inevitably the most pressing issues of one's life will surface, allowing the user to examine them from all these different angles - accept, forgive, love and heal.
comment 9y ago · link · parent
This is not just in music, the filtering 'according to preferences' is ubiquitous in today's applications - so I wonder - were does the recommendation end and influence start ?
For example, Google maps routes you to avoid high traffic, but by doing this, it is also generating traffic and the more people use it, the more influence the app has in the real world traffic.
I for one use it sporadically; my music tastes are so state-dependent - sometimes I want ambient music, sometimes I want heavy metal, sometimes I want lyrics and sometimes I want a hard electronic beat. The algorithm does not know my current state, wether I want to keep or change it - even I don't always understand exactly what and how I feel.
Also, I've had it happen lots of times - sometimes I listen to a track or album which I don't immediately like, but then it grows on me and I discover something beautiful hidden in it. There's value in listening to things that don't follow the usual pattern and that's very hard for an algorithm to do.
comment 9y ago · link · parent
This is costing me way too much HN karma lol, I guess nobody likes to get down voted, but try rewording that first statement like this:
Observer exists independent of reality.
If that were true, what could be said about reality ? Who/what is this Observer, is it the same in every being ?
Is it possible to detach the observer from the self ? Yes. People have been doing this since there is history.
I guess that's the whole point I was trying to make.
comment 9y ago · link · parent
All of these things happen to you. We've been trained to look at reality as something 'out there', but truth is that reality happens inside your consciousness and it's unclear where mind ends and 'reality' starts. It's unclear if there's anything but consciousness (note that the 'brain' might also be a construct of consciousness).
Shamans - not the con men - devote their life to studying and sharing the relationship between consciousness, mind, nature/universe, what was before birth and what follows after.
There are tools and practices to take you on these voyages where physics and rationality don't apply and if you go there once... to put it lightly, things won't look the same as they did before.
Not a time and place to go deeper, some answers come when we go on to the next stage, but there's a lot more than what the textbooks teach.
comment 9y ago · link · parent
Of course there are relationships, I just don't think most of us (scientists or scientifically inclined) know how to see them, since some of the links are not in the 'rational' space.
Shamans still have better answers than scientists to these kinds of questions, but I don't think that most people want to hear the answers.
Either way something extraordinary is taking place, hopefully it will lead to something positive in the end.
comment 9y ago · link · parent
The realization that plants, animals, water, air, are all part of one whole living system of which we're just cells, just like the cells within us, ...
In other words, the realization of the divinity of nature.
Most people tend to treat divinity with respect hence the link.
I personally think everyone should have at least one psychedelic experience, especially in this age that we're in right now.
comment 9y ago · link · parent
Disconnect a country from the Internet (or filter the traffic) and you're forking the chain. Spend on both networks by buying other (unfiltered) crypto. There are states (even large ISPs) that can do that.
Also, the first thing to go in case of global conflict is the global Internet. Countries will try to damage opponent's internet links to gain strategic advantage.
Crypto currencies will be useless in this case, losing all of their value.
There's always the concern of a bug in the protocol, a solution to the hash function or plain old human stupidity that can crash the currency.
I guess my point is: be careful, this is still very much experimental, don't invest everything you have in them.
comment 9y ago · link · parent
If you have a serious issue, like a heart condition or a broken bone or vomiting etc, you will be processed much faster.
I know that because I've been in both situations - once with pain in my left ear (waited 2 hours, got a prescription to ibuprofen) and another was chest pain and high blood pressure - processed immediately, all blood work done in minutes, etc.
I guess a lot of people go to the emergency room because they just need a doctor to confirm that they're all right.
comment 9y ago · link · parent
Why not implement it on a centralised Burger King server ? Why bother with a distributed p2p network, mining, apps, when a simple mysql database plus a php file can achieve the same thing ?
Am I missing something ? If they want crypto so much, just let people withdraw their points in bitcoin..
I can see the point of a generic "FoodCoin", where each restaurant is a miner and the coins can be used to buy food in any other restaurant in the network.. Or is that their ultimate purpose ?
But then it's not truly decentralised, I guess the model would be BurgerKing and a bunch of satellite restaurants using the same coin somehow...
Anyway, don't really see the point of a block chain, beyond hype..
comment 9y ago · link · parent
I mean, you can make an app in a day if you follow a tutorial, but if you want to enjoy the language and what you're doing, then you'll have to put in the effort.
Objective-C can probably be avoided, but will help a lot in some cases - especially when interfacing with libraries written in ObjC or C++. So you might want to learn them in parallel, or at least spend a bit of time understanding the semantics of the language, memory management, concurrency, etc.
Oh and native iOS is different from native macOS, some APIs are not compatible, but you can reuse quite a bit of utility-level functions related to your app (since it's the same language).
I enjoyed learning ObjC and Swift and writing apps for iOS, the only issue I have with this platform is that it's too crowded for (new) solo devs.
If you don't care about that as much, then by all means go ahead, you will love it.
comment 9y ago · link · parent
Why own a car (pay taxes, insurance, parking), when you can have one at your door in a couple of minutes ? When you arrive at the destination, just exit the car - no need to look for parking or anything like that, let the car figure it out.
If technology can do that, then owning a car becomes more of a hobby than necessity. I hope GM's strategy is aligned with this, as the profits will not come from selling cars, but from providing the service.
comment 9y ago · link · parent
1.5 months after my first line of Swift I had my app in the app store (granted I was proficient in Objective-C). 2 years since I've started learning Clojure and a couple of months since I'm working professionally with it and I'm still quite shaky.
Luckily, it's not difficult to begin - you can start hacking small programs in a couple of days, but when it comes to building large applications, that's when it becomes a high-level art form (just one of the many possible metaphors :) ).
Quite similar to C++ in this respect - easy to pick up, hard to master.
It humbled me and made me cry many times. But as with everything, if you don't give up, you level-up.
As far as the experience goes, it gives you this 'overview' experience of programming - you can mimic almost any feature from other languages and you have access to all the libs for the JVM (including C/C++ libs through JNI) plus all the javascript libs.
So in terms of libraries you can use, I dare say that Clojure(script) is the language which can access the most libs out there.
So yeah, definitely a powerful language and a powerful tool which you can go very deep into, albeit a bit tough to learn.