HNHacker News
TopNewBestAskShowJobs

xuejie

241 karma · joined April 6, 2015

[ my public key: https://keybase.io/xxuejie; my proof: https://keybase.io/xxuejie/sigs/L7TLnkrpA4dVK2dKTgkNuds6srmai5TlK8q5FQYdpAA ]
submissionscomments
xuejie··on I’m only making business card sized games now
I'm not sure AAA games have more depth and complexity. Usually, modern AAA games are just optimized for more polygons, yes there are minor outliers but I do believe business card games can have a fight in terms of complexity with a significant number of AAA games.
xuejie··on JIT-Less V8
Thanks for the explanation! One follow-up question is: how can we still call ignition an interpreter with this flow where TurboFan is still used to generate machine code? Doesn't that defunct the idea of an interpreter in v8, which is to be used in platforms w/o write access to executable memory, such as iOS or PS4?
xuejie··on JIT-Less V8
Agreed, and I'm not saying duktape doesn't have a use case, I'm merely saying having a standalone ignition interpreter might enable different use cases.
xuejie··on JIT-Less V8
Definitely agree duktape is a decent attempt at low memory situation, but one additional point is that duktape is very slow compared to modern JavaScript engines.

Hence I wonder if we can split ignition off v8 to create a standalone fast JavaScript interpreter at the cost of (possibly) more memory consumptions than duktape, that could prove to be useful in many scenarios.

xuejie··on Deep learning may need a new programming language
This is exactly what I thought as well. Julia is born for this use case.
xuejie··on ProseMirror – A toolkit for building rich-text editors on the web
Interestingly, the platform design of ProseMirror is one of the key reason which drives me to Quill in one of my side projects. Don't get me wrong, if your goals mostly align with ProseMirror, it's a perfect tool, but if you want to deviate with ProseMirror in some aspects, the coupling design between different ProseMirror packages is actually a headache. On the other hand, Quill feels more like a simple library targeting exactly one use case.

In addition, I feel that Quill's delta format [1] is much more elegant and easier to work with than ProseMirror's changeset [2], especially if your architecture uses a different language that's not JS.

[1]: https://quilljs.com/docs/delta/ [2]: https://github.com/ProseMirror/prosemirror-changeset

xuejie··on Show HN: Codeadvice – Create, edit and collaborate on code online
I believe this is CodeMirror [1], not monaco.

[1] https://codemirror.net/

xuejie··on So, today, for the first time in *25* years of Apple, I downgraded
I'm in a similar situation: I used to use a 2016 macbook pro with touchbar, but couldn't tolerate more with it, so I switched to a 13' macbook air(while I can still buy this device) earlier this year. I couldn't be more happier.

One thing I disagree with the author, is that I don't think this is downgrade, I consider this is an upgrade, cuz there's more in a computer than just the spec.

Tho I'm not sure what I will use in 3 years, there might not be trustworthy macbook air anymore then.

xuejie··on Sly: Sylvester the Cat's Common Lisp IDE
Just curious: other than established convention, is there anything that Sly/Slime provide that are still missing in Language Server Protocol(https://langserver.org/)? Would it benefit more to move to a lsp-based solution so we can make Common Lisp more modern-editor friendly?
xuejie··on The TLA+ Video Course by Leslie Lamport
I wish Microsoft could make a new edx course in their series covering TLA+. Those lectures are gonna be more helpful with exercises one can get his/her hands dirty.
xuejie··on How does dynamic dispatch work in WebAssembly?
Curious if we're gonna have a complete redesigned virtual machine without considering C-like conventions, how do you think we should do that?

I've heard about alternative CPU architectures in the Lisp machine days that never gone popular, and just wonder if there're such things in the modern era.

xuejie··on FreeBSD – a lesson in poor defaults
Can you elaborate more on the CentOS/RedHat choice? I'm curious about how other Linux distros are handling in this space.
xuejie··on Show HN: Ruby static type checker – proof of concept
Personally I feel we might never get static typing for Ruby anytime soon, at least it won't be widely adopted in the community, so I'd settle on dynamic typing like this.

After all, Crystal is already quite good as a Ruby+static typing solution

xuejie··on Show HN: Ruby static type checker – proof of concept
Although this might not be a direct comparison, based on how things go in the Ruby community, personally I feel dry-types & dry-struct (https://speakerdeck.com/flashgordon/typed-ruby) might be a better solution for typing. Yes it doesn't solve every problem, but for the business logic side of problem, this can be a decent solution.
xuejie··on Rust to WebAssembly Made Easier
I'm surprised that no one has asked this yet even tho I noticed mentions of stdweb: any idea how this is different from cargo-web(https://github.com/koute/cargo-web)?
xuejie··on How Chrome OS, Termux, YubiKey and Duo Mobile make for great usable security
Just being curious here: to me crouton is also a quite limited Linux environment, for example docker is a no go on crouton, so what advantage do you think that has against android-based solution such as termux?

Maybe a separate Linux install such as GalliumOS can really be called full access Linux environment?

xuejie··on Ryzen is for Programmers
Okay so I manage to complete the build, on idle this is about 80w, but notice I have a 1070 card, which costs around 37w according to nvidia-smi, so if you don't need a graphics card, I'd say 40w - 50w is more than enough in idle.
xuejie··on Ryzen is for Programmers
TBH I haven't tested it yet since the GTX 1070 card is still in shipping state, but I guess ihattendorf has provided detailed information :) If I can complete the setup before HN locks me from editing, I will edit this post
xuejie··on Ryzen is for Programmers
I couldn't agree with you more, I believe these days a developer can gain more with a Chromebook for portability, and a powerful desktop/cloud VM for the beefy tasks. You could end up paying the same (or even less) as a high end laptop, but you could gain more power and benefits this way.
xuejie··on Ryzen is for Programmers
While the solution here works, the alternative is you can find a used Intel S2600CP from some random data center together with one or two E5 CPUs. You can get much more possibilities of upgrading the rig this way.

I recently built such a PC with roughly $950, it includes one used E5-2650c2, used S2600CP board, 750W power supply, 32GB DDR3 ECC memory(I'm buying CPU, motherboard, power supply and memory from one vendor so I didn't know if the memory is new), brand new GTX 1070 and a brand new 128GB SSD. The good part is the board has 2 CPU slots, 16 memory slots and 6 PCIE slots, so if I feel the need, I can easily by another E5-2650 CPU, or 12 8GB memory sticks to make the total memory 128GB(or more if I choose to upgrade current 4*8GB memory sticks as well), or add more graphics cards for machine learning purposes.

Of course this won't cover all use cases since server CPUs tend to have more cores than high frequencies(mine has 8 cores, and 16 threads after HT, but only at 2.00GHz), which might be bad for high end games, but for programming tasks as described by the article here, this might be a better choice

xuejie··on Instead of containers, give me strong config and deploy primitives
This reminds me of the awesome article by the founder of skyliner: https://blog.skyliner.io/the-happy-genius-of-my-household-2f...

Google built Borg/Kubernetes because they own all the host machines which are super powerful, and they need multiple apps on one machine to cut cost. But for the rest of us building apps, different VMs provided by cloud provider, such as EC2, already provides a nice way of resource isolation that is also cheap, so why do we need to run multiple containers per machine? Suppose c4.4xlarge is too big for your app, for cost effective reason, you want to leverage Kubernetes to run multiple apps on the same VM, why not just spawn multiple c4.xlarge or c4.2xlarge VMs, and run only one app per VM for you?

I admit this model won't fit us all, but for a significant number of us, this is already a good enough solution like containers, and it works today without needing to setup all kinds of fancy software defined networks, which we never know how long it's gonna last without signaling an issue.

xuejie··on QUIC in the wild, only for Google ad advantage
That makes total sense, thanks a lot!
xuejie··on QUIC in the wild, only for Google ad advantage
This is slightly unrelated but just curious about this: is there any documentations regarding why Brave is built using Chromium as the core browser engine? Since Brendan Eich founded Brave, it should be quite natural to base Brave on top of Gecko or maybe even Servo.
xuejie··on Dwarf Fortress and the Terrible, Horrible, No Good, Very Bad Interface
Yeah of course, I agree
xuejie··on Dwarf Fortress and the Terrible, Horrible, No Good, Very Bad Interface
I'm just curious: am I the only one thinking that Dwarf Fortress actually has acceptable(if not good) UI? In most cases the screen will hint you what keys you can press to perform action. Yes I admin the UI is not so good whatsoever and in certain cases it's confusing, but it really is a question which you are comparing it to.

For example in roguelikes such as Nethack, there's no hint on the screen at all and you will have to go to a specific long help page to read about it. The result is: you will have to first memorize a lot of commands to be able to play the game.

If I'm programming using vim, I certainly agree that memorizing all those commands will boost my productivity and I'm willing to do so. But for fun time, I'm not sure if I want to memorize those many commands first to have some leisure time.

xuejie··on Ruby terminal apps toolkit
I wonder how easy it is to port all those libraries to mruby's mrbgems, so we can easily pack the Ruby-based CLI program as a single binary to get Go-like benefits.
xuejie··on Atom-in-orbit: Putting Atom in the browser
I think the question here is not assuming everyone is offline. The real question we should be asking is: are there enough users having access to internet while they are coding. If the answer is yes, this kind of project will certainly be useful.

While this is just my guess, I honestly think there should be more users with constant internet access than all emacs users(no harsh feelings, I use emacs myself, my point is just we are a minority group).

Really the problem we should solve when using this kind of editor is spotty connection(like in an airport or at a conference), it's not a use case targeting environment without any internet access.

xuejie··on Ask HN: What's the value proposition of RISC-V?
This is indeed an awesome answer(thanks for that!) but my question is: is ARM really so ahead in terms of debugging and tooling?

I ask because in my experience dealing with current ARM-based boards, the development experience is, let's just say less optimal. So is there any chance we might actually see better debugging experience in RISC-V when the openness attracts more users, or is this really a hardware company's task to solve?

xuejie··on WebAssembly initial steps tutorial
I don't like DOM, either. But whenever I see comments like this I want to ask: what do you propose as an alternative? WASM is more of a replacement for JS, DOM still requires a replacement if we hate it so much that we want to ditch it.
xuejie··on New MacBook Pro with Touch Bar suffers from serious battery issues
Personally I believe this sort of post is lacking real data: true the mentioned user only has 6 tabs in Safari, but what about other apps? How many other apps are running at the background?

I mentioned those because last week I forgot my charger(I'm using a i7 version of 2016 13' Macbook Pro with touchbar) at a friend's place, and by closing a few extra apps that I rarely used, I could get close to 8 hours' time developing a web application. I didn't dry out the battery so not sure the maximum time it can hold.

That's not saying this laptop is perfect, at the moment it did suffer from a few quirks, and personally I don't like the keyboard, but my point is: posts like this about the battery is not so accurate.

← PreviousPage 2 of 3Next →