HNHacker News
TopNewBestAskShowJobs

Sawamara

259 karma · joined June 4, 2017

submissionscomments
Sawamara··on JavaScript debuggers are broken
Some of the comments here are surreal, I tell you. Surreal.

I use chrome's built-in debugger to debug compiled down typescript code. I go to the original TS files, mark a line by conditional breakpoints, it works perfectly. It stops the execution of the compiled JS files, it uses the source map to find the original line (which I placed the breakpoints in) AND it has a perfectly fine, working stack trace as well at pause. I can also blackbox at will.

Timetravel debugging is going to happen soon (with its proper costs), and thats about it. Variable watching is the only pain point, but that is only because TC39 axed the native observable implementations a few years ago.

I would not respect anyone who calls this level of debugging support "bad". It can be improved, but it is satisfactory.

Sawamara··on When India Kicked Out Coca-Cola, Local Sodas Thrived
Lets be real, there is nothing inherently terrible in non-sugary soda.
Sawamara··on 9999999999999999.0 – 9999999999999998.0
Yeah, one more article shitting on IEEE-754, yaay.
Sawamara··on Deformities Alarm Scientists Racing to Rewrite Animal DNA
No, please, please. Do not do this. You eat your food. The purpose is different. It has been engineered to shit already.
Sawamara··on Fear, trust and JavaScript: When types and functional programming fail
Typescript brings much needed order to the complete (seemingly) typeless nature of Javascript. That is the source of enthusiasm. TS is the direct result of a development team working out the kinks of having to maintain a large JS codebase.
Sawamara··on A Rust FFI adventure in unsafety
Thank you. Well, now I have to choose whether I prefer the physical copy or the Safari subscription... :D
Sawamara··on A Rust FFI adventure in unsafety
Can you link to the aforementioned books?
Sawamara··on Show HN: Micro JavaScript framework inspired by finite-state machine
Weird how it has been 4-5 years since people - without proper knowledge - kept shouting about JS framework fatigue, while the three top frameworks (React, Angular and Vue) remain the same. (Same as in leading, Angular has been reworked quite a lot, I do not want to do anything with it.)
Sawamara··on What I Learned Making My Own JIT Language
Usual suspects that many people who hate JS seem to champion are are python, lua, ruby.

I love Lua personally, but it has its own traps too. Never could get into Python too much, the indentation syntax is killing me :P

Sawamara··on Show HN: Mimicking the Bloomberg menu widget without JavaScript
Sure, right tool for the right job, etc. Animations are almost always better when they can be hinted to the GPU (will-change), can be transitioned with translate2d changes, and do not cause reflow by being used on absolute/fixed positioned elements. For example.

My point is that not using JS will not make browsing experience into something "pure". It will remain an incredibly compplex stuff in itself, which JS is only a part of. And when it comes to firing off XHR's, setting some data or providing interactivity (with real states, etc), then JS is a good tool for the job.

Sawamara··on What I Learned Making My Own JIT Language
You say all this as if JS's jit engines (V8, chakra, spidermokey, etc) did not destroy "better designed" languages when it comes to speed and efficiency. The only dynamic language that does not pale beyond what is achieved with V8 is LuaJIT.
Sawamara··on What I Learned Making My Own JIT Language
Note to commenter: you can design a language to never change a function's signature, in which case that language loses the "dynamic" and "scripting" part (okay, maybe just the dynamic part).

Nothing wrong with having ultra-dynamic languages, but you will inevitably trade speed for quirky code in cases like that.

Sawamara··on Show HN: Mimicking the Bloomberg menu widget without JavaScript
I really, really do not get this obsession with Javascriptless interactivity.

I mean, seriously. Its 2018. JS engines are REALLY fast. And by the way, lets not be deluded into thinking that the Chrome is a lightweight nothing without JS execution. There are already GPU-aided reflow/repaint operations, your whole UI context lives on a different thread, tons of services are pulled back for audio/video capabilities, not to mention addons, HTML engine, etc.

So just learn proper JS, do not overdo it, and write efficient scripts. Its doable.

Sawamara··on Pornography and the Butterfly Effect
"I would argue that there are profound differences too between institutional racism and male sexual resentment."

Of course, institutional racism is several orders of magnitude more severe.

(Update: wow, I get downvoted for this. Nice!)

Sawamara··on Pornography and the Butterfly Effect
One important caveat here to add. Just as it is not a failing black kid's problem ALONE that he does not have the opportunity to have a stable family and proper education, so is its society's burden to educate these men on etiquette AND provide them with a stable worldview that does not belittle them for not being like the demigods seen on tv (same as how we should not shame women for having body image issues, but rather tackle advertisement instead).

I wont say its entirely society's fault, but we cant just ignore the problem. As that leads to Brexit, Trump,etc.

Sawamara··on Antibiotics in Meat Could Be Damaging Our Guts
Omnivore does not mean "should eat meat along plants. It just means you are allowed to digest it (although our gut is NOT evolved to digest either herbs OR meat).
Sawamara··on Show HN: The Curious Expedition – A Steam game in HTML5
You can publish NWJS/Electron apps for steam. You can plug a Phaser game into an NWJS/Electron app.

So yes.

Sawamara··on Does growing up poor harm brain development?
Sure, but you can easily silence most whites who want to feel superior with this:

https://en.wikipedia.org/wiki/Ashkenazi_Jewish_intelligence

However, even the above can just be used to maintain the tinfoil conspiracy theory about jews running the world. So.... you cant get any useful conclusion with this data, even if you use the data as it is (i.e. to say "on average", and never use it to guess a certain person's intelligence based on ethnicity).

Also, the genes responsible for skin color,afaik, has nothing to do with the intelligence of that human. Otherwise, there would literally be a cap on iq for whiter or darker skinned humans. But there is not, any ethnicity can produce stupid individuals and geniuses as well.

Sawamara··on Does growing up poor harm brain development?
It is "verboten" (lol) on the left because it has nothing to do with your skin color, and it has everything to do with the enviroment you grow up in.
Sawamara··on Show HN: ~200 byte in-browser, no JS, private notepad
This is literally an empty page with a contenteditable tag snapped on the body. I mean.... yeah, it can be done.
Sawamara··on VS Code can do that?
I actually love using them, especially with Fira Code.
Sawamara··on ClojureScript beginners' home page
Ooh, I did not know this. Thank you for the clarification!
Sawamara··on ClojureScript beginners' home page
Well, then I can only say this: ClojureScript is "competing" for developer attention with Purescript, Bucklescript, and lately, ReasonML.

Ease of installation on windows is one factor that will matter to many users.

Sawamara··on ClojureScript beginners' home page
I could not, I just went to the AWS solution instead. Maybe someone solved this and posts it here :D
Sawamara··on ClojureScript beginners' home page
I could not get leiningen to install under Win10 a week ago, was quite a sobering experience. Some site that was linked to download from got a 404, then I got directed towards some bat script, which complained about HTTPS certification issues (lol)?

Took less than 5 minutes under a linux server though, so thats something, I guess. But still, its kinda mind-blowing how much Win users are ignored.

Sawamara··on JavaScript and Node performance coding tips to make applications faster
No, it is not. A memory leak has to grow. Without the leak part, it is just ...allocated memory.
Sawamara··on JavaScript and Node performance coding tips to make applications faster
It cannot. It still has to check whether there is a local variable in any other scope that is above the one currently being executed, all the way to the top where it finds global.

Same with window in a browser context. You could still have a "window" variable placed between your execution context and the global context.

Sawamara··on WebAssembly architecture for Go
Which is good. You can always implement GC inside it, but personally, for performance-intensive computing, I do not want GC inside WASM unless eplicitly enabled.
Sawamara··on To solve problems caused by sitting, learn to squat (2017)
Yeah, you are right, most likely. I remember quitting then due to being frustrated over lack of progress. Hah!
Sawamara··on To solve problems caused by sitting, learn to squat (2017)
You are right though, this is not a fight for either, I should reiterate that I think that STARTING with BW first to help your body adjust, and when you have an initial, flexible and durable base to work with, you can go crazy with whatever next goal you set. That is what I would prefer for myself I could go back in time, anyway :P
← PreviousPage 3 of 4Next →