Coder Social home page Coder Social logo

lya's Introduction

LYA - Localize Your Application

Operating system Status
Ubuntu TravisCI
macOS TravisCI
Windows TravisCI

Build

Debug Build

Make a debug build by following commands:

git clone --recursive git://github.com/tinganho/l10ns.git
cd l10ns
mkdir Debug
cd Debug
cmake -DCMAKE_BUILD_TYPE=Debug ..
make

Prerequisites

Mac

brew install boost libxml++ gettext

License

Copyright (c) 2014 Tingan Ho Licensed under the Apache 2 license.

lya's People

Contributors

bitdeli-chef avatar cadesalaberry avatar focusaurus avatar gitter-badger avatar maininfection avatar nmn avatar tinganho avatar waffle-iron avatar

Stargazers

 avatar

Watchers

 avatar  avatar

lya's Issues

Make text_writer.text private and add a finished function

Too safely guard us from premature finishes, such as getting the text during placeholder writes or saved text cursors that has not been disposed. It would be wise to implement an end function that retries the text and validates that there is no pending placeholder writes and saved text cursors remaining.

UTF8 code point iterator and file streams

In the LYA project, I struggled with optimising the code point iteration for the various token scanner it uses. Right now, I just convert to utf32 string and take the value of the 4 bytes. This is not the optimal way of doing this. Instead we can get the code point directly from decoding a utf8 string. Utf8 is variable length encoded (1-4 bytes), whereas Utf32 is fixed length encoded. We must pay a memory (and perf?) cost to convert it to utf32. Since most programming language source code contains ASCI character, which are 1 byte encoded, we myst pay a very high (near 4 times in memory) cost to convert the whole string.

This link summarizes the operation quite well:
http://www.nubaria.com/en/blog/?p=371

To further, optimize the memory footprint, we should stream the file reading. Right now, we read in the whole file instead of one memory page 4KB.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.