News for hackers. Stuff that matters.

cypher543

Re:One year of C on Saturday June 02, 2018 @05:25PM (#17216461)
> I wonder how many other tech folks has the same impression??

I do! I've worked with C, C++, Python, Java, Go, JavaScript, Ruby, and Pascal, but for anything that isn't network-oriented or a simple CLI tool, I always reach for C (sometimes a strict subset of C++). Its distinct lack of features allows me to focus more on the problem at hand and less on the best of the hundred different ways to do something in other languages. Go is the same way, which is why I use it extensively for mid-level stuff like CLI tools and servers.

Re:Some nice and accurate CMake tips on Wednesday May 30, 2018 @03:08PM (#17190694)
The target property overrides the global setting, so you can set CMAKE_CXX_STANDARD as the default and then set the target property if you really need a different standard for some reason. And if you have a whole sub-project that needs a specific version, you can set CMAKE_CXX_STANDARD before calling add_subdirectory to have it apply to only the targets in that directory.
Re:Some nice and accurate CMake tips on Wednesday May 30, 2018 @02:49PM (#17190482)
Note that the variables in the "Detecting an operating system" section are for detecting the target operating system, not the host (what CMake is running on). If you use a toolchain file to cross-compile from Linux to Windows, for example, WIN32 will be defined instead of UNIX.
Re:Ask HN: What have been your best decisions in life? on Saturday May 12, 2018 @06:35PM (#17056382)
1. Seeing a doctor about my anxiety issues.

2. Deciding not to pursue a career in software development. I enjoy programming way more as a hobby that I can take a break from whenever I want.

The article said Stack when I posted my comment. Looks like they corrected it shortly after.
The article states it's called "Azure Stack OS."
Re:AV1: A new general-purpose video codec on Tuesday April 10, 2018 @12:42AM (#16799020)
Correct. WebRTC is just a specification for an API on top of SRTP+ICE+SCTP.
Could they not have required the user to own a copy of Fallout 3 and then extract the needed sound files from the original installation on first launch? Then the copyrighted works wouldn't need to be distributed with the mod itself.
Re:Accelerating QEMU on Windows with HAXM on Thursday November 23, 2017 @06:31PM (#15768558)
Hyper-V is extremely strict about what can access its hypercalls, so you can't do anything from userspace like with KVM and HAX. Hypercalls can only be made from ring 0 and creating domains can only be done from the root domain.
Re:Fengari: Lua for the Browser on Saturday November 04, 2017 @07:56PM (#15627458)
Dillo specifically avoids scripting, so I doubt the internals are well-suited to that sort of integration. You could try extending NetSurf[1], though. It uses Duktape[2] as its Javascript engine and its API is pretty similar to Lua's.

1: http://www.netsurf-browser.org/ 2: http://duktape.org/

Re:Windows for Linux Nerds on Wednesday September 13, 2017 @09:55PM (#15244441)
I really, really wish Microsoft would open up the Pico Process APIs to third-party driver developers. Right now, WSL is the only driver allowed to install Pico Process callbacks. It would be cool to implement a Darwin layer or a Classic Xbox emulator with that tech.
Re:Sublime Text 3.0 on Wednesday September 13, 2017 @10:43AM (#15238732)
I'm surprised the "minihtml" HTML/CSS engine is buried in the release notes. That sounds like an amazing little component and something that would be extremely useful for projects that don't want to embed an entire browser engine. Even if Sublime itself remained closed, I would love to see minihtml open sourced!
Re:Milabot: A Deep Reinforcement Learning Chatbot on Saturday September 09, 2017 @01:56PM (#15208239)
A machine learning paper with actual code? Hah! Not likely.
Re:Visual Studio Code April 2017 on Thursday May 04, 2017 @03:39PM (#14268024)
I love to hate on Electron when it's used for tiny single-purpose apps. But VS Code is a large and complex project with a focus on extensibility, which I think Electron is perfect for.
Re:Algo – Set up a personal IPSEC VPN in the cloud on Thursday March 30, 2017 @05:12PM (#13998904)
This still seems too difficult for the average person who isn't a sysadmin, but still wants to protect their privacy. Python? Virtualenv? Config files? Ugh. My ideal VPN appliance would be a minimal Busybox-based disk image that updates using A/B partitions and has a nice web UI. It lets you set basic things like the hostname, time, admin password, and then regenerates all of /etc. A cross-platform GUI setup wizard uploads the disk image to a VPS provider, you get back a URL for the web UI with clear client setup instructions, and that's it. If an update becomes available, you click a button, it downloads the new image to the idle partition, modifies the GRUB config to boot from it, and restarts. Done.
Right, even a good diphone voice needs lots of data. And I noticed they trained it with the existing Google Home voice actress, from whom they must already have many, many hours of recordings. I was mostly asking about the model itself; whether you could download TensorFlow and put one together based on this paper alone.
No source code, as usual.

How difficult would it be to duplicate these results with TensorFlow? Would something like this require more than the building blocks that TF and other toolkits provide? I have zero experience with machine learning, so I'm just curious.

Also for anthropomorphizing atoms. Sulfur seems very grumpy.
Re:Go 2016 Survey Results on Monday March 06, 2017 @11:21AM (#13803648)
I don't like them either, so you're not alone. Nor do I like comments as compiler directives. Go needs a proper attribute syntax that works with the package system (so attributes don't collide) and can be applied to everything, including struct fields.
Re:C++17 – better than you might think on Thursday December 29, 2016 @02:43PM (#13279496)
Clang uses "module maps" to turn existing header-based libraries into modules. So, theoretically, your system compiler could include a module map for all of the system headers. I don't know if module maps are going to be part of the standard, though.
I don't know the details either, but honestly, I'm amazed that Google hasn't just thrown Linux out and built a microkernel with a Linux-compatible syscall API. That way there's a single binary that only cares about standard ARM things like memory management and scheduling and doesn't require hardware vendors to tweak it for every new SoC. The SoC-specific drivers can be written and updated separately just like apps. Maybe then it would be easier for vendors to keep their shit updated so I don't have to throw out my perfectly good phone just because a company doesn't feel like porting their changes to a new kernel version.
Re:Amazon Polly – Text to Speech in 47 Voices and 24 Languages on Wednesday November 30, 2016 @07:05PM (#13075862)
That's pretty common among TTS services and engines. Most people want a female voice for their personal assistant/ebook reader/whatever, so the male voices don't seem to get as much tuning. As someone who happens to prefer a male voice on my apps, it's a little frustrating.
Re:Amazon Polly – Text to Speech in 47 Voices and 24 Languages on Wednesday November 30, 2016 @02:56PM (#13074117)
One thing I wish more services like this offered is non-speech sounds. CereVoice, for example, lets you insert laughs, coughs, sighs, etc and it can really enhance the output in some cases. Google's WaveNet also manages to simulate the catching of one's breath during particularly long utterances, although I realize it uses a completely different technique (neural net vs. concatenative synthesis).

My biggest problem with CereVoice, though, has been its terrible web API. It doesn't support streaming output, so it renders the audio to an Amazon S3 bucket and then returns a URL, which is pretty inconvenient (and slow). You have to do the same for transcripts, too. So, if you want everything, you have to make 3 separate HTTP requests and parse 2 XML documents for one round of synthesis.

IBM Watson's TTS API gets it right, imo. Its streaming mode returns audio frames and transcripts over a WebSocket connection.

Re:Amazon Polly – Text to Speech in 47 Voices and 24 Languages on Wednesday November 30, 2016 @01:13PM (#13073109)
The link to the Polly service console is broken. Polly doesn't even show up in the list of services on my AWS account.
Re:Introducing Docker for Windows Server 2016 on Monday September 26, 2016 @12:04PM (#12582976)
Awesome, thanks!
Re:Introducing Docker for Windows Server 2016 on Monday September 26, 2016 @10:45AM (#12582222)
Is the code for launching Windows containers open source yet? I'm not familiar with the Docker codebase, but a quick search didn't turn up anything except configuration-related stuff. I'm especially interested in how Hyper-V isolation and layering is implemented.
Re:Ask HN: What do you wish someone would build? on Saturday September 24, 2016 @02:47PM (#12572036)
I loved the Palm Pre's form factor. The size, the sliding hardware keyboard, the way it felt like I was holding a smooth stone in my hand. It's probably the best phone I've ever owned, hardware-wise.
I'm pretty sure that part was sarcasm.
Yeah, I found POI very cringey for the most part. Although I thought the character speaking for the machine was a fun development. They just took the concept too far by introducing the child later on.
Re:OpenBSD on HP Stream 7 on Saturday September 10, 2016 @05:50PM (#12471033)
I don't think it's intended to be a step-by-step guide. More a set of notes in case the author or someone else wants to work on fixing compatibility issues later.

Older »