8,634 karma · joined Jun 23, 2011 (15y ago) · 7,679 submissions
comment 3y ago · link · parent
comment 3y ago · link · parent
I expect the answer is all of the above and more.
comment 3y ago · link · parent
Almost certainly. I would expect that 50% of WASM being used right now is outside of the browser entirely. Cloudflare Workers, for example. Same goes for Javascript.
Regardless, I expect the real serious answer is that writing raw WASM isn't particularly ergonomic. You could do it if you had to, but it is very much designed to be a compiler target. The OP was no doubt alluding to Javascript providing better developer ergonomics much like virtual DOM solutions have done over 'raw' DOM manipulation.
Reading the article he would have realized that Svelte offers much the same without a virtual DOM, and that the headline refers to that, but when was the last time anyone on HN read the article?
comment 3y ago · link · parent
Users won't notice, but they will notice...?
> A test suite usually doesn't run in tightly controlled environment.
What don't you have control over?
> but not significant enough to spend days to avoid adding a few lines of comments by embedding all knowledge into tests
Why would you avoid comments? Why would your tests have to take longer to write than your comments? Days to write a test or two to clarify your intent?
comment 3y ago · link · parent
Perhaps what you are suggesting is that in messing up by not finding out if the arrangement was broadly compatible before wasting your time on the minor details, but being afraid to blame oneself for the glaring mistake the mind might go to inventing that it was offended by their actions as a mechanism to sooth itself? I guess... Seems like stretch. I don't really understand the need to blame others, though.
Regardless, I'm not sure that transcends to the computer case. In that case the price was asked for upfront. Apple gave their offer and that was the end of it. No unwarranted time was wasted. Just a simple: "Looks like we won't be able to reach an agreement. Have a nice day."
comment 3y ago · link · parent
comment 3y ago · link · parent
It clearly was, else the transaction at that price would have never taken place for there to be a machine once worth that much to sell three years later.
However, the $1,000 transaction did not take place. That tells us that it is not worth $1,000 three years later – and is probably worth much, much more.
The moral of the story: Don't let clickbait headlines fool you.
comment 3y ago · link · parent
Of course a used product dealer is going to pay you less than the next consumer will. They have to sell to the same consumer and need a margin to justify their time acting as the middleman. Same reason the used car dealer will give you less for your used car than the next driver buying direct will give you.
comment 3y ago · link · parent
I don't imagine it is. I've never seen anything reasonably complex successfully built by way of meeting, notes or not. The actual work always happens when ideas are formally written down and iterated upon asynchronously.
> Every single meeting would be everyone hallucinating what was said before in previous meetings, and lots of lying.
Yup. Even with notetaking, that's all you can get out of meeting. You simply don't have immediate access to all the information you need (critical in complexity) in the heat of the moment to present useful thoughts, so anything that does come up is bound to be invalid anyway. Noting the invalid expression made during the meeting doesn't serve any purpose. As such, your notes are only as good as the trash that it is. It's a nice break from work, but that's about it.
comment 3y ago · link · parent
They have to hold that view, though, else their reason for existence disappears. How can students justify the high cost of hiring a professor, accepted on the premise of being able to make it up with higher future earnings, if they realize that the reason there is a spectrum of incomes is because some people can't rise into higher paying work?
You and I know that the mentally disabled person will never rise into a $500,000 per year job, no matter how hard they try, because of their disability. But your colleagues have to suggest that the mentally disabled person won't only because that person hasn't attended their classes. Their entire marketing strategy of getting students into their seats rests on it. Failure to communicate that to students means they soon find themselves out of job.
comment 3y ago · link · parent
comment 3y ago · link · parent
Nothing in this thread says "no comments" or "everything should be a unit test". But the reality is that most code doesn't matter. It is just a means to an end and if it no longer serves that means it's expendable. Explaining why something was chosen doesn't tell you anything meaningful most of the time. In fact, I expect the "why" 99% of the time is "I felt like it and it worked".
When a specific approach is essential in meeting certain application requirements, absolutely you need to comment that. But you also need tests, else how are you going to ensure that you stay within those requirements? Of an application of any meaningful size, you're going to have a hard time manually ensuring that some externality didn't break your assumption on every deploy. Even if it weren't hard, why put in the man hours when a machine can do it for you?
comment 3y ago · link · parent
Regardless, I don't get what you are trying to say. Pretty much every language still in existence is able to work with JSON (even SQL!). JSON is not Javascript. It's not clear why moving code from the Javascript runtime to the WASM runtime would magically make JSON+LD inoperable or whatever it is you are trying to say.
comment 3y ago · link · parent
window.ue_ihb = (window.ue_ihb || window.ueinit || 0) + 1;
if (window.ue_ihb === 1) {
var ue_csm = window,
ue_hob = +new Date();
(function(d) {
var e = d.ue = d.ue || {},
f = Date.now || function() {
return +new Date
};
e.d = function(b) {
return f() - (b ? 0 : d.ue_t0)
};
e.stub = function(b, a) {
Feel free to visit it to find the entire script. It is much too large to post here. What is a crawler learning from that program that would be lost if the equivalent code was bundled as WASM instead? Why couldn't its WASM parser pull out the same information? The JS/WASM runtime in the browser has to produce the same result regardless of which encoding is chosen, so everything will be encoded in there somehow.comment 3y ago · link · parent
Furthermore, if that 5% optimization is truly critical to the application (despite not being measurable?), how are you going to ensure that some future change doesn't break that? Something as simple as a compiler update could change some optimization that breaks your assumptions. What do you do in the absence of tests to ensure that doesn't slip through?
comment 3y ago · link · parent
Eating out doesn't necessarily mean restaurant, unless you use the term loosely. Restaurants typically sell an experience, not food, and indeed you expect to pay for that experience. It is something not duplicatable at home, at least not for the price a restaurant can offer it to you. Even a high priced restaurant is cheap compared to hiring servants to come to your home.
What's fast food? I consider McDonalds fast food, but they aren't in the food business and thus wouldn't be expected to provide for $5. The term fast food is quite loaded, in my experience.
Which market are you in? We know for certain that there isn't price uniformity in all locations. I'm not at all surprised that you could be paying $10+ for the same meal I pay $5 for. Which brings us back to asking what is rent? Again, that kitchen is occupying space that must be accounted for. You're being completely disingenuous if you ignore the bulk of your costs of operating a kitchen.
You can choose to accept those costs. I like to cook and would hate life if I had to eat out every day even if were at the best restaurants around, so I do too, but I'm not going to pretend they don't exist. The cost of eating at home isn't just the raw ingredients. That would be unfair to not only the discussion, but also yourself and your finances if you aren't being honest with yourself.
comment 3y ago · link · parent
Presumably in the compiler documentation. Although the assumption was made merely to ensure that we understood that each algorithm choice was functionally equivalent, to continue in the theme of discussion.
> which may or may not hold in the future?
Totally fair. Let's say your choice, which was fine at the time of choosing, with a later compiler update does get optimized in a new way that that longer satisfy your application's requirements. How do you plan to keep up with that if you don't have automated tests to prove whether or not your code still operates within your expectations?
> But you given up already on this line of argumentation anyway, I see ;-)
No, but I was still working on getting a concrete example in which we can build a test or two for to provide a demonstration. Unfortunately, the vague sorting suggestion still isn't concrete. What are you sorting? Which algorithm did you choose and why? I had hoped that if I rephrased the question you would feel more comfortable coming out of your shell, but I can see your worry remains. Back in my day education was something to get excited about so I struggle to understand, but recognizing your uncomfortableness now I'll not needle you further and apologize for not seeing it sooner.
comment 3y ago · link · parent
comment 3y ago · link · parent
In these parts, I can go to a restaurant in the business of selling an experience, with nice ambiance, a server who will wait on you hand and foot like you are some kind of king, etc. and can have nearly anything on the menu for $15 USD. At that price you're paying to get to act like a king for an hour or two, not for food.
If your local cost of living is that high, what's the housing market like? High CoL and high rent often to go hand in hand. If you sold your appliances and offered your kitchen space as a bedroom rental, what kind of income are we talking here?
comment 3y ago · link · parent
If you are at a place that sells an experience that happens to come with food that may be true, but one in the business of selling food is going to beat your home kitchen every time.
The big difference is that the home kitchen costs are largely front-loaded. This does mean you generally need less free cashflow when you are hungry, which is an appealing attribute to someone who budgets by looking at their bank account balance. However, it also means you sacrifice a fair amount of opportunity. That does not come cheap.
comment 3y ago · link · parent